| 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 "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // Sets the window title. | 52 // Sets the window title. |
| 53 void set_title(const string16& title) { window_title_ = title; } | 53 void set_title(const string16& title) { window_title_ = title; } |
| 54 | 54 |
| 55 ExtensionHost* host() const { return extension_host_.get(); } | 55 ExtensionHost* host() const { return extension_host_.get(); } |
| 56 | 56 |
| 57 // views::WidgetDelegate overrides. | 57 // views::WidgetDelegate overrides. |
| 58 virtual bool CanResize() const OVERRIDE; | 58 virtual bool CanResize() const OVERRIDE; |
| 59 virtual bool IsModal() const OVERRIDE; | 59 virtual bool IsModal() const OVERRIDE; |
| 60 virtual bool ShouldShowWindowTitle() const OVERRIDE; | 60 virtual bool ShouldShowWindowTitle() const OVERRIDE; |
| 61 virtual string16 GetWindowTitle() const OVERRIDE; | 61 virtual string16 GetWindowTitle() const OVERRIDE; |
| 62 virtual void WindowClosing() OVERRIDE; |
| 62 virtual void DeleteDelegate() OVERRIDE; | 63 virtual void DeleteDelegate() OVERRIDE; |
| 63 virtual views::Widget* GetWidget() OVERRIDE; | 64 virtual views::Widget* GetWidget() OVERRIDE; |
| 64 virtual const views::Widget* GetWidget() const OVERRIDE; | 65 virtual const views::Widget* GetWidget() const OVERRIDE; |
| 65 virtual views::View* GetContentsView() OVERRIDE; | 66 virtual views::View* GetContentsView() OVERRIDE; |
| 66 | 67 |
| 67 // content::NotificationObserver overrides. | 68 // content::NotificationObserver overrides. |
| 68 virtual void Observe(int type, | 69 virtual void Observe(int type, |
| 69 const content::NotificationSource& source, | 70 const content::NotificationSource& source, |
| 70 const content::NotificationDetails& details) OVERRIDE; | 71 const content::NotificationDetails& details) OVERRIDE; |
| 71 | 72 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 89 | 90 |
| 90 content::NotificationRegistrar registrar_; | 91 content::NotificationRegistrar registrar_; |
| 91 | 92 |
| 92 // The observer of this popup. | 93 // The observer of this popup. |
| 93 ExtensionDialogObserver* observer_; | 94 ExtensionDialogObserver* observer_; |
| 94 | 95 |
| 95 DISALLOW_COPY_AND_ASSIGN(ExtensionDialog); | 96 DISALLOW_COPY_AND_ASSIGN(ExtensionDialog); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ | 99 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ |
| OLD | NEW |