OLD | NEW |
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.h" | 5 #include "chrome/browser/ui/browser.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <shellapi.h> | 9 #include <shellapi.h> |
10 #endif // OS_WIN | 10 #endif // OS_WIN |
(...skipping 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2224 ShowOptionsTab(chrome::kLanguageOptionsSubPage); | 2224 ShowOptionsTab(chrome::kLanguageOptionsSubPage); |
2225 } | 2225 } |
2226 | 2226 |
2227 void Browser::OpenSystemTabAndActivate() { | 2227 void Browser::OpenSystemTabAndActivate() { |
2228 OpenURL(GURL(chrome::kChromeUISystemInfoURL), GURL(), | 2228 OpenURL(GURL(chrome::kChromeUISystemInfoURL), GURL(), |
2229 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK); | 2229 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK); |
2230 window_->Activate(); | 2230 window_->Activate(); |
2231 } | 2231 } |
2232 | 2232 |
2233 void Browser::OpenMobilePlanTabAndActivate() { | 2233 void Browser::OpenMobilePlanTabAndActivate() { |
2234 OpenURL(GURL(chrome::kChromeUIMobileSetupURL), GURL(), | 2234 if (CommandLine::ForCurrentProcess()->HasSwitch( |
2235 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK); | 2235 switches::kEnableMobileSetupDialog)) { |
2236 window_->Activate(); | 2236 window_->ShowMobileSetup(); |
| 2237 } else { |
| 2238 OpenURL(GURL(chrome::kChromeUIMobileSetupURL), GURL(), |
| 2239 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK); |
| 2240 window_->Activate(); |
| 2241 } |
2237 } | 2242 } |
2238 #endif | 2243 #endif |
2239 | 2244 |
2240 void Browser::OpenPluginsTabAndActivate() { | 2245 void Browser::OpenPluginsTabAndActivate() { |
2241 OpenURL(GURL(chrome::kChromeUIPluginsURL), GURL(), | 2246 OpenURL(GURL(chrome::kChromeUIPluginsURL), GURL(), |
2242 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK); | 2247 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK); |
2243 window_->Activate(); | 2248 window_->Activate(); |
2244 } | 2249 } |
2245 | 2250 |
2246 /////////////////////////////////////////////////////////////////////////////// | 2251 /////////////////////////////////////////////////////////////////////////////// |
(...skipping 3287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5534 } | 5539 } |
5535 | 5540 |
5536 void Browser::UpdateFullscreenExitBubbleContent() { | 5541 void Browser::UpdateFullscreenExitBubbleContent() { |
5537 GURL url; | 5542 GURL url; |
5538 if (fullscreened_tab_) | 5543 if (fullscreened_tab_) |
5539 url = fullscreened_tab_->tab_contents()->GetURL(); | 5544 url = fullscreened_tab_->tab_contents()->GetURL(); |
5540 | 5545 |
5541 window_->UpdateFullscreenExitBubbleContent( | 5546 window_->UpdateFullscreenExitBubbleContent( |
5542 url, GetFullscreenExitBubbleType()); | 5547 url, GetFullscreenExitBubbleType()); |
5543 } | 5548 } |
OLD | NEW |