OLD | NEW |
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/views/ash/launcher/launcher_context_menu.h" | 5 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h" |
6 | 6 |
7 #include "ash/launcher/launcher_context_menu.h" | 7 #include "ash/launcher/launcher_context_menu.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "chrome/browser/extensions/extension_prefs.h" | 10 #include "chrome/browser/extensions/extension_prefs.h" |
11 #include "chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h" | 11 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 #include "grit/ash_strings.h" | 13 #include "grit/ash_strings.h" |
14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
16 | 16 |
17 LauncherContextMenu::LauncherContextMenu(ChromeLauncherController* controller, | 17 LauncherContextMenu::LauncherContextMenu(ChromeLauncherController* controller, |
18 const ash::LauncherItem* item) | 18 const ash::LauncherItem* item) |
19 : ui::SimpleMenuModel(NULL), | 19 : ui::SimpleMenuModel(NULL), |
20 controller_(controller), | 20 controller_(controller), |
21 item_(item ? *item : ash::LauncherItem()) { | 21 item_(item ? *item : ash::LauncherItem()) { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 case MENU_NEW_WINDOW: | 150 case MENU_NEW_WINDOW: |
151 controller_->CreateNewWindow(); | 151 controller_->CreateNewWindow(); |
152 break; | 152 break; |
153 case MENU_NEW_INCOGNITO_WINDOW: | 153 case MENU_NEW_INCOGNITO_WINDOW: |
154 controller_->CreateNewIncognitoWindow(); | 154 controller_->CreateNewIncognitoWindow(); |
155 break; | 155 break; |
156 case MENU_ALIGNMENT_MENU: | 156 case MENU_ALIGNMENT_MENU: |
157 break; | 157 break; |
158 } | 158 } |
159 } | 159 } |
OLD | NEW |