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_PLATFORM_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_H_ |
7 | 7 |
8 #include "chrome/browser/ui/extensions/extension_action_view_controller.h" | 8 #include "chrome/browser/ui/extensions/extension_action_view_controller.h" |
9 | 9 |
10 class GURL; | 10 class GURL; |
(...skipping 21 matching lines...) Expand all Loading... |
32 // Shows the given |host|. |grant_tab_permissions| is true if active tab | 32 // Shows the given |host|. |grant_tab_permissions| is true if active tab |
33 // permissions should be given to the extension; this is only true if the | 33 // permissions should be given to the extension; this is only true if the |
34 // popup is opened through a user action. | 34 // popup is opened through a user action. |
35 virtual void ShowPopup( | 35 virtual void ShowPopup( |
36 scoped_ptr<extensions::ExtensionViewHost> host, | 36 scoped_ptr<extensions::ExtensionViewHost> host, |
37 bool grant_tab_permissions, | 37 bool grant_tab_permissions, |
38 ExtensionActionViewController::PopupShowAction show_action) = 0; | 38 ExtensionActionViewController::PopupShowAction show_action) = 0; |
39 | 39 |
40 // Closes the overflow menu, if it was open. | 40 // Closes the overflow menu, if it was open. |
41 virtual void CloseOverflowMenu() = 0; | 41 virtual void CloseOverflowMenu() = 0; |
| 42 |
| 43 // Shows a sidebar with a given |sidebar_contents|. |
| 44 virtual void ShowSidebar(content::WebContents* sidebar_contents) = 0; |
| 45 // Hides a sidebar if there are active one. |
| 46 virtual void HideSidebar() = 0; |
42 }; | 47 }; |
43 | 48 |
44 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_H_ | 49 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_H_ |
OLD | NEW |