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

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

Issue 12096063: Fix failing test on Mac 10.6: TestInstallThemeInFullScreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_command_controller.h" 5 #include "chrome/browser/ui/browser_command_controller.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/defaults.h" 9 #include "chrome/browser/defaults.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 22 matching lines...) Expand all
33 #include "content/public/browser/navigation_entry.h" 33 #include "content/public/browser/navigation_entry.h"
34 #include "content/public/browser/notification_details.h" 34 #include "content/public/browser/notification_details.h"
35 #include "content/public/browser/notification_source.h" 35 #include "content/public/browser/notification_source.h"
36 #include "content/public/browser/user_metrics.h" 36 #include "content/public/browser/user_metrics.h"
37 #include "content/public/browser/web_contents.h" 37 #include "content/public/browser/web_contents.h"
38 #include "content/public/common/content_restriction.h" 38 #include "content/public/common/content_restriction.h"
39 #include "content/public/common/url_constants.h" 39 #include "content/public/common/url_constants.h"
40 #include "ui/base/keycodes/keyboard_codes.h" 40 #include "ui/base/keycodes/keyboard_codes.h"
41 41
42 #if defined(OS_MACOSX) 42 #if defined(OS_MACOSX)
43 #include "base/mac/mac_util.h"
43 #include "chrome/browser/ui/browser_commands_mac.h" 44 #include "chrome/browser/ui/browser_commands_mac.h"
44 #endif 45 #endif
45 46
46 #if defined(OS_WIN) 47 #if defined(OS_WIN)
47 #include "base/win/metro.h" 48 #include "base/win/metro.h"
48 #endif 49 #endif
49 50
50 #if defined(USE_ASH) 51 #if defined(USE_ASH)
51 #include "chrome/browser/ui/ash/ash_util.h" 52 #include "chrome/browser/ui/ash/ash_util.h"
52 #endif 53 #endif
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 DuplicateTab(browser_); 420 DuplicateTab(browser_);
420 break; 421 break;
421 case IDC_RESTORE_TAB: 422 case IDC_RESTORE_TAB:
422 RestoreTab(browser_); 423 RestoreTab(browser_);
423 break; 424 break;
424 case IDC_SHOW_AS_TAB: 425 case IDC_SHOW_AS_TAB:
425 ConvertPopupToTabbedBrowser(browser_); 426 ConvertPopupToTabbedBrowser(browser_);
426 break; 427 break;
427 case IDC_FULLSCREEN: 428 case IDC_FULLSCREEN:
428 #if defined(OS_MACOSX) 429 #if defined(OS_MACOSX)
429 chrome::ToggleFullscreenWithChrome(browser_); 430 if (base::mac::IsOSLionOrLater())
431 chrome::ToggleFullscreenWithChrome(browser_);
432 else
433 chrome::ToggleFullscreenMode(browser_);
430 #else 434 #else
431 chrome::ToggleFullscreenMode(browser_); 435 chrome::ToggleFullscreenMode(browser_);
432 #endif 436 #endif
433 break; 437 break;
434 438
435 #if defined(USE_ASH) 439 #if defined(USE_ASH)
436 case IDC_TOGGLE_ASH_DESKTOP: 440 case IDC_TOGGLE_ASH_DESKTOP:
437 chrome::ToggleAshDesktop(); 441 chrome::ToggleAshDesktop();
438 break; 442 break;
439 #endif 443 #endif
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 1259
1256 BrowserWindow* BrowserCommandController::window() { 1260 BrowserWindow* BrowserCommandController::window() {
1257 return browser_->window(); 1261 return browser_->window();
1258 } 1262 }
1259 1263
1260 Profile* BrowserCommandController::profile() { 1264 Profile* BrowserCommandController::profile() {
1261 return browser_->profile(); 1265 return browser_->profile();
1262 } 1266 }
1263 1267
1264 } // namespace chrome 1268 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698