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

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: Fix copyright notice. Created 6 years, 9 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) 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Gets the default keyboard layout. 51 // Gets the default keyboard layout.
52 KEYBOARD_EXPORT std::string GetKeyboardLayout(); 52 KEYBOARD_EXPORT std::string GetKeyboardLayout();
53 53
54 // Returns true if the virtual keyboard is enabled. 54 // Returns true if the virtual keyboard is enabled.
55 KEYBOARD_EXPORT bool IsKeyboardEnabled(); 55 KEYBOARD_EXPORT bool IsKeyboardEnabled();
56 56
57 // Returns true if the keyboard usability test is enabled. 57 // Returns true if the keyboard usability test is enabled.
58 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled(); 58 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled();
59 59
60 // Returns true if keyboard overscroll mode is enabled.
61 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled();
62
60 // Insert |text| into the active TextInputClient associated with |root_window|, 63 // Insert |text| into the active TextInputClient associated with |root_window|,
61 // if there is one. Returns true if |text| was successfully inserted. Note 64 // if there is one. Returns true if |text| was successfully inserted. Note
62 // that this may convert |text| into ui::KeyEvents for injection in some 65 // that this may convert |text| into ui::KeyEvents for injection in some
63 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK). 66 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK).
64 KEYBOARD_EXPORT bool InsertText(const base::string16& text, 67 KEYBOARD_EXPORT bool InsertText(const base::string16& text,
65 aura::Window* root_window); 68 aura::Window* root_window);
66 69
67 // Move cursor when swipe on the virtualkeyboard. Returns true if cursor was 70 // Move cursor when swipe on the virtualkeyboard. Returns true if cursor was
68 // successfully moved according to |swipe_direction|. 71 // successfully moved according to |swipe_direction|.
69 KEYBOARD_EXPORT bool MoveCursor(int swipe_direction, 72 KEYBOARD_EXPORT bool MoveCursor(int swipe_direction,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 106
104 // Gets the override content url. 107 // Gets the override content url.
105 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); 108 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl();
106 109
107 // Logs the keyboard control event as a UMA stat. 110 // Logs the keyboard control event as a UMA stat.
108 void LogKeyboardControlEvent(KeyboardControlEvent event); 111 void LogKeyboardControlEvent(KeyboardControlEvent event);
109 112
110 } // namespace keyboard 113 } // namespace keyboard
111 114
112 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ 115 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698