Chromium Code Reviews| Index: chrome/browser/chromeos/login/webui_login_view.h |
| diff --git a/chrome/browser/chromeos/login/webui_login_view.h b/chrome/browser/chromeos/login/webui_login_view.h |
| index 20c02f18e0a8fb8ba4f8d614f196c3e1fe48add2..f4aad3abe0e36aa0b693aea66668416f669a3d87 100644 |
| --- a/chrome/browser/chromeos/login/webui_login_view.h |
| +++ b/chrome/browser/chromeos/login/webui_login_view.h |
| @@ -8,6 +8,7 @@ |
| #include "chrome/browser/chromeos/login/login_html_dialog.h" |
| #include "chrome/browser/chromeos/status/status_area_host.h" |
| +#include "chrome/browser/chromeos/tab_first_render_watcher.h" |
| #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" |
| #include "content/browser/tab_contents/tab_contents_delegate.h" |
| #include "views/view.h" |
| @@ -24,6 +25,7 @@ class Widget; |
| namespace chromeos { |
| class StatusAreaView; |
| +class TabFirstRenderWatcher; |
| // View used to render a WebUI supporting Widget. This widget is used for the |
| // WebUI based start up and lock screens. It contains a StatusAreaView and |
| @@ -31,7 +33,8 @@ class StatusAreaView; |
| class WebUILoginView : public views::View, |
| public StatusAreaHost, |
| public TabContentsDelegate, |
| - public chromeos::LoginHtmlDialog::Delegate { |
| + public chromeos::LoginHtmlDialog::Delegate, |
| + public TabFirstRenderWatcher::Delegate { |
| public: |
| static const int kStatusAreaCornerPadding; |
| @@ -87,6 +90,10 @@ class WebUILoginView : public views::View, |
| virtual void OnDialogClosed() OVERRIDE; |
| virtual void OnLocaleChanged() OVERRIDE; |
| + // TabFirstRenderWatcher::Delegate implementation |
|
achuithb
2011/08/09 21:33:32
period at end of comment.
xiyuan
2011/08/09 23:08:26
Done.
|
| + void OnTabMainFrameLoaded() OVERRIDE; |
|
achuithb
2011/08/09 21:33:32
Should be virtual, right? Same for method below.
xiyuan
2011/08/09 23:08:26
Done.
|
| + void OnTabMainFrameFirstRender() OVERRIDE; |
| + |
| // Creates and adds the status area (separate window). |
| virtual void InitStatusArea(); |
| @@ -120,6 +127,12 @@ class WebUILoginView : public views::View, |
| // Proxy settings dialog that can be invoked from network menu. |
| scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; |
| + // Watches webui_login_'s TabContents rendering. |
| + scoped_ptr<TabFirstRenderWatcher> tab_watcher_; |
| + |
| + // Whether the host window is freezed. |
| + bool host_window_freezed_; |
|
Daniel Erat
2011/08/09 21:31:24
nit: s/freezed/frozen/
achuithb
2011/08/09 21:33:32
frozen? host_window_frozen_?
xiyuan
2011/08/09 23:08:26
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
| }; |