Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Side by Side Diff: chrome/browser/ui/browser_init.cc

Issue 7740044: Implement fullscreen info bubble on Win and Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser_init.h" 5 #include "chrome/browser/ui/browser_init.h"
6 6
7 #include <algorithm> // For max(). 7 #include <algorithm> // For max().
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 // Setting the time of the last action on the window here allows us to steal 1059 // Setting the time of the last action on the window here allows us to steal
1060 // focus, which is what the user wants when opening a new tab in an existing 1060 // focus, which is what the user wants when opening a new tab in an existing
1061 // browser window. 1061 // browser window.
1062 gtk_util::SetWMLastUserActionTime(browser->window()->GetNativeHandle()); 1062 gtk_util::SetWMLastUserActionTime(browser->window()->GetNativeHandle());
1063 #endif 1063 #endif
1064 } 1064 }
1065 1065
1066 #if !defined(OS_MACOSX) 1066 #if !defined(OS_MACOSX)
1067 // In kiosk mode, we want to always be fullscreen, so switch to that now. 1067 // In kiosk mode, we want to always be fullscreen, so switch to that now.
1068 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode)) 1068 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode))
1069 browser->ToggleFullscreenMode(); 1069 browser->ToggleFullscreenMode(false);
1070 #endif 1070 #endif
1071 1071
1072 bool first_tab = true; 1072 bool first_tab = true;
1073 for (size_t i = 0; i < tabs.size(); ++i) { 1073 for (size_t i = 0; i < tabs.size(); ++i) {
1074 // We skip URLs that we'd have to launch an external protocol handler for. 1074 // We skip URLs that we'd have to launch an external protocol handler for.
1075 // This avoids us getting into an infinite loop asking ourselves to open 1075 // This avoids us getting into an infinite loop asking ourselves to open
1076 // a URL, should the handler be (incorrectly) configured to be us. Anyone 1076 // a URL, should the handler be (incorrectly) configured to be us. Anyone
1077 // asking us to open such a URL should really ask the handler directly. 1077 // asking us to open such a URL should really ask the handler directly.
1078 bool handled_by_chrome = ProfileIOData::IsHandledURL(tabs[i].url) || 1078 bool handled_by_chrome = ProfileIOData::IsHandledURL(tabs[i].url) ||
1079 (profile_ && profile_->GetProtocolHandlerRegistry()->IsHandledProtocol( 1079 (profile_ && profile_->GetProtocolHandlerRegistry()->IsHandledProtocol(
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 if (!automation->InitializeChannel(channel_id)) 1536 if (!automation->InitializeChannel(channel_id))
1537 return false; 1537 return false;
1538 automation->SetExpectedTabCount(expected_tabs); 1538 automation->SetExpectedTabCount(expected_tabs);
1539 1539
1540 AutomationProviderList* list = g_browser_process->GetAutomationProviderList(); 1540 AutomationProviderList* list = g_browser_process->GetAutomationProviderList();
1541 DCHECK(list); 1541 DCHECK(list);
1542 list->AddProvider(automation); 1542 list->AddProvider(automation);
1543 1543
1544 return true; 1544 return true;
1545 } 1545 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698