| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_context_menu_cocoa_controlle
r.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_context_menu_cocoa_controlle
r.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
| 10 #include "chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h" |
| 11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
| 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
| 13 #include "components/bookmarks/core/browser/bookmark_model.h" | 13 #include "components/bookmarks/browser/bookmark_model.h" |
| 14 #import "ui/base/cocoa/menu_controller.h" | 14 #import "ui/base/cocoa/menu_controller.h" |
| 15 | 15 |
| 16 @interface BookmarkContextMenuCocoaController (Private) | 16 @interface BookmarkContextMenuCocoaController (Private) |
| 17 - (void)willExecuteCommand:(int)command; | 17 - (void)willExecuteCommand:(int)command; |
| 18 @end | 18 @end |
| 19 | 19 |
| 20 class BookmarkContextMenuDelegateBridge : | 20 class BookmarkContextMenuDelegateBridge : |
| 21 public BookmarkContextMenuControllerDelegate { | 21 public BookmarkContextMenuControllerDelegate { |
| 22 public: | 22 public: |
| 23 BookmarkContextMenuDelegateBridge( | 23 BookmarkContextMenuDelegateBridge( |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 [bookmarkBarController_ closeFolderAndStopTrackingMenus]; | 128 [bookmarkBarController_ closeFolderAndStopTrackingMenus]; |
| 129 if (bookmarkNode_) | 129 if (bookmarkNode_) |
| 130 [bookmarkBarController_ unhighlightBookmark:bookmarkNode_]; | 130 [bookmarkBarController_ unhighlightBookmark:bookmarkNode_]; |
| 131 } | 131 } |
| 132 | 132 |
| 133 - (void)cancelTracking { | 133 - (void)cancelTracking { |
| 134 [[menuController_ menu] cancelTracking]; | 134 [[menuController_ menu] cancelTracking]; |
| 135 } | 135 } |
| 136 | 136 |
| 137 @end | 137 @end |
| OLD | NEW |