| 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_EXTENSIONS_EXTENSION_ACTION_VIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ACTION_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ACTION_VIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ACTION_VIEW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/scoped_observer.h" | 9 #include "base/scoped_observer.h" |
| 10 #include "chrome/browser/extensions/extension_action_icon_factory.h" | 10 #include "chrome/browser/extensions/extension_action_icon_factory.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 bool WantsToRun(content::WebContents* web_contents) const override; | 59 bool WantsToRun(content::WebContents* web_contents) const override; |
| 60 bool HasPopup(content::WebContents* web_contents) const override; | 60 bool HasPopup(content::WebContents* web_contents) const override; |
| 61 void HidePopup() override; | 61 void HidePopup() override; |
| 62 gfx::NativeView GetPopupNativeView() override; | 62 gfx::NativeView GetPopupNativeView() override; |
| 63 ui::MenuModel* GetContextMenu() override; | 63 ui::MenuModel* GetContextMenu() override; |
| 64 void OnContextMenuClosed() override; | 64 void OnContextMenuClosed() override; |
| 65 bool CanDrag() const override; | 65 bool CanDrag() const override; |
| 66 bool ExecuteAction(bool by_user) override; | 66 bool ExecuteAction(bool by_user) override; |
| 67 void UpdateState() override; | 67 void UpdateState() override; |
| 68 void RegisterCommand() override; | 68 void RegisterCommand() override; |
| 69 bool DisabledClickOpensMenu() const override; |
| 69 | 70 |
| 70 // ExtensionContextMenuModel::PopupDelegate: | 71 // ExtensionContextMenuModel::PopupDelegate: |
| 71 void InspectPopup() override; | 72 void InspectPopup() override; |
| 72 | 73 |
| 73 // Closes the active popup (whether it was this action's popup or not). | 74 // Closes the active popup (whether it was this action's popup or not). |
| 74 void HideActivePopup(); | 75 void HideActivePopup(); |
| 75 | 76 |
| 76 | 77 |
| 77 // Populates |command| with the command associated with |extension|, if one | 78 // Populates |command| with the command associated with |extension|, if one |
| 78 // exists. Returns true if |command| was populated. | 79 // exists. Returns true if |command| was populated. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 177 |
| 177 ScopedObserver<extensions::ExtensionHost, extensions::ExtensionHostObserver> | 178 ScopedObserver<extensions::ExtensionHost, extensions::ExtensionHostObserver> |
| 178 popup_host_observer_; | 179 popup_host_observer_; |
| 179 | 180 |
| 180 base::WeakPtrFactory<ExtensionActionViewController> weak_factory_; | 181 base::WeakPtrFactory<ExtensionActionViewController> weak_factory_; |
| 181 | 182 |
| 182 DISALLOW_COPY_AND_ASSIGN(ExtensionActionViewController); | 183 DISALLOW_COPY_AND_ASSIGN(ExtensionActionViewController); |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ACTION_VIEW_CONTROLLER_H_ | 186 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ACTION_VIEW_CONTROLLER_H_ |
| OLD | NEW |