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

Side by Side Diff: chrome/browser/ui/extensions/extension_action_platform_delegate.h

Issue 1169823005: Add sidebar views implementation using ExtensionSystem SidebarManager Base URL: https://chromium.googlesource.com/chromium/src.git@patch-a
Patch Set: Rebased patch set to 1168383002/#ps220001 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_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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_ui_prefs.cc ('k') | chrome/browser/ui/extensions/extension_action_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698