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

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

Issue 313983002: Add flag to enable experimental features for input view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Doc tweaks. Created 6 years, 6 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); 79 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled();
80 80
81 // Sets temporary keyboard overscroll override. 81 // Sets temporary keyboard overscroll override.
82 KEYBOARD_EXPORT void SetKeyboardOverscrollOverride( 82 KEYBOARD_EXPORT void SetKeyboardOverscrollOverride(
83 KeyboardOverscrolOverride override); 83 KeyboardOverscrolOverride override);
84 84
85 // Returns true if an IME extension can specify a custom input view for the 85 // Returns true if an IME extension can specify a custom input view for the
86 // virtual keyboard window. 86 // virtual keyboard window.
87 KEYBOARD_EXPORT bool IsInputViewEnabled(); 87 KEYBOARD_EXPORT bool IsInputViewEnabled();
88 88
89 // Returns true if experimental features are enabled for IME input-views.
90 KEYBOARD_EXPORT bool IsExperimentalInputViewEnabled();
91
89 // Insert |text| into the active TextInputClient associated with |root_window|, 92 // Insert |text| into the active TextInputClient associated with |root_window|,
90 // if there is one. Returns true if |text| was successfully inserted. Note 93 // if there is one. Returns true if |text| was successfully inserted. Note
91 // that this may convert |text| into ui::KeyEvents for injection in some 94 // that this may convert |text| into ui::KeyEvents for injection in some
92 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK). 95 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK).
93 KEYBOARD_EXPORT bool InsertText(const base::string16& text, 96 KEYBOARD_EXPORT bool InsertText(const base::string16& text,
94 aura::Window* root_window); 97 aura::Window* root_window);
95 98
96 // Move cursor when swipe on the virtualkeyboard. Returns true if cursor was 99 // Move cursor when swipe on the virtualkeyboard. Returns true if cursor was
97 // successfully moved according to |swipe_direction|. 100 // successfully moved according to |swipe_direction|.
98 KEYBOARD_EXPORT bool MoveCursor(int swipe_direction, 101 KEYBOARD_EXPORT bool MoveCursor(int swipe_direction,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 135
133 // Gets the override content url. 136 // Gets the override content url.
134 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); 137 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl();
135 138
136 // Logs the keyboard control event as a UMA stat. 139 // Logs the keyboard control event as a UMA stat.
137 void LogKeyboardControlEvent(KeyboardControlEvent event); 140 void LogKeyboardControlEvent(KeyboardControlEvent event);
138 141
139 } // namespace keyboard 142 } // namespace keyboard
140 143
141 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ 144 #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