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

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

Issue 10699057: Move application creation and extension install prompt showing off Browser and onto ExtensionTabHel… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 break; 472 break;
473 case IDC_FOCUS_PREVIOUS_PANE: 473 case IDC_FOCUS_PREVIOUS_PANE:
474 FocusPreviousPane(browser_); 474 FocusPreviousPane(browser_);
475 break; 475 break;
476 476
477 // Show various bits of UI 477 // Show various bits of UI
478 case IDC_OPEN_FILE: 478 case IDC_OPEN_FILE:
479 browser_->OpenFile(); 479 browser_->OpenFile();
480 break; 480 break;
481 case IDC_CREATE_SHORTCUTS: 481 case IDC_CREATE_SHORTCUTS:
482 browser_->OpenCreateShortcutsDialog(); 482 CreateApplicationShortcuts(browser_);
483 break; 483 break;
484 case IDC_DEV_TOOLS: 484 case IDC_DEV_TOOLS:
485 ToggleDevToolsWindow(browser_, DEVTOOLS_TOGGLE_ACTION_NONE); 485 ToggleDevToolsWindow(browser_, DEVTOOLS_TOGGLE_ACTION_NONE);
486 break; 486 break;
487 case IDC_DEV_TOOLS_CONSOLE: 487 case IDC_DEV_TOOLS_CONSOLE:
488 ToggleDevToolsWindow(browser_, DEVTOOLS_TOGGLE_ACTION_SHOW_CONSOLE); 488 ToggleDevToolsWindow(browser_, DEVTOOLS_TOGGLE_ACTION_SHOW_CONSOLE);
489 break; 489 break;
490 case IDC_DEV_TOOLS_INSPECT: 490 case IDC_DEV_TOOLS_INSPECT:
491 ToggleDevToolsWindow(browser_, DEVTOOLS_TOGGLE_ACTION_INSPECT); 491 ToggleDevToolsWindow(browser_, DEVTOOLS_TOGGLE_ACTION_INSPECT);
492 break; 492 break;
(...skipping 573 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