Chromium Code Reviews| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 388 break; | 388 break; |
| 389 } | 389 } |
| 390 default: | 390 default: |
| 391 NOTREACHED() << "Unexpected notification " << type; | 391 NOTREACHED() << "Unexpected notification " << type; |
| 392 } | 392 } |
| 393 } | 393 } |
| 394 | 394 |
| 395 // WebUILoginView private: ----------------------------------------------------- | 395 // WebUILoginView private: ----------------------------------------------------- |
| 396 | 396 |
| 397 bool WebUILoginView::HandleContextMenu( | 397 bool WebUILoginView::HandleContextMenu( |
| 398 RenderFrameHost* render_frame_host, | |
| 398 const content::ContextMenuParams& params) { | 399 const content::ContextMenuParams& params) { |
| 399 // Do not show the context menu. | 400 // Do not show the context menu. |
|
no sievers
2016/06/23 23:16:41
nit: I'd remove this silly comment which doesn't e
amaralp
2016/06/24 00:45:49
Done.
| |
| 400 #ifndef NDEBUG | 401 #ifndef NDEBUG |
| 401 return false; | 402 return false; |
| 402 #else | 403 #else |
| 403 return true; | 404 return true; |
| 404 #endif | 405 #endif |
| 405 } | 406 } |
| 406 | 407 |
| 407 void WebUILoginView::HandleKeyboardEvent(content::WebContents* source, | 408 void WebUILoginView::HandleKeyboardEvent(content::WebContents* source, |
| 408 const NativeWebKeyboardEvent& event) { | 409 const NativeWebKeyboardEvent& event) { |
| 409 if (forward_keyboard_event_) { | 410 if (forward_keyboard_event_) { |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 549 if (should_emit_login_prompt_visible_) { | 550 if (should_emit_login_prompt_visible_) { |
| 550 VLOG(1) << "Login WebUI >> login-prompt-visible"; | 551 VLOG(1) << "Login WebUI >> login-prompt-visible"; |
| 551 chromeos::DBusThreadManager::Get()->GetSessionManagerClient()-> | 552 chromeos::DBusThreadManager::Get()->GetSessionManagerClient()-> |
| 552 EmitLoginPromptVisible(); | 553 EmitLoginPromptVisible(); |
| 553 } | 554 } |
| 554 | 555 |
| 555 webui_visible_ = true; | 556 webui_visible_ = true; |
| 556 } | 557 } |
| 557 | 558 |
| 558 } // namespace chromeos | 559 } // namespace chromeos |
| OLD | NEW |