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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc

Issue 1093563002: Componentize strings used by //chrome/browser/undo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@injection
Patch Set: Update //components/OWNERS Created 5 years, 8 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
« no previous file with comments | « chrome/app/bookmarks_strings.grdp ('k') | chrome/browser/undo/bookmark_undo_service.cc » ('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/bookmarks/bookmark_context_menu_controller.h" 5 #include "chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "chrome/app/chrome_command_ids.h" 10 #include "chrome/app/chrome_command_ids.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/undo/bookmark_undo_service.h" 21 #include "chrome/browser/undo/bookmark_undo_service.h"
22 #include "chrome/browser/undo/bookmark_undo_service_factory.h" 22 #include "chrome/browser/undo/bookmark_undo_service_factory.h"
23 #include "chrome/common/chrome_switches.h" 23 #include "chrome/common/chrome_switches.h"
24 #include "chrome/common/pref_names.h" 24 #include "chrome/common/pref_names.h"
25 #include "chrome/grit/generated_resources.h" 25 #include "chrome/grit/generated_resources.h"
26 #include "components/bookmarks/browser/bookmark_client.h" 26 #include "components/bookmarks/browser/bookmark_client.h"
27 #include "components/bookmarks/browser/bookmark_model.h" 27 #include "components/bookmarks/browser/bookmark_model.h"
28 #include "components/bookmarks/browser/bookmark_utils.h" 28 #include "components/bookmarks/browser/bookmark_utils.h"
29 #include "content/public/browser/page_navigator.h" 29 #include "content/public/browser/page_navigator.h"
30 #include "content/public/browser/user_metrics.h" 30 #include "content/public/browser/user_metrics.h"
31 #include "grit/components_strings.h"
31 #include "ui/base/l10n/l10n_util.h" 32 #include "ui/base/l10n/l10n_util.h"
32 33
33 using base::UserMetricsAction; 34 using base::UserMetricsAction;
34 using bookmarks::BookmarkNode; 35 using bookmarks::BookmarkNode;
35 using content::PageNavigator; 36 using content::PageNavigator;
36 37
37 BookmarkContextMenuController::BookmarkContextMenuController( 38 BookmarkContextMenuController::BookmarkContextMenuController(
38 gfx::NativeWindow parent_window, 39 gfx::NativeWindow parent_window,
39 BookmarkContextMenuControllerDelegate* delegate, 40 BookmarkContextMenuControllerDelegate* delegate,
40 Browser* browser, 41 Browser* browser,
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 bool BookmarkContextMenuController::GetAcceleratorForCommandId( 428 bool BookmarkContextMenuController::GetAcceleratorForCommandId(
428 int command_id, 429 int command_id,
429 ui::Accelerator* accelerator) { 430 ui::Accelerator* accelerator) {
430 return false; 431 return false;
431 } 432 }
432 433
433 void BookmarkContextMenuController::BookmarkModelChanged() { 434 void BookmarkContextMenuController::BookmarkModelChanged() {
434 if (delegate_) 435 if (delegate_)
435 delegate_->CloseMenu(); 436 delegate_->CloseMenu();
436 } 437 }
OLDNEW
« no previous file with comments | « chrome/app/bookmarks_strings.grdp ('k') | chrome/browser/undo/bookmark_undo_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698