| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "chrome/browser/ui/views/extensions/extension_view.h" | 10 #include "chrome/browser/ui/views/extensions/extension_view.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 virtual views::Widget* GetWidget() OVERRIDE; | 58 virtual views::Widget* GetWidget() OVERRIDE; |
| 59 virtual const views::Widget* GetWidget() const OVERRIDE; | 59 virtual const views::Widget* GetWidget() const OVERRIDE; |
| 60 virtual views::View* GetContentsView() OVERRIDE; | 60 virtual views::View* GetContentsView() OVERRIDE; |
| 61 | 61 |
| 62 // ExtensionView::Container overrides. | 62 // ExtensionView::Container overrides. |
| 63 virtual void OnExtensionMouseMove(ExtensionView* view); | 63 virtual void OnExtensionMouseMove(ExtensionView* view); |
| 64 virtual void OnExtensionMouseLeave(ExtensionView* view); | 64 virtual void OnExtensionMouseLeave(ExtensionView* view); |
| 65 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view); | 65 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view); |
| 66 | 66 |
| 67 // NotificationObserver overrides. | 67 // NotificationObserver overrides. |
| 68 virtual void Observe(NotificationType type, | 68 virtual void Observe(int type, |
| 69 const NotificationSource& source, | 69 const NotificationSource& source, |
| 70 const NotificationDetails& details); | 70 const NotificationDetails& details); |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 // Use Show() to create instances. | 73 // Use Show() to create instances. |
| 74 ExtensionDialog(Browser* browser, ExtensionHost* host, int width, int height, | 74 ExtensionDialog(Browser* browser, ExtensionHost* host, int width, int height, |
| 75 ExtensionDialogObserver* observer); | 75 ExtensionDialogObserver* observer); |
| 76 | 76 |
| 77 // Window that holds the extension host view. | 77 // Window that holds the extension host view. |
| 78 views::Widget* window_; | 78 views::Widget* window_; |
| 79 | 79 |
| 80 // The contained host for the view. | 80 // The contained host for the view. |
| 81 scoped_ptr<ExtensionHost> extension_host_; | 81 scoped_ptr<ExtensionHost> extension_host_; |
| 82 | 82 |
| 83 NotificationRegistrar registrar_; | 83 NotificationRegistrar registrar_; |
| 84 | 84 |
| 85 // The observer of this popup. | 85 // The observer of this popup. |
| 86 ExtensionDialogObserver* observer_; | 86 ExtensionDialogObserver* observer_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(ExtensionDialog); | 88 DISALLOW_COPY_AND_ASSIGN(ExtensionDialog); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ | 91 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ |
| OLD | NEW |