Chromium Code Reviews| Index: chrome/browser/ui/views/extensions/extension_dialog.h |
| diff --git a/chrome/browser/ui/views/extensions/extension_dialog.h b/chrome/browser/ui/views/extensions/extension_dialog.h |
| index 072a408ae2d9a957d5cc6c21802a9288794ab94b..51706611ede186c9054d786b62a35d719a1f1a46 100644 |
| --- a/chrome/browser/ui/views/extensions/extension_dialog.h |
| +++ b/chrome/browser/ui/views/extensions/extension_dialog.h |
| @@ -6,6 +6,8 @@ |
| #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ |
| #pragma once |
| +#include <string> |
| + |
| #include "base/memory/ref_counted.h" |
| #include "content/public/browser/notification_observer.h" |
| #include "content/public/browser/notification_registrar.h" |
| @@ -40,6 +42,7 @@ class ExtensionDialog : public views::WidgetDelegate, |
| TabContents* tab_contents, |
| int width, |
| int height, |
| + std::string title, |
|
mazda
2011/11/09 04:49:43
const string16& title
yoshiki
2011/11/09 15:06:39
Done.
|
| ExtensionDialogObserver* observer); |
| // Notifies the dialog that the observer has been destroyed and should not |
| @@ -49,12 +52,16 @@ class ExtensionDialog : public views::WidgetDelegate, |
| // Closes the ExtensionDialog. |
| void Close(); |
| + // Sets the window title. |
| + void set_title(std::string title) { window_title_ = title; } |
|
mazda
2011/11/09 04:49:43
const string16& title
yoshiki
2011/11/09 15:06:39
Done.
|
| + |
| ExtensionHost* host() const { return extension_host_.get(); } |
| // views::WidgetDelegate overrides. |
| virtual bool CanResize() const OVERRIDE; |
| virtual bool IsModal() const OVERRIDE; |
| virtual bool ShouldShowWindowTitle() const OVERRIDE; |
| + virtual string16 GetWindowTitle() const OVERRIDE; |
| virtual void DeleteDelegate() OVERRIDE; |
| virtual views::Widget* GetWidget() OVERRIDE; |
| virtual const views::Widget* GetWidget() const OVERRIDE; |
| @@ -77,6 +84,9 @@ class ExtensionDialog : public views::WidgetDelegate, |
| // Window that holds the extension host view. |
| views::Widget* window_; |
| + // Window Title |
| + std::string window_title_; |
|
mazda
2011/11/09 04:49:43
string16 window_title_;
yoshiki
2011/11/09 15:06:39
Done.
|
| + |
| // The contained host for the view. |
| scoped_ptr<ExtensionHost> extension_host_; |