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

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

Issue 10443053: [cros] Change how login-prompt-visible signal is emitted when accelerated compositing is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years, 6 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
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>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Overridden from content::WebContentsDelegate. 105 // Overridden from content::WebContentsDelegate.
106 virtual bool HandleContextMenu( 106 virtual bool HandleContextMenu(
107 const content::ContextMenuParams& params) OVERRIDE; 107 const content::ContextMenuParams& params) OVERRIDE;
108 virtual void HandleKeyboardEvent( 108 virtual void HandleKeyboardEvent(
109 const content::NativeWebKeyboardEvent& event) OVERRIDE; 109 const content::NativeWebKeyboardEvent& event) OVERRIDE;
110 virtual bool IsPopupOrPanel( 110 virtual bool IsPopupOrPanel(
111 const content::WebContents* source) const OVERRIDE; 111 const content::WebContents* source) const OVERRIDE;
112 virtual bool TakeFocus(bool reverse) OVERRIDE; 112 virtual bool TakeFocus(bool reverse) OVERRIDE;
113 113
114 // Returs true is accelerated compositing is enabled for sign in.
115 bool IsAcceleratedCompositingEnabled();
116
117 // Performs series of action when login prompt is considered
118 // to be ready and visible.
119 // 1. Resets TabRenderWatcher instance.
120 // 2. Emits LoginPromptVisible signal if needed
121 // 3. Notifies OOBE/sign classes.
122 void OnLoginPromptVisible();
123
114 // Called when focus is returned from status area. 124 // Called when focus is returned from status area.
115 // |reverse| is true when focus is traversed backwards (using Shift-Tab). 125 // |reverse| is true when focus is traversed backwards (using Shift-Tab).
116 void ReturnFocus(bool reverse); 126 void ReturnFocus(bool reverse);
117 127
118 content::NotificationRegistrar registrar_; 128 content::NotificationRegistrar registrar_;
119 129
120 // TabContentsWrapper for the WebView. 130 // TabContentsWrapper for the WebView.
121 // TODO: this is needed for password manager, should be refactored/replaced 131 // TODO: this is needed for password manager, should be refactored/replaced
122 // so that this code can move to src/ash. 132 // so that this code can move to src/ash.
123 scoped_ptr<TabContentsWrapper> wrapper_; 133 scoped_ptr<TabContentsWrapper> wrapper_;
(...skipping 11 matching lines...) Expand all
135 scoped_ptr<TabRenderWatcher> tab_watcher_; 145 scoped_ptr<TabRenderWatcher> tab_watcher_;
136 146
137 // Whether the host window is frozen. 147 // Whether the host window is frozen.
138 bool host_window_frozen_; 148 bool host_window_frozen_;
139 149
140 // Has the login page told us that it's ready? This is triggered by either 150 // Has the login page told us that it's ready? This is triggered by either
141 // all of the user images or the GAIA prompt being loaded, whichever comes 151 // all of the user images or the GAIA prompt being loaded, whichever comes
142 // first. 152 // first.
143 bool login_page_is_loaded_; 153 bool login_page_is_loaded_;
144 154
155 // True if OnLoginPromptVisible() has been called.
156 bool login_prompt_visible_notified_;
157
145 // Should we emit the login-prompt-visible signal when the login page is 158 // Should we emit the login-prompt-visible signal when the login page is
146 // displayed? 159 // displayed?
147 bool should_emit_login_prompt_visible_; 160 bool should_emit_login_prompt_visible_;
148 161
149 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); 162 DISALLOW_COPY_AND_ASSIGN(WebUILoginView);
150 }; 163 };
151 164
152 } // namespace chromeos 165 } // namespace chromeos
153 166
154 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ 167 #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') | chrome/browser/chromeos/login/webui_login_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698