OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |