diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llwindow/llwindow.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llwindow/llwindow.cpp')
-rw-r--r-- | linden/indra/llwindow/llwindow.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/linden/indra/llwindow/llwindow.cpp b/linden/indra/llwindow/llwindow.cpp index ffb6393..890143d 100644 --- a/linden/indra/llwindow/llwindow.cpp +++ b/linden/indra/llwindow/llwindow.cpp | |||
@@ -58,13 +58,13 @@ BOOL gDebugClicks = FALSE; | |||
58 | BOOL gDebugWindowProc = FALSE; | 58 | BOOL gDebugWindowProc = FALSE; |
59 | 59 | ||
60 | const S32 gURLProtocolWhitelistCount = 3; | 60 | const S32 gURLProtocolWhitelistCount = 3; |
61 | const char* gURLProtocolWhitelist[] = { "file", "http", "https" }; | 61 | const std::string gURLProtocolWhitelist[] = { "file:", "http:", "https:" }; |
62 | 62 | ||
63 | // CP: added a handler list - this is what's used to open the protocol and is based on registry entry | 63 | // CP: added a handler list - this is what's used to open the protocol and is based on registry entry |
64 | // only meaningful difference currently is that file: protocols are opened using http: | 64 | // only meaningful difference currently is that file: protocols are opened using http: |
65 | // since no protocol handler exists in registry for file: | 65 | // since no protocol handler exists in registry for file: |
66 | // Important - these lists should match - protocol to handler | 66 | // Important - these lists should match - protocol to handler |
67 | const char* gURLProtocolWhitelistHandler[] = { "http", "http", "https" }; | 67 | const std::string gURLProtocolWhitelistHandler[] = { "http", "http", "https" }; |
68 | 68 | ||
69 | BOOL LLWindowCallbacks::handleTranslatedKeyDown(const KEY key, const MASK mask, BOOL repeated) | 69 | BOOL LLWindowCallbacks::handleTranslatedKeyDown(const KEY key, const MASK mask, BOOL repeated) |
70 | { | 70 | { |
@@ -203,7 +203,7 @@ BOOL LLWindowCallbacks::handleDeviceChange(LLWindow *window) | |||
203 | return FALSE; | 203 | return FALSE; |
204 | } | 204 | } |
205 | 205 | ||
206 | S32 OSMessageBox(const char* text, const char* caption, U32 type) | 206 | S32 OSMessageBox(const std::string& text, const std::string& caption, U32 type) |
207 | { | 207 | { |
208 | // Properly hide the splash screen when displaying the message box | 208 | // Properly hide the splash screen when displaying the message box |
209 | BOOL was_visible = FALSE; | 209 | BOOL was_visible = FALSE; |
@@ -285,6 +285,12 @@ void LLWindow::setCallbacks(LLWindowCallbacks *callbacks) | |||
285 | } | 285 | } |
286 | } | 286 | } |
287 | 287 | ||
288 | void *LLWindow::getMediaWindow() | ||
289 | { | ||
290 | // Default to returning the platform window. | ||
291 | return getPlatformWindow(); | ||
292 | } | ||
293 | |||
288 | // static | 294 | // static |
289 | std::string LLWindow::getFontListSans() | 295 | std::string LLWindow::getFontListSans() |
290 | { | 296 | { |
@@ -389,7 +395,7 @@ void LLSplashScreen::show() | |||
389 | } | 395 | } |
390 | 396 | ||
391 | //static | 397 | //static |
392 | void LLSplashScreen::update(const char* str) | 398 | void LLSplashScreen::update(const std::string& str) |
393 | { | 399 | { |
394 | LLSplashScreen::show(); | 400 | LLSplashScreen::show(); |
395 | if (gSplashScreenp) | 401 | if (gSplashScreenp) |
@@ -417,8 +423,8 @@ void LLSplashScreen::hide() | |||
417 | static std::set<LLWindow*> sWindowList; | 423 | static std::set<LLWindow*> sWindowList; |
418 | 424 | ||
419 | LLWindow* LLWindowManager::createWindow( | 425 | LLWindow* LLWindowManager::createWindow( |
420 | char *title, | 426 | const std::string& title, |
421 | char *name, | 427 | const std::string& name, |
422 | LLCoordScreen upper_left, | 428 | LLCoordScreen upper_left, |
423 | LLCoordScreen size, | 429 | LLCoordScreen size, |
424 | U32 flags, | 430 | U32 flags, |
@@ -434,7 +440,7 @@ LLWindow* LLWindowManager::createWindow( | |||
434 | } | 440 | } |
435 | 441 | ||
436 | LLWindow* LLWindowManager::createWindow( | 442 | LLWindow* LLWindowManager::createWindow( |
437 | char *title, char *name, S32 x, S32 y, S32 width, S32 height, U32 flags, | 443 | const std::string& title, const std::string& name, S32 x, S32 y, S32 width, S32 height, U32 flags, |
438 | BOOL fullscreen, | 444 | BOOL fullscreen, |
439 | BOOL clearBg, | 445 | BOOL clearBg, |
440 | BOOL disable_vsync, | 446 | BOOL disable_vsync, |