Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 // Sets the page navigator. | 73 // Sets the page navigator. |
| 74 void SetPageNavigator(content::PageNavigator* navigator); | 74 void SetPageNavigator(content::PageNavigator* navigator); |
| 75 | 75 |
| 76 void set_observer(Observer* observer) { observer_ = observer; } | 76 void set_observer(Observer* observer) { observer_ = observer; } |
| 77 | 77 |
| 78 // MenuDelegate methods. | 78 // MenuDelegate methods. |
| 79 virtual string16 GetTooltipText(int id, const gfx::Point& p) const OVERRIDE; | 79 virtual string16 GetTooltipText(int id, const gfx::Point& p) const OVERRIDE; |
| 80 virtual bool IsTriggerableEvent(views::MenuItemView* view, | 80 virtual bool IsTriggerableEvent(views::MenuItemView* view, |
| 81 const ui::Event& e) OVERRIDE; | 81 const ui::Event& e) OVERRIDE; |
| 82 virtual void ExecuteCommand(int id, int mouse_event_flags) OVERRIDE; | 82 virtual void ExecuteCommand(int id, int mouse_event_flags) OVERRIDE; |
| 83 virtual bool ShouldExecuteCommandWithoutClosingMenu( | |
| 84 int id, const ui::Event& e) OVERRIDE; | |
|
sky
2012/12/11 15:59:43
when you wrap each param on its own line.
yosin_UTC9
2012/12/12 01:39:39
Done.
| |
| 83 virtual bool GetDropFormats( | 85 virtual bool GetDropFormats( |
| 84 views::MenuItemView* menu, | 86 views::MenuItemView* menu, |
| 85 int* formats, | 87 int* formats, |
| 86 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | 88 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; |
| 87 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE; | 89 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE; |
| 88 virtual bool CanDrop(views::MenuItemView* menu, | 90 virtual bool CanDrop(views::MenuItemView* menu, |
| 89 const ui::OSExchangeData& data) OVERRIDE; | 91 const ui::OSExchangeData& data) OVERRIDE; |
| 90 virtual int GetDropOperation(views::MenuItemView* item, | 92 virtual int GetDropOperation(views::MenuItemView* item, |
| 91 const ui::DropTargetEvent& event, | 93 const ui::DropTargetEvent& event, |
| 92 DropPosition* position) OVERRIDE; | 94 DropPosition* position) OVERRIDE; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 bool for_drop_; | 136 bool for_drop_; |
| 135 | 137 |
| 136 // The bookmark bar. This is only non-null if we're showing a menu item | 138 // The bookmark bar. This is only non-null if we're showing a menu item |
| 137 // for a folder on the bookmark bar and not for drop. | 139 // for a folder on the bookmark bar and not for drop. |
| 138 BookmarkBarView* bookmark_bar_; | 140 BookmarkBarView* bookmark_bar_; |
| 139 | 141 |
| 140 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController); | 142 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController); |
| 141 }; | 143 }; |
| 142 | 144 |
| 143 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ | 145 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ |
| OLD | NEW |