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

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

Issue 1171873003: [Mac] Add cocoa implementation for sidebar extension action support Base URL: https://chromium.googlesource.com/chromium/src.git@patch-b
Patch Set: Rebased patch set to 1169823005/#ps200001 Created 5 years, 3 months 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_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_CO COA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_CO COA_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_CO COA_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_CO COA_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include "chrome/browser/ui/extensions/extension_action_platform_delegate.h" 10 #include "chrome/browser/ui/extensions/extension_action_platform_delegate.h"
(...skipping 13 matching lines...) Expand all
24 24
25 private: 25 private:
26 // ExtensionActionPlatformDelegate: 26 // ExtensionActionPlatformDelegate:
27 void RegisterCommand() override; 27 void RegisterCommand() override;
28 void OnDelegateSet() override; 28 void OnDelegateSet() override;
29 void ShowPopup( 29 void ShowPopup(
30 scoped_ptr<extensions::ExtensionViewHost> host, 30 scoped_ptr<extensions::ExtensionViewHost> host,
31 bool grant_tab_permissions, 31 bool grant_tab_permissions,
32 ExtensionActionViewController::PopupShowAction show_action) override; 32 ExtensionActionViewController::PopupShowAction show_action) override;
33 void CloseOverflowMenu() override; 33 void CloseOverflowMenu() override;
34 void ShowSidebar(content::WebContents* sidebar_contents) override;
35 void HideSidebar() override;
34 36
35 // content::NotificationObserver: 37 // content::NotificationObserver:
36 void Observe(int type, 38 void Observe(int type,
37 const content::NotificationSource& source, 39 const content::NotificationSource& source,
38 const content::NotificationDetails& details) override; 40 const content::NotificationDetails& details) override;
39 41
40 // Returns the point at which the popup should be shown. 42 // Returns the point at which the popup should be shown.
41 NSPoint GetPopupPoint() const; 43 NSPoint GetPopupPoint() const;
42 44
43 // The main controller for this extension action. 45 // The main controller for this extension action.
44 ExtensionActionViewController* controller_; 46 ExtensionActionViewController* controller_;
45 47
46 content::NotificationRegistrar registrar_; 48 content::NotificationRegistrar registrar_;
47 49
48 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateCocoa); 50 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateCocoa);
49 }; 51 };
50 52
51 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE _COCOA_H_ 53 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE _COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698