Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

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

Issue 7980012: [ChromeOS] Reland - Make WebUI login use only needed resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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) 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 #include "chrome/browser/chromeos/login/webui_login_view.h" 5 #include "chrome/browser/chromeos/login/webui_login_view.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Proxy settings dialog contains localized strings. 266 // Proxy settings dialog contains localized strings.
267 proxy_settings_dialog_.reset(); 267 proxy_settings_dialog_.reset();
268 SchedulePaint(); 268 SchedulePaint();
269 } 269 }
270 270
271 void WebUILoginView::OnRenderHostCreated(RenderViewHost* host) { 271 void WebUILoginView::OnRenderHostCreated(RenderViewHost* host) {
272 new SnifferObserver(host, GetWebUI()); 272 new SnifferObserver(host, GetWebUI());
273 } 273 }
274 274
275 void WebUILoginView::OnTabMainFrameLoaded() { 275 void WebUILoginView::OnTabMainFrameLoaded() {
276 VLOG(1) << "WebUI login main frame loaded.";
276 } 277 }
277 278
278 void WebUILoginView::OnTabMainFrameFirstRender() { 279 void WebUILoginView::OnTabMainFrameFirstRender() {
280 VLOG(1) << "WebUI login main frame rendered.";
279 InitStatusArea(); 281 InitStatusArea();
280 282
281 if (host_window_frozen_) { 283 if (host_window_frozen_) {
282 host_window_frozen_ = false; 284 host_window_frozen_ = false;
283 285
284 // Unfreezes the host window since tab is rendereed now. 286 // Unfreezes the host window since tab is rendereed now.
285 views::NativeWidgetGtk::UpdateFreezeUpdatesProperty( 287 views::NativeWidgetGtk::UpdateFreezeUpdatesProperty(
286 GetNativeWindow(), false); 288 GetNativeWindow(), false);
287 } 289 }
288 290
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 GetFocusManager()); 385 GetFocusManager());
384 386
385 // Make sure error bubble is cleared on keyboard event. This is needed 387 // Make sure error bubble is cleared on keyboard event. This is needed
386 // when the focus is inside an iframe. 388 // when the focus is inside an iframe.
387 WebUI* web_ui = GetWebUI(); 389 WebUI* web_ui = GetWebUI();
388 if (web_ui) 390 if (web_ui)
389 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors"); 391 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors");
390 } 392 }
391 393
392 } // namespace chromeos 394 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_display_host.cc ('k') | chrome/browser/resources/chromeos/login/bubble.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698