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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_context_menu.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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
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/views/bookmarks/bookmark_context_menu.h" 5 #include "chrome/browser/ui/views/bookmarks/bookmark_context_menu.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "components/bookmarks/browser/bookmark_model.h" 11 #include "components/bookmarks/browser/bookmark_model.h"
12 #include "content/public/browser/notification_service.h" 12 #include "content/public/browser/notification_service.h"
13 #include "grit/generated_resources.h"
14 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/views/controls/menu/menu_item_view.h" 13 #include "ui/views/controls/menu/menu_item_view.h"
16 #include "ui/views/controls/menu/menu_model_adapter.h" 14 #include "ui/views/controls/menu/menu_model_adapter.h"
17 #include "ui/views/controls/menu/menu_runner.h" 15 #include "ui/views/controls/menu/menu_runner.h"
18 #include "ui/views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
19 17
20 using content::PageNavigator; 18 using content::PageNavigator;
21 19
22 namespace { 20 namespace {
23 21
24 // Returns true if |command_id| corresponds to a command that causes one or more 22 // Returns true if |command_id| corresponds to a command that causes one or more
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 int command_id, 114 int command_id,
117 const std::vector<const BookmarkNode*>& bookmarks) { 115 const std::vector<const BookmarkNode*>& bookmarks) {
118 if (observer_ && IsRemoveBookmarksCommand(command_id)) 116 if (observer_ && IsRemoveBookmarksCommand(command_id))
119 observer_->WillRemoveBookmarks(bookmarks); 117 observer_->WillRemoveBookmarks(bookmarks);
120 } 118 }
121 119
122 void BookmarkContextMenu::DidExecuteCommand(int command_id) { 120 void BookmarkContextMenu::DidExecuteCommand(int command_id) {
123 if (observer_ && IsRemoveBookmarksCommand(command_id)) 121 if (observer_ && IsRemoveBookmarksCommand(command_id))
124 observer_->DidRemoveBookmarks(); 122 observer_->DidRemoveBookmarks();
125 } 123 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698