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

Side by Side Diff: ui/keyboard/keyboard_util.h

Issue 195793004: Implement overscroll support for the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OVERRIDE Created 6 years, 8 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
« no previous file with comments | « ui/keyboard/keyboard_switches.cc ('k') | ui/keyboard/keyboard_util.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef UI_KEYBOARD_KEYBOARD_UTIL_H_ 5 #ifndef UI_KEYBOARD_KEYBOARD_UTIL_H_
6 #define UI_KEYBOARD_KEYBOARD_UTIL_H_ 6 #define UI_KEYBOARD_KEYBOARD_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // Gets the default keyboard layout. 57 // Gets the default keyboard layout.
58 KEYBOARD_EXPORT std::string GetKeyboardLayout(); 58 KEYBOARD_EXPORT std::string GetKeyboardLayout();
59 59
60 // Returns true if the virtual keyboard is enabled. 60 // Returns true if the virtual keyboard is enabled.
61 KEYBOARD_EXPORT bool IsKeyboardEnabled(); 61 KEYBOARD_EXPORT bool IsKeyboardEnabled();
62 62
63 // Returns true if the keyboard usability test is enabled. 63 // Returns true if the keyboard usability test is enabled.
64 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled(); 64 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled();
65 65
66 // Returns true if keyboard overscroll mode is enabled.
67 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled();
James Cook 2014/04/15 17:54:10 Not for this CL but Ash uses functions with names
68
66 // Returns true if an IME extension can specify a custom input view for the 69 // Returns true if an IME extension can specify a custom input view for the
67 // virtual keyboard window. 70 // virtual keyboard window.
68 KEYBOARD_EXPORT bool IsInputViewEnabled(); 71 KEYBOARD_EXPORT bool IsInputViewEnabled();
69 72
70 // Insert |text| into the active TextInputClient associated with |root_window|, 73 // Insert |text| into the active TextInputClient associated with |root_window|,
71 // if there is one. Returns true if |text| was successfully inserted. Note 74 // if there is one. Returns true if |text| was successfully inserted. Note
72 // that this may convert |text| into ui::KeyEvents for injection in some 75 // that this may convert |text| into ui::KeyEvents for injection in some
73 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK). 76 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK).
74 KEYBOARD_EXPORT bool InsertText(const base::string16& text, 77 KEYBOARD_EXPORT bool InsertText(const base::string16& text,
75 aura::Window* root_window); 78 aura::Window* root_window);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 116
114 // Gets the override content url. 117 // Gets the override content url.
115 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); 118 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl();
116 119
117 // Logs the keyboard control event as a UMA stat. 120 // Logs the keyboard control event as a UMA stat.
118 void LogKeyboardControlEvent(KeyboardControlEvent event); 121 void LogKeyboardControlEvent(KeyboardControlEvent event);
119 122
120 } // namespace keyboard 123 } // namespace keyboard
121 124
122 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ 125 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_switches.cc ('k') | ui/keyboard/keyboard_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698