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

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

Issue 10700071: browser: Remove fullscreen functions and have callers call FullscreenController directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 5 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 | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_commands.h » ('j') | 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 case IDC_DUPLICATE_TAB: 318 case IDC_DUPLICATE_TAB:
319 DuplicateTab(browser_); 319 DuplicateTab(browser_);
320 break; 320 break;
321 case IDC_RESTORE_TAB: 321 case IDC_RESTORE_TAB:
322 RestoreTab(browser_); 322 RestoreTab(browser_);
323 break; 323 break;
324 case IDC_SHOW_AS_TAB: 324 case IDC_SHOW_AS_TAB:
325 ConvertPopupToTabbedBrowser(browser_); 325 ConvertPopupToTabbedBrowser(browser_);
326 break; 326 break;
327 case IDC_FULLSCREEN: 327 case IDC_FULLSCREEN:
328 browser_->ToggleFullscreenMode(); 328 chrome::ToggleFullscreenMode(browser_);
329 break; 329 break;
330 #if defined(OS_WIN) 330 #if defined(OS_WIN)
331 case IDC_METRO_SNAP_ENABLE: 331 case IDC_METRO_SNAP_ENABLE:
332 browser_->SetMetroSnapMode(true); 332 browser_->SetMetroSnapMode(true);
333 break; 333 break;
334 case IDC_METRO_SNAP_DISABLE: 334 case IDC_METRO_SNAP_DISABLE:
335 browser_->SetMetroSnapMode(false); 335 browser_->SetMetroSnapMode(false);
336 break; 336 break;
337 #endif 337 #endif
338 #if defined(OS_MACOSX) 338 #if defined(OS_MACOSX)
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 1066
1067 BrowserWindow* BrowserCommandController::window() { 1067 BrowserWindow* BrowserCommandController::window() {
1068 return browser_->window(); 1068 return browser_->window();
1069 } 1069 }
1070 1070
1071 Profile* BrowserCommandController::profile() { 1071 Profile* BrowserCommandController::profile() {
1072 return browser_->profile(); 1072 return browser_->profile();
1073 } 1073 }
1074 1074
1075 } // namespace chrome 1075 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698