| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/bookmark_context_menu.h" | 5 #include "chrome/browser/views/bookmark_context_menu.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
| 9 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_service.h" |
| 11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
| 12 #include "views/controls/menu/menu_item_view.h" | 12 #include "views/controls/menu/menu_item_view.h" |
| 13 | 13 |
| 14 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
| 15 // BookmarkContextMenu, public: | 15 // BookmarkContextMenu, public: |
| 16 | 16 |
| 17 BookmarkContextMenu::BookmarkContextMenu( | 17 BookmarkContextMenu::BookmarkContextMenu( |
| 18 gfx::NativeWindow parent_window, | 18 gfx::NativeWindow parent_window, |
| 19 Profile* profile, | 19 Profile* profile, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void BookmarkContextMenu::WillRemoveBookmarks( | 91 void BookmarkContextMenu::WillRemoveBookmarks( |
| 92 const std::vector<const BookmarkNode*>& bookmarks) { | 92 const std::vector<const BookmarkNode*>& bookmarks) { |
| 93 if (observer_) | 93 if (observer_) |
| 94 observer_->WillRemoveBookmarks(bookmarks); | 94 observer_->WillRemoveBookmarks(bookmarks); |
| 95 } | 95 } |
| 96 | 96 |
| 97 void BookmarkContextMenu::DidRemoveBookmarks() { | 97 void BookmarkContextMenu::DidRemoveBookmarks() { |
| 98 if (observer_) | 98 if (observer_) |
| 99 observer_->DidRemoveBookmarks(); | 99 observer_->DidRemoveBookmarks(); |
| 100 } | 100 } |
| OLD | NEW |