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

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: rebased Created 6 years, 1 month 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 gfx::NativeWindow WebUILoginView::GetNativeWindow() const { 275 gfx::NativeWindow WebUILoginView::GetNativeWindow() const {
276 return GetWidget()->GetNativeWindow(); 276 return GetWidget()->GetNativeWindow();
277 } 277 }
278 278
279 void WebUILoginView::LoadURL(const GURL & url) { 279 void WebUILoginView::LoadURL(const GURL & url) {
280 webui_login_->LoadInitialURL(url); 280 webui_login_->LoadInitialURL(url);
281 webui_login_->RequestFocus(); 281 webui_login_->RequestFocus();
282 282
283 // TODO(nkostylev): Use WebContentsObserver::RenderViewCreated to track 283 // TODO(nkostylev): Use WebContentsObserver::RenderViewCreated to track
284 // when RenderView is created. 284 // when RenderView is created.
285 GetWebContents()->GetRenderViewHost()->GetView()->SetBackgroundOpaque(false); 285 GetWebContents()->GetRenderViewHost()->GetView()->SetBackgroundColor(
286 SK_ColorTRANSPARENT);
286 } 287 }
287 288
288 content::WebUI* WebUILoginView::GetWebUI() { 289 content::WebUI* WebUILoginView::GetWebUI() {
289 return webui_login_->web_contents()->GetWebUI(); 290 return webui_login_->web_contents()->GetWebUI();
290 } 291 }
291 292
292 content::WebContents* WebUILoginView::GetWebContents() { 293 content::WebContents* WebUILoginView::GetWebContents() {
293 return webui_login_->web_contents(); 294 return webui_login_->web_contents();
294 } 295 }
295 296
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 webui_visible_ = true; 499 webui_visible_ = true;
499 } 500 }
500 501
501 void WebUILoginView::ReturnFocus(bool reverse) { 502 void WebUILoginView::ReturnFocus(bool reverse) {
502 // Return the focus to the web contents. 503 // Return the focus to the web contents.
503 webui_login_->web_contents()->FocusThroughTabTraversal(reverse); 504 webui_login_->web_contents()->FocusThroughTabTraversal(reverse);
504 GetWidget()->Activate(); 505 GetWidget()->Activate();
505 } 506 }
506 507
507 } // namespace chromeos 508 } // 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