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

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

Issue 637083002: 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: nits fixed 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 gfx::NativeWindow WebUILoginView::GetNativeWindow() const { 269 gfx::NativeWindow WebUILoginView::GetNativeWindow() const {
270 return GetWidget()->GetNativeWindow(); 270 return GetWidget()->GetNativeWindow();
271 } 271 }
272 272
273 void WebUILoginView::LoadURL(const GURL & url) { 273 void WebUILoginView::LoadURL(const GURL & url) {
274 webui_login_->LoadInitialURL(url); 274 webui_login_->LoadInitialURL(url);
275 webui_login_->RequestFocus(); 275 webui_login_->RequestFocus();
276 276
277 // TODO(nkostylev): Use WebContentsObserver::RenderViewCreated to track 277 // TODO(nkostylev): Use WebContentsObserver::RenderViewCreated to track
278 // when RenderView is created. 278 // when RenderView is created.
279 GetWebContents()->GetRenderViewHost()->GetView()->SetBackgroundOpaque(false); 279 GetWebContents()->GetRenderViewHost()->GetView()->SetBackgroundColor(
280 SK_ColorTRANSPARENT);
280 } 281 }
281 282
282 content::WebUI* WebUILoginView::GetWebUI() { 283 content::WebUI* WebUILoginView::GetWebUI() {
283 return webui_login_->web_contents()->GetWebUI(); 284 return webui_login_->web_contents()->GetWebUI();
284 } 285 }
285 286
286 content::WebContents* WebUILoginView::GetWebContents() { 287 content::WebContents* WebUILoginView::GetWebContents() {
287 return webui_login_->web_contents(); 288 return webui_login_->web_contents();
288 } 289 }
289 290
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 webui_visible_ = true; 493 webui_visible_ = true;
493 } 494 }
494 495
495 void WebUILoginView::ReturnFocus(bool reverse) { 496 void WebUILoginView::ReturnFocus(bool reverse) {
496 // Return the focus to the web contents. 497 // Return the focus to the web contents.
497 webui_login_->web_contents()->FocusThroughTabTraversal(reverse); 498 webui_login_->web_contents()->FocusThroughTabTraversal(reverse);
498 GetWidget()->Activate(); 499 GetWidget()->Activate();
499 } 500 }
500 501
501 } // namespace chromeos 502 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698