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

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

Issue 654123004: Revert of Sets the default background color of inline signin and user manager to grey (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/webui_login_view.h" 5 #include "chrome/browser/chromeos/login/ui/webui_login_view.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/tray/system_tray.h" 8 #include "ash/system/tray/system_tray.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 gfx::NativeWindow WebUILoginView::GetNativeWindow() const { 273 gfx::NativeWindow WebUILoginView::GetNativeWindow() const {
274 return GetWidget()->GetNativeWindow(); 274 return GetWidget()->GetNativeWindow();
275 } 275 }
276 276
277 void WebUILoginView::LoadURL(const GURL & url) { 277 void WebUILoginView::LoadURL(const GURL & url) {
278 webui_login_->LoadInitialURL(url); 278 webui_login_->LoadInitialURL(url);
279 webui_login_->RequestFocus(); 279 webui_login_->RequestFocus();
280 280
281 // TODO(nkostylev): Use WebContentsObserver::RenderViewCreated to track 281 // TODO(nkostylev): Use WebContentsObserver::RenderViewCreated to track
282 // when RenderView is created. 282 // when RenderView is created.
283 GetWebContents()->GetRenderViewHost()->GetView()->SetBackgroundColor( 283 GetWebContents()->GetRenderViewHost()->GetView()->SetBackgroundOpaque(false);
284 SK_ColorTRANSPARENT);
285 } 284 }
286 285
287 content::WebUI* WebUILoginView::GetWebUI() { 286 content::WebUI* WebUILoginView::GetWebUI() {
288 return webui_login_->web_contents()->GetWebUI(); 287 return webui_login_->web_contents()->GetWebUI();
289 } 288 }
290 289
291 content::WebContents* WebUILoginView::GetWebContents() { 290 content::WebContents* WebUILoginView::GetWebContents() {
292 return webui_login_->web_contents(); 291 return webui_login_->web_contents();
293 } 292 }
294 293
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 webui_visible_ = true; 496 webui_visible_ = true;
498 } 497 }
499 498
500 void WebUILoginView::ReturnFocus(bool reverse) { 499 void WebUILoginView::ReturnFocus(bool reverse) {
501 // Return the focus to the web contents. 500 // Return the focus to the web contents.
502 webui_login_->web_contents()->FocusThroughTabTraversal(reverse); 501 webui_login_->web_contents()->FocusThroughTabTraversal(reverse);
503 GetWidget()->Activate(); 502 GetWidget()->Activate();
504 } 503 }
505 504
506 } // namespace chromeos 505 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/first_run/first_run_view.cc ('k') | chrome/browser/profiles/profile_avatar_icon_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698