Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: chrome/browser/chromeos/login/webui_login_view.h

Issue 9582012: TabFirstRenderWatcher -> TabRenderWatcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/webui_login_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "chrome/browser/chromeos/login/login_html_dialog.h" 12 #include "chrome/browser/chromeos/login/login_html_dialog.h"
13 #include "chrome/browser/chromeos/status/status_area_button.h" 13 #include "chrome/browser/chromeos/status/status_area_button.h"
14 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h" 14 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h"
15 #include "chrome/browser/tab_first_render_watcher.h" 15 #include "chrome/browser/tab_render_watcher.h"
16 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" 16 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h"
17 #include "content/public/browser/web_contents_delegate.h" 17 #include "content/public/browser/web_contents_delegate.h"
18 #include "ui/views/widget/widget.h" 18 #include "ui/views/widget/widget.h"
19 #include "ui/views/widget/widget_delegate.h" 19 #include "ui/views/widget/widget_delegate.h"
20 20
21 class DOMView; 21 class DOMView;
22 class GURL; 22 class GURL;
23 class StatusAreaView; 23 class StatusAreaView;
24 24
25 namespace content { 25 namespace content {
26 class WebUI; 26 class WebUI;
27 } 27 }
28 28
29 namespace views { 29 namespace views {
30 class View; 30 class View;
31 class Widget; 31 class Widget;
32 } 32 }
33 33
34 namespace chromeos { 34 namespace chromeos {
35 35
36 // View used to render a WebUI supporting Widget. This widget is used for the 36 // View used to render a WebUI supporting Widget. This widget is used for the
37 // WebUI based start up and lock screens. It contains a StatusAreaView and 37 // WebUI based start up and lock screens. It contains a StatusAreaView and
38 // DOMView. 38 // DOMView.
39 class WebUILoginView : public views::WidgetDelegateView, 39 class WebUILoginView : public views::WidgetDelegateView,
40 public StatusAreaButton::Delegate, 40 public StatusAreaButton::Delegate,
41 public content::WebContentsDelegate, 41 public content::WebContentsDelegate,
42 public TabFirstRenderWatcher::Delegate { 42 public TabRenderWatcher::Delegate {
43 public: 43 public:
44 static const int kStatusAreaCornerPadding; 44 static const int kStatusAreaCornerPadding;
45 45
46 WebUILoginView(); 46 WebUILoginView();
47 virtual ~WebUILoginView(); 47 virtual ~WebUILoginView();
48 48
49 // Initializes the webui login view. 49 // Initializes the webui login view.
50 virtual void Init(views::Widget* login_window); 50 virtual void Init(views::Widget* login_window);
51 51
52 // Overridden from views::Views: 52 // Overridden from views::Views:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; 86 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE;
87 87
88 // Overridden from StatusAreaButton::Delegate: 88 // Overridden from StatusAreaButton::Delegate:
89 virtual bool ShouldExecuteStatusAreaCommand( 89 virtual bool ShouldExecuteStatusAreaCommand(
90 const views::View* button_view, int command_id) const OVERRIDE; 90 const views::View* button_view, int command_id) const OVERRIDE;
91 virtual void ExecuteStatusAreaCommand( 91 virtual void ExecuteStatusAreaCommand(
92 const views::View* button_view, int command_id) OVERRIDE; 92 const views::View* button_view, int command_id) OVERRIDE;
93 virtual StatusAreaButton::TextStyle GetStatusAreaTextStyle() const OVERRIDE; 93 virtual StatusAreaButton::TextStyle GetStatusAreaTextStyle() const OVERRIDE;
94 virtual void ButtonVisibilityChanged(views::View* button_view) OVERRIDE; 94 virtual void ButtonVisibilityChanged(views::View* button_view) OVERRIDE;
95 95
96 // TabFirstRenderWatcher::Delegate implementation. 96 // TabRenderWatcher::Delegate implementation.
97 virtual void OnRenderHostCreated(RenderViewHost* host) OVERRIDE; 97 virtual void OnRenderHostCreated(RenderViewHost* host) OVERRIDE;
98 virtual void OnTabMainFrameLoaded() OVERRIDE; 98 virtual void OnTabMainFrameLoaded() OVERRIDE;
99 virtual void OnTabMainFrameFirstRender() OVERRIDE; 99 virtual void OnTabMainFrameRender() OVERRIDE;
100 100
101 // Creates and adds the status area (separate window). 101 // Creates and adds the status area (separate window).
102 virtual void InitStatusArea(); 102 virtual void InitStatusArea();
103 103
104 // Returns the screen mode to set on the status area view. 104 // Returns the screen mode to set on the status area view.
105 virtual StatusAreaViewChromeos::ScreenMode GetScreenMode(); 105 virtual StatusAreaViewChromeos::ScreenMode GetScreenMode();
106 106
107 // Returns the type to use for the status area widget. 107 // Returns the type to use for the status area widget.
108 virtual views::Widget::InitParams::Type GetStatusAreaWidgetType(); 108 virtual views::Widget::InitParams::Type GetStatusAreaWidgetType();
109 109
(...skipping 30 matching lines...) Expand all
140 // Converts keyboard events on the TabContents to accelerators. 140 // Converts keyboard events on the TabContents to accelerators.
141 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 141 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
142 142
143 // Maps installed accelerators to OOBE webui accelerator identifiers. 143 // Maps installed accelerators to OOBE webui accelerator identifiers.
144 AccelMap accel_map_; 144 AccelMap accel_map_;
145 145
146 // Proxy settings dialog that can be invoked from network menu. 146 // Proxy settings dialog that can be invoked from network menu.
147 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_; 147 scoped_ptr<LoginHtmlDialog> proxy_settings_dialog_;
148 148
149 // Watches webui_login_'s TabContents rendering. 149 // Watches webui_login_'s TabContents rendering.
150 scoped_ptr<TabFirstRenderWatcher> tab_watcher_; 150 scoped_ptr<TabRenderWatcher> tab_watcher_;
151 151
152 // Whether the host window is frozen. 152 // Whether the host window is frozen.
153 bool host_window_frozen_; 153 bool host_window_frozen_;
154 154
155 // Caches StatusArea visibility setting before it has been initialized. 155 // Caches StatusArea visibility setting before it has been initialized.
156 bool status_area_visibility_on_init_; 156 bool status_area_visibility_on_init_;
157 157
158 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); 158 DISALLOW_COPY_AND_ASSIGN(WebUILoginView);
159 }; 159 };
160 160
161 } // namespace chromeos 161 } // namespace chromeos
162 162
163 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ 163 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/webui_login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698