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

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

Issue 7550027: Make it possible to load ChromeVox on the oobe and login screens. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/webui_login_view.h" 5 #include "chrome/browser/chromeos/login/webui_login_view.h"
6 6
7 #include "chrome/browser/chromeos/accessibility_util.h" 7 #include "chrome/browser/chromeos/accessibility_util.h"
8 #include "chrome/browser/chromeos/login/proxy_settings_dialog.h" 8 #include "chrome/browser/chromeos/login/proxy_settings_dialog.h"
9 #include "chrome/browser/chromeos/login/webui_login_display.h" 9 #include "chrome/browser/chromeos/login/webui_login_display.h"
10 #include "chrome/browser/chromeos/status/clock_menu_button.h" 10 #include "chrome/browser/chromeos/status/clock_menu_button.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 webui_login_->tab_contents()->set_delegate(this); 61 webui_login_->tab_contents()->set_delegate(this);
62 } 62 }
63 63
64 std::string WebUILoginView::GetClassName() const { 64 std::string WebUILoginView::GetClassName() const {
65 return kViewClassName; 65 return kViewClassName;
66 } 66 }
67 67
68 bool WebUILoginView::AcceleratorPressed( 68 bool WebUILoginView::AcceleratorPressed(
69 const views::Accelerator& accelerator) { 69 const views::Accelerator& accelerator) {
70 if (accelerator == accel_toggle_accessibility_) { 70 if (accelerator == accel_toggle_accessibility_) {
71 accessibility::ToggleAccessibility(); 71 accessibility::ToggleAccessibility(GetWebUI());
72 } else { 72 } else {
73 return false; 73 return false;
74 } 74 }
75 return true; 75 return true;
76 } 76 }
77 77
78 gfx::NativeWindow WebUILoginView::GetNativeWindow() const { 78 gfx::NativeWindow WebUILoginView::GetNativeWindow() const {
79 return GetWidget()->GetNativeWindow(); 79 return GetWidget()->GetNativeWindow();
80 } 80 }
81 81
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 bool WebUILoginView::HandleContextMenu(const ContextMenuParams& params) { 205 bool WebUILoginView::HandleContextMenu(const ContextMenuParams& params) {
206 // Do not show the context menu. 206 // Do not show the context menu.
207 #ifndef NDEBUG 207 #ifndef NDEBUG
208 return false; 208 return false;
209 #else 209 #else
210 return true; 210 return true;
211 #endif 211 #endif
212 } 212 }
213 213
214 } // namespace chromeos 214 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/accessibility_util.cc ('k') | chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698