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/bookmarks/bookmark_context_menu_controller.h" | 5 #include "chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/prefs/pref_service.h" | |
12 #include "chrome/app/chrome_command_ids.h" | 11 #include "chrome/app/chrome_command_ids.h" |
13 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 12 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
14 #include "chrome/browser/bookmarks/managed_bookmark_service_factory.h" | 13 #include "chrome/browser/bookmarks/managed_bookmark_service_factory.h" |
15 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 14 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" | 16 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" |
18 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" | 17 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" |
19 #include "chrome/browser/ui/bookmarks/bookmark_utils_desktop.h" | 18 #include "chrome/browser/ui/bookmarks/bookmark_utils_desktop.h" |
20 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
21 #include "chrome/browser/ui/chrome_pages.h" | 20 #include "chrome/browser/ui/chrome_pages.h" |
22 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 21 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
23 #include "chrome/browser/undo/bookmark_undo_service_factory.h" | 22 #include "chrome/browser/undo/bookmark_undo_service_factory.h" |
24 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
25 #include "chrome/grit/generated_resources.h" | 24 #include "chrome/grit/generated_resources.h" |
26 #include "components/bookmarks/browser/bookmark_client.h" | 25 #include "components/bookmarks/browser/bookmark_client.h" |
27 #include "components/bookmarks/browser/bookmark_model.h" | 26 #include "components/bookmarks/browser/bookmark_model.h" |
28 #include "components/bookmarks/browser/bookmark_utils.h" | 27 #include "components/bookmarks/browser/bookmark_utils.h" |
29 #include "components/bookmarks/common/bookmark_pref_names.h" | 28 #include "components/bookmarks/common/bookmark_pref_names.h" |
30 #include "components/bookmarks/managed/managed_bookmark_service.h" | 29 #include "components/bookmarks/managed/managed_bookmark_service.h" |
| 30 #include "components/prefs/pref_service.h" |
31 #include "components/undo/bookmark_undo_service.h" | 31 #include "components/undo/bookmark_undo_service.h" |
32 #include "content/public/browser/page_navigator.h" | 32 #include "content/public/browser/page_navigator.h" |
33 #include "content/public/browser/user_metrics.h" | 33 #include "content/public/browser/user_metrics.h" |
34 #include "grit/components_strings.h" | 34 #include "grit/components_strings.h" |
35 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
36 | 36 |
37 using base::UserMetricsAction; | 37 using base::UserMetricsAction; |
38 using bookmarks::BookmarkNode; | 38 using bookmarks::BookmarkNode; |
39 using content::PageNavigator; | 39 using content::PageNavigator; |
40 | 40 |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 bool BookmarkContextMenuController::GetAcceleratorForCommandId( | 438 bool BookmarkContextMenuController::GetAcceleratorForCommandId( |
439 int command_id, | 439 int command_id, |
440 ui::Accelerator* accelerator) { | 440 ui::Accelerator* accelerator) { |
441 return false; | 441 return false; |
442 } | 442 } |
443 | 443 |
444 void BookmarkContextMenuController::BookmarkModelChanged() { | 444 void BookmarkContextMenuController::BookmarkModelChanged() { |
445 if (delegate_) | 445 if (delegate_) |
446 delegate_->CloseMenu(); | 446 delegate_->CloseMenu(); |
447 } | 447 } |
OLD | NEW |