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

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

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing errors reported by presubmit Created 6 years, 7 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
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/core/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" 13 #include "grit/generated_resources.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/views/controls/menu/menu_item_view.h" 15 #include "ui/views/controls/menu/menu_item_view.h"
16 #include "ui/views/controls/menu/menu_model_adapter.h" 16 #include "ui/views/controls/menu/menu_model_adapter.h"
17 #include "ui/views/controls/menu/menu_runner.h" 17 #include "ui/views/controls/menu/menu_runner.h"
18 #include "ui/views/widget/widget.h" 18 #include "ui/views/widget/widget.h"
19 19
20 using content::PageNavigator; 20 using content::PageNavigator;
21 21
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 int command_id, 114 int command_id,
115 const std::vector<const BookmarkNode*>& bookmarks) { 115 const std::vector<const BookmarkNode*>& bookmarks) {
116 if (observer_ && IsRemoveBookmarksCommand(command_id)) 116 if (observer_ && IsRemoveBookmarksCommand(command_id))
117 observer_->WillRemoveBookmarks(bookmarks); 117 observer_->WillRemoveBookmarks(bookmarks);
118 } 118 }
119 119
120 void BookmarkContextMenu::DidExecuteCommand(int command_id) { 120 void BookmarkContextMenu::DidExecuteCommand(int command_id) {
121 if (observer_ && IsRemoveBookmarksCommand(command_id)) 121 if (observer_ && IsRemoveBookmarksCommand(command_id))
122 observer_->DidRemoveBookmarks(); 122 observer_->DidRemoveBookmarks();
123 } 123 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698