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

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

Issue 292233002: Disable VK overscroll for login/out-of-box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 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) 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Returns true if the virtual keyboard is enabled. 65 // Returns true if the virtual keyboard is enabled.
66 KEYBOARD_EXPORT bool IsKeyboardEnabled(); 66 KEYBOARD_EXPORT bool IsKeyboardEnabled();
67 67
68 // Returns true if the keyboard usability test is enabled. 68 // Returns true if the keyboard usability test is enabled.
69 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled(); 69 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled();
70 70
71 // Returns true if keyboard overscroll mode is enabled. 71 // Returns true if keyboard overscroll mode is enabled.
72 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); 72 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled();
73 73
74 // Sets temporary keyboard overscroll enabled override.
75 KEYBOARD_EXPORT void SetKeyboardOverscrollEnabledOverrideValue(bool enabled);
76
77 // Enables temporary keyboard overscroll override.
78 KEYBOARD_EXPORT void SetKeyboardOverscrollOverrideEnabled(bool enabled);
79
74 // Returns true if an IME extension can specify a custom input view for the 80 // Returns true if an IME extension can specify a custom input view for the
75 // virtual keyboard window. 81 // virtual keyboard window.
76 KEYBOARD_EXPORT bool IsInputViewEnabled(); 82 KEYBOARD_EXPORT bool IsInputViewEnabled();
77 83
78 // Insert |text| into the active TextInputClient associated with |root_window|, 84 // Insert |text| into the active TextInputClient associated with |root_window|,
79 // if there is one. Returns true if |text| was successfully inserted. Note 85 // if there is one. Returns true if |text| was successfully inserted. Note
80 // that this may convert |text| into ui::KeyEvents for injection in some 86 // that this may convert |text| into ui::KeyEvents for injection in some
81 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK). 87 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK).
82 KEYBOARD_EXPORT bool InsertText(const base::string16& text, 88 KEYBOARD_EXPORT bool InsertText(const base::string16& text,
83 aura::Window* root_window); 89 aura::Window* root_window);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 127
122 // Gets the override content url. 128 // Gets the override content url.
123 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); 129 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl();
124 130
125 // Logs the keyboard control event as a UMA stat. 131 // Logs the keyboard control event as a UMA stat.
126 void LogKeyboardControlEvent(KeyboardControlEvent event); 132 void LogKeyboardControlEvent(KeyboardControlEvent event);
127 133
128 } // namespace keyboard 134 } // namespace keyboard
129 135
130 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ 136 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698