| 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_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 "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 // ExtensionActionPlatformDelegate: | 27 // ExtensionActionPlatformDelegate: |
| 28 void RegisterCommand() override; | 28 void RegisterCommand() override; |
| 29 void OnDelegateSet() override; | 29 void OnDelegateSet() override; |
| 30 void ShowPopup( | 30 void ShowPopup( |
| 31 scoped_ptr<extensions::ExtensionViewHost> host, | 31 scoped_ptr<extensions::ExtensionViewHost> host, |
| 32 bool grant_tab_permissions, | 32 bool grant_tab_permissions, |
| 33 ExtensionActionViewController::PopupShowAction show_action) override; | 33 ExtensionActionViewController::PopupShowAction show_action) override; |
| 34 void CloseOverflowMenu() override; | 34 void CloseOverflowMenu() override; |
| 35 void ShowContextMenu() override; |
| 35 | 36 |
| 36 // content::NotificationObserver: | 37 // content::NotificationObserver: |
| 37 void Observe(int type, | 38 void Observe(int type, |
| 38 const content::NotificationSource& source, | 39 const content::NotificationSource& source, |
| 39 const content::NotificationDetails& details) override; | 40 const content::NotificationDetails& details) override; |
| 40 | 41 |
| 41 // Returns the point at which the popup should be shown. | 42 // Returns the point at which the popup should be shown. |
| 42 NSPoint GetPopupPoint() const; | 43 NSPoint GetPopupPoint() const; |
| 43 | 44 |
| 44 // The main controller for this extension action. | 45 // The main controller for this extension action. |
| 45 ExtensionActionViewController* controller_; | 46 ExtensionActionViewController* controller_; |
| 46 | 47 |
| 47 content::NotificationRegistrar registrar_; | 48 content::NotificationRegistrar registrar_; |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateCocoa); | 50 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateCocoa); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 #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_ |
| OLD | NEW |