OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COCOA_TOOLBAR_TOOLBAR_ACTION_VIEW_DELEGATE_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_ACTION_VIEW_DELEGATE_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_ACTION_VIEW_DELEGATE_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_ACTION_VIEW_DELEGATE_COCOA_H_ |
7 | 7 |
8 #include "chrome/browser/ui/toolbar/toolbar_action_view_delegate.h" | 8 #include "chrome/browser/ui/toolbar/toolbar_action_view_delegate.h" |
9 | 9 |
| 10 @class ExtensionActionContextMenuController; |
| 11 |
10 class ToolbarActionViewDelegateCocoa : public ToolbarActionViewDelegate { | 12 class ToolbarActionViewDelegateCocoa : public ToolbarActionViewDelegate { |
11 public: | 13 public: |
12 // A cocoa-specific implementation to return the point used when showing a | 14 // A cocoa-specific implementation to return the point used when showing a |
13 // popup. | 15 // popup. |
14 virtual NSPoint GetPopupPoint() = 0; | 16 virtual NSPoint GetPopupPoint() = 0; |
| 17 |
| 18 // TODO(devlin): Ideally, this would take a |
| 19 // ToolbarActionContextMenuController, but that doesn't exist (yet). |
| 20 virtual void SetContextMenuController( |
| 21 ExtensionActionContextMenuController* menuController) = 0; |
15 }; | 22 }; |
16 | 23 |
17 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_ACTION_VIEW_DELEGATE_COCOA_H_ | 24 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_TOOLBAR_ACTION_VIEW_DELEGATE_COCOA_H_ |
OLD | NEW |