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

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

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "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 19 matching lines...) Expand all
30 #include "content/public/browser/web_ui.h" 30 #include "content/public/browser/web_ui.h"
31 #include "ui/gfx/rect.h" 31 #include "ui/gfx/rect.h"
32 #include "ui/gfx/size.h" 32 #include "ui/gfx/size.h"
33 #include "ui/views/controls/webview/webview.h" 33 #include "ui/views/controls/webview/webview.h"
34 #include "ui/views/widget/widget.h" 34 #include "ui/views/widget/widget.h"
35 35
36 #if defined(USE_VIRTUAL_KEYBOARD) 36 #if defined(USE_VIRTUAL_KEYBOARD)
37 #include "chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.h" 37 #include "chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.h"
38 #endif 38 #endif
39 39
40 40 using content::NativeWebKeyboardEvent;
41 using content::RenderViewHost; 41 using content::RenderViewHost;
42 using content::WebContents; 42 using content::WebContents;
43 43
44 namespace { 44 namespace {
45 45
46 const char kViewClassName[] = "browser/chromeos/login/WebUILoginView"; 46 const char kViewClassName[] = "browser/chromeos/login/WebUILoginView";
47 47
48 // These strings must be kept in sync with handleAccelerator() in oobe.js. 48 // These strings must be kept in sync with handleAccelerator() in oobe.js.
49 const char kAccelNameAccessibility[] = "accessibility"; 49 const char kAccelNameAccessibility[] = "accessibility";
50 const char kAccelNameCancel[] = "cancel"; 50 const char kAccelNameCancel[] = "cancel";
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 return true; 345 return true;
346 } 346 }
347 347
348 void WebUILoginView::ReturnFocus(bool reverse) { 348 void WebUILoginView::ReturnFocus(bool reverse) {
349 // Return the focus to the web contents. 349 // Return the focus to the web contents.
350 webui_login_->web_contents()->FocusThroughTabTraversal(reverse); 350 webui_login_->web_contents()->FocusThroughTabTraversal(reverse);
351 GetWidget()->Activate(); 351 GetWidget()->Activate();
352 } 352 }
353 353
354 } // namespace chromeos 354 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_view.h ('k') | chrome/browser/debugger/devtools_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698