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_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL
ER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL
ER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL
ER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL
ER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 // Closes the overflow menu (and its context menu if open as well). | 48 // Closes the overflow menu (and its context menu if open as well). |
49 void CancelMenu(); | 49 void CancelMenu(); |
50 | 50 |
51 // Overridden from views::MenuDelegate: | 51 // Overridden from views::MenuDelegate: |
52 virtual bool IsCommandEnabled(int id) const OVERRIDE; | 52 virtual bool IsCommandEnabled(int id) const OVERRIDE; |
53 virtual void ExecuteCommand(int id) OVERRIDE; | 53 virtual void ExecuteCommand(int id) OVERRIDE; |
54 virtual bool ShowContextMenu(views::MenuItemView* source, | 54 virtual bool ShowContextMenu(views::MenuItemView* source, |
55 int id, | 55 int id, |
56 const gfx::Point& p, | 56 const gfx::Point& p, |
57 bool is_mouse_gesture) OVERRIDE; | 57 ui::MenuSourceType source_type) OVERRIDE; |
58 virtual void DropMenuClosed(views::MenuItemView* menu) OVERRIDE; | 58 virtual void DropMenuClosed(views::MenuItemView* menu) OVERRIDE; |
59 // These drag functions offer support for dragging icons into the overflow | 59 // These drag functions offer support for dragging icons into the overflow |
60 // menu. | 60 // menu. |
61 virtual bool GetDropFormats( | 61 virtual bool GetDropFormats( |
62 views::MenuItemView* menu, | 62 views::MenuItemView* menu, |
63 int* formats, | 63 int* formats, |
64 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | 64 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; |
65 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE; | 65 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE; |
66 virtual bool CanDrop(views::MenuItemView* menu, | 66 virtual bool CanDrop(views::MenuItemView* menu, |
67 const ui::OSExchangeData& data) OVERRIDE; | 67 const ui::OSExchangeData& data) OVERRIDE; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // Whether this controller is being used for drop. | 115 // Whether this controller is being used for drop. |
116 bool for_drop_; | 116 bool for_drop_; |
117 | 117 |
118 friend class base::DeleteHelper<BrowserActionOverflowMenuController>; | 118 friend class base::DeleteHelper<BrowserActionOverflowMenuController>; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(BrowserActionOverflowMenuController); | 120 DISALLOW_COPY_AND_ASSIGN(BrowserActionOverflowMenuController); |
121 }; | 121 }; |
122 | 122 |
123 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTR
OLLER_H_ | 123 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTR
OLLER_H_ |
OLD | NEW |