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

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

Issue 8044018: Move chrome/browser/ui/touch/keyboard* to chrome/browser/ui/virtual_keyboard/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merged ToT Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/ui/touch/frame/touch_browser_frame_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 13 matching lines...) Expand all
24 #include "chrome/common/render_messages.h" 24 #include "chrome/common/render_messages.h"
25 #include "content/browser/renderer_host/render_view_host_observer.h" 25 #include "content/browser/renderer_host/render_view_host_observer.h"
26 #include "content/browser/tab_contents/tab_contents.h" 26 #include "content/browser/tab_contents/tab_contents.h"
27 #include "ui/gfx/rect.h" 27 #include "ui/gfx/rect.h"
28 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
29 #include "views/desktop/desktop_window_view.h" 29 #include "views/desktop/desktop_window_view.h"
30 #include "views/widget/native_widget_gtk.h" 30 #include "views/widget/native_widget_gtk.h"
31 #include "views/widget/widget.h" 31 #include "views/widget/widget.h"
32 32
33 #if defined(TOUCH_UI) 33 #if defined(TOUCH_UI)
34 #include "chrome/browser/ui/touch/keyboard/keyboard_manager.h" 34 #include "chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.h"
35 #endif 35 #endif
36 36
37 namespace { 37 namespace {
38 38
39 const char kViewClassName[] = "browser/chromeos/login/WebUILoginView"; 39 const char kViewClassName[] = "browser/chromeos/login/WebUILoginView";
40 40
41 // These strings must be kept in sync with handleAccelerator() in oobe.js. 41 // These strings must be kept in sync with handleAccelerator() in oobe.js.
42 const char kAccelNameAccessibility[] = "accessibility"; 42 const char kAccelNameAccessibility[] = "accessibility";
43 const char kAccelNameCancel[] = "cancel"; 43 const char kAccelNameCancel[] = "cancel";
44 const char kAccelNameEnrollment[] = "enrollment"; 44 const char kAccelNameEnrollment[] = "enrollment";
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // WebUILoginView public: ------------------------------------------------------ 106 // WebUILoginView public: ------------------------------------------------------
107 107
108 WebUILoginView::WebUILoginView() 108 WebUILoginView::WebUILoginView()
109 : status_area_(NULL), 109 : status_area_(NULL),
110 webui_login_(NULL), 110 webui_login_(NULL),
111 status_window_(NULL), 111 status_window_(NULL),
112 host_window_frozen_(false), 112 host_window_frozen_(false),
113 status_area_visibility_on_init_(true) { 113 status_area_visibility_on_init_(true) {
114 #if defined(TOUCH_UI) 114 #if defined(TOUCH_UI)
115 // Make sure the singleton KeyboardManager object is created. 115 // Make sure the singleton VirtualKeyboardManager object is created.
116 KeyboardManager::GetInstance(); 116 VirtualKeyboardManager::GetInstance();
117 #endif 117 #endif
118 accel_map_[views::Accelerator(ui::VKEY_Z, false, true, true)] = 118 accel_map_[views::Accelerator(ui::VKEY_Z, false, true, true)] =
119 kAccelNameAccessibility; 119 kAccelNameAccessibility;
120 accel_map_[views::Accelerator(ui::VKEY_ESCAPE, false, false, false)] = 120 accel_map_[views::Accelerator(ui::VKEY_ESCAPE, false, false, false)] =
121 kAccelNameCancel; 121 kAccelNameCancel;
122 accel_map_[views::Accelerator(ui::VKEY_E, false, true, true)] = 122 accel_map_[views::Accelerator(ui::VKEY_E, false, true, true)] =
123 kAccelNameEnrollment; 123 kAccelNameEnrollment;
124 124
125 for (AccelMap::iterator i(accel_map_.begin()); i != accel_map_.end(); ++i) 125 for (AccelMap::iterator i(accel_map_.begin()); i != accel_map_.end(); ++i)
126 AddAccelerator(i->first); 126 AddAccelerator(i->first);
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 GetFocusManager()); 385 GetFocusManager());
386 386
387 // Make sure error bubble is cleared on keyboard event. This is needed 387 // Make sure error bubble is cleared on keyboard event. This is needed
388 // when the focus is inside an iframe. 388 // when the focus is inside an iframe.
389 WebUI* web_ui = GetWebUI(); 389 WebUI* web_ui = GetWebUI();
390 if (web_ui) 390 if (web_ui)
391 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors"); 391 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors");
392 } 392 }
393 393
394 } // namespace chromeos 394 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/touch/frame/touch_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698