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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.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_VIEWS_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_VI EWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_VI EWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_VI EWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_VI EWS_H_
7 7
8 #include "chrome/browser/ui/extensions/extension_action_platform_delegate.h" 8 #include "chrome/browser/ui/extensions/extension_action_platform_delegate.h"
9 #include "content/public/browser/notification_observer.h" 9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h" 10 #include "content/public/browser/notification_registrar.h"
(...skipping 19 matching lines...) Expand all
30 ~ExtensionActionPlatformDelegateViews() override; 30 ~ExtensionActionPlatformDelegateViews() override;
31 31
32 private: 32 private:
33 // ExtensionActionPlatformDelegate: 33 // ExtensionActionPlatformDelegate:
34 void RegisterCommand() override; 34 void RegisterCommand() override;
35 void ShowPopup( 35 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) override; 38 ExtensionActionViewController::PopupShowAction show_action) override;
39 void CloseOverflowMenu() override; 39 void CloseOverflowMenu() override;
40 void ShowSidebar(content::WebContents* sidebar_contents) override;
41 void HideSidebar() override;
40 42
41 // content::NotificationObserver: 43 // content::NotificationObserver:
42 void Observe(int type, 44 void Observe(int type,
43 const content::NotificationSource& source, 45 const content::NotificationSource& source,
44 const content::NotificationDetails& details) override; 46 const content::NotificationDetails& details) override;
45 47
46 // ui::AcceleratorTarget: 48 // ui::AcceleratorTarget:
47 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 49 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
48 bool CanHandleAccelerators() const override; 50 bool CanHandleAccelerators() const override;
49 51
(...skipping 10 matching lines...) Expand all
60 // The extension key binding accelerator this extension action is listening 62 // The extension key binding accelerator this extension action is listening
61 // for (to show the popup). 63 // for (to show the popup).
62 scoped_ptr<ui::Accelerator> action_keybinding_; 64 scoped_ptr<ui::Accelerator> action_keybinding_;
63 65
64 content::NotificationRegistrar registrar_; 66 content::NotificationRegistrar registrar_;
65 67
66 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateViews); 68 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateViews);
67 }; 69 };
68 70
69 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE _VIEWS_H_ 71 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE _VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/view_ids.h ('k') | chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698