OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/app_list/app_context_menu.h" | 5 #include "chrome/browser/ui/app_list/app_context_menu.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "chrome/browser/extensions/context_menu_matcher.h" | 9 #include "chrome/browser/extensions/context_menu_matcher.h" |
10 #include "chrome/browser/extensions/menu_manager.h" | 10 #include "chrome/browser/extensions/menu_manager.h" |
11 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 11 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/app_list/app_context_menu_delegate.h" | 13 #include "chrome/browser/ui/app_list/app_context_menu_delegate.h" |
14 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 14 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/extensions/manifest_url_handler.h" | 16 #include "chrome/common/extensions/manifest_url_handler.h" |
| 17 #include "chrome/grit/chromium_strings.h" |
| 18 #include "chrome/grit/generated_resources.h" |
17 #include "content/public/common/context_menu_params.h" | 19 #include "content/public/common/context_menu_params.h" |
18 #include "grit/chromium_strings.h" | |
19 #include "grit/generated_resources.h" | |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 | 21 |
22 #if defined(USE_ASH) | 22 #if defined(USE_ASH) |
23 #include "ash/shell.h" | 23 #include "ash/shell.h" |
24 #endif | 24 #endif |
25 | 25 |
26 namespace app_list { | 26 namespace app_list { |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 extension_menu_items_->ExecuteCommand(command_id, NULL, | 281 extension_menu_items_->ExecuteCommand(command_id, NULL, |
282 content::ContextMenuParams()); | 282 content::ContextMenuParams()); |
283 } else if (command_id == MENU_NEW_WINDOW) { | 283 } else if (command_id == MENU_NEW_WINDOW) { |
284 controller_->CreateNewWindow(profile_, false); | 284 controller_->CreateNewWindow(profile_, false); |
285 } else if (command_id == MENU_NEW_INCOGNITO_WINDOW) { | 285 } else if (command_id == MENU_NEW_INCOGNITO_WINDOW) { |
286 controller_->CreateNewWindow(profile_, true); | 286 controller_->CreateNewWindow(profile_, true); |
287 } | 287 } |
288 } | 288 } |
289 | 289 |
290 } // namespace app_list | 290 } // namespace app_list |
OLD | NEW |