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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.h

Issue 1105713002: [Extension Toolbar] Slide out overflowed actions for popups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 "base/callback.h" 8 #include "base/callback.h"
9 #include "chrome/browser/ui/extensions/extension_action_platform_delegate.h" 9 #include "chrome/browser/ui/extensions/extension_action_platform_delegate.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 24 matching lines...) Expand all
35 public: 35 public:
36 ExtensionActionPlatformDelegateViews( 36 ExtensionActionPlatformDelegateViews(
37 ExtensionActionViewController* controller); 37 ExtensionActionViewController* controller);
38 ~ExtensionActionPlatformDelegateViews() override; 38 ~ExtensionActionPlatformDelegateViews() override;
39 39
40 private: 40 private:
41 // ExtensionActionPlatformDelegate: 41 // ExtensionActionPlatformDelegate:
42 bool IsMenuRunning() const override; 42 bool IsMenuRunning() const override;
43 void RegisterCommand() override; 43 void RegisterCommand() override;
44 void OnDelegateSet() override; 44 void OnDelegateSet() override;
45 extensions::ExtensionViewHost* ShowPopupWithUrl( 45 void ShowPopup(
46 ExtensionActionViewController::PopupShowAction show_action, 46 scoped_ptr<extensions::ExtensionViewHost> host,
47 const GURL& popup_url, 47 bool grant_tab_permissions,
48 bool grant_tab_permissions) override; 48 ExtensionActionViewController::PopupShowAction show_action) override;
49 void CloseOverflowMenu() override;
49 50
50 // content::NotificationObserver: 51 // content::NotificationObserver:
51 void Observe(int type, 52 void Observe(int type,
52 const content::NotificationSource& source, 53 const content::NotificationSource& source,
53 const content::NotificationDetails& details) override; 54 const content::NotificationDetails& details) override;
54 55
55 // ui::AcceleratorTarget: 56 // ui::AcceleratorTarget:
56 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 57 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
57 bool CanHandleAccelerators() const override; 58 bool CanHandleAccelerators() const override;
58 59
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 base::Closure followup_context_menu_task_; 93 base::Closure followup_context_menu_task_;
93 94
94 content::NotificationRegistrar registrar_; 95 content::NotificationRegistrar registrar_;
95 96
96 base::WeakPtrFactory<ExtensionActionPlatformDelegateViews> weak_factory_; 97 base::WeakPtrFactory<ExtensionActionPlatformDelegateViews> weak_factory_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateViews); 99 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateViews);
99 }; 100 };
100 101
101 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE _VIEWS_H_ 102 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE _VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698