aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow/llwindow.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llwindow/llwindow.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-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.cpp20
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;
58BOOL gDebugWindowProc = FALSE; 58BOOL gDebugWindowProc = FALSE;
59 59
60const S32 gURLProtocolWhitelistCount = 3; 60const S32 gURLProtocolWhitelistCount = 3;
61const char* gURLProtocolWhitelist[] = { "file", "http", "https" }; 61const 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
67const char* gURLProtocolWhitelistHandler[] = { "http", "http", "https" }; 67const std::string gURLProtocolWhitelistHandler[] = { "http", "http", "https" };
68 68
69BOOL LLWindowCallbacks::handleTranslatedKeyDown(const KEY key, const MASK mask, BOOL repeated) 69BOOL 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
206S32 OSMessageBox(const char* text, const char* caption, U32 type) 206S32 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
288void *LLWindow::getMediaWindow()
289{
290 // Default to returning the platform window.
291 return getPlatformWindow();
292}
293
288// static 294// static
289std::string LLWindow::getFontListSans() 295std::string LLWindow::getFontListSans()
290{ 296{
@@ -389,7 +395,7 @@ void LLSplashScreen::show()
389} 395}
390 396
391//static 397//static
392void LLSplashScreen::update(const char* str) 398void 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()
417static std::set<LLWindow*> sWindowList; 423static std::set<LLWindow*> sWindowList;
418 424
419LLWindow* LLWindowManager::createWindow( 425LLWindow* 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
436LLWindow* LLWindowManager::createWindow( 442LLWindow* 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,