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