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_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/macros.h" |
8 #include "chrome/browser/ui/extensions/extension_action_platform_delegate.h" | 9 #include "chrome/browser/ui/extensions/extension_action_platform_delegate.h" |
9 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
10 #include "content/public/browser/notification_registrar.h" | 11 #include "content/public/browser/notification_registrar.h" |
11 #include "ui/base/accelerators/accelerator.h" | 12 #include "ui/base/accelerators/accelerator.h" |
12 | 13 |
13 class ToolbarActionViewDelegateViews; | 14 class ToolbarActionViewDelegateViews; |
14 | 15 |
15 // An abstract "View" for an ExtensionAction (either a BrowserAction or a | 16 // An abstract "View" for an ExtensionAction (either a BrowserAction or a |
16 // PageAction). This contains the logic for showing the action's popup and | 17 // PageAction). This contains the logic for showing the action's popup and |
17 // the context menu. This class doesn't subclass View directly, as the | 18 // the context menu. This class doesn't subclass View directly, as the |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // The extension key binding accelerator this extension action is listening | 61 // The extension key binding accelerator this extension action is listening |
61 // for (to show the popup). | 62 // for (to show the popup). |
62 scoped_ptr<ui::Accelerator> action_keybinding_; | 63 scoped_ptr<ui::Accelerator> action_keybinding_; |
63 | 64 |
64 content::NotificationRegistrar registrar_; | 65 content::NotificationRegistrar registrar_; |
65 | 66 |
66 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateViews); | 67 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateViews); |
67 }; | 68 }; |
68 | 69 |
69 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE
_VIEWS_H_ | 70 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE
_VIEWS_H_ |
OLD | NEW |