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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_action_view_controller_cocoa.h

Issue 670463004: Make a platform-independent ToolbarActionViewController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_VIEW_CONTROLLER_COCO A_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_VIEW_CONTROLLER_COCO A_H_
7
8 #include "chrome/browser/ui/extensions/extension_action_view_controller.h"
9
10 @class ExtensionPopupController;
11 class ToolbarActionViewDelegateCocoa;
12
13 // The cocoa-specific implementation for ExtensionActionViewController.
14 class ExtensionActionViewControllerCocoa
15 : public ExtensionActionViewController {
16 public:
17 ExtensionActionViewControllerCocoa(const extensions::Extension* extension,
18 Browser* browser,
19 ExtensionAction* extension_action);
20 ~ExtensionActionViewControllerCocoa() override;
21
22 private:
23 // ToolbarActionViewController:
24 gfx::NativeView GetPopupNativeView() override;
25 bool IsMenuRunning() const override;
26 void RegisterCommand() override;
27
28 // ExtensionActionViewController:
29 bool IsShowingPopup() const override;
30 void CloseActivePopup() override;
31 void ClosePopupImpl() override;
32 bool ShowPopupWithUrlImpl(PopupShowAction show_action,
33 const GURL& popup_url,
34 bool grant_tab_permissions) override;
35
36 // Returns the popup shown by this extension action, if one exists.
37 ExtensionPopupController* GetPopup() const;
38
39 // Returns the delegate in its cocoa implementation.
40 ToolbarActionViewDelegateCocoa* GetDelegateCocoa();
41
42 DISALLOW_COPY_AND_ASSIGN(ExtensionActionViewControllerCocoa);
43 };
44
45 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_VIEW_CONTROLLER_C OCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698