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

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

Issue 2089933002: Context Menu Refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 4 years, 5 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 #ifndef NDEBUG 400 #ifndef NDEBUG
401 return false; 401 return false;
402 #else 402 #else
403 return true; 403 return true;
404 #endif 404 #endif
405 } 405 }
406 406
407 void WebUILoginView::HandleKeyboardEvent(content::WebContents* source, 407 void WebUILoginView::HandleKeyboardEvent(content::WebContents* source,
408 const NativeWebKeyboardEvent& event) { 408 const NativeWebKeyboardEvent& event) {
409 if (forward_keyboard_event_) { 409 if (forward_keyboard_event_) {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 if (should_emit_login_prompt_visible_) { 549 if (should_emit_login_prompt_visible_) {
550 VLOG(1) << "Login WebUI >> login-prompt-visible"; 550 VLOG(1) << "Login WebUI >> login-prompt-visible";
551 chromeos::DBusThreadManager::Get()->GetSessionManagerClient()-> 551 chromeos::DBusThreadManager::Get()->GetSessionManagerClient()->
552 EmitLoginPromptVisible(); 552 EmitLoginPromptVisible();
553 } 553 }
554 554
555 webui_visible_ = true; 555 webui_visible_ = true;
556 } 556 }
557 557
558 } // namespace chromeos 558 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698