Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Side by Side Diff: chrome/browser/ui/cocoa/toolbar/toolbar_action_view_delegate_cocoa.h

Issue 703443002: Move more extension action cocoa logic into the platform delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dc_toolbar_abstract_extension_action
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698