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

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

Issue 1008453002: Allow javascript change the virtual keyboard window size and position freely in FLOATING mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 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
« no previous file with comments | « ui/keyboard/keyboard_layout_manager.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 KEYBOARD_OVERSCROLL_OVERRIDE_NONE, 45 KEYBOARD_OVERSCROLL_OVERRIDE_NONE,
46 }; 46 };
47 47
48 // An enumeration of keyboard policy settings. 48 // An enumeration of keyboard policy settings.
49 enum KeyboardShowOverride { 49 enum KeyboardShowOverride {
50 KEYBOARD_SHOW_OVERRIDE_DISABLED = 0, 50 KEYBOARD_SHOW_OVERRIDE_DISABLED = 0,
51 KEYBOARD_SHOW_OVERRIDE_ENABLED, 51 KEYBOARD_SHOW_OVERRIDE_ENABLED,
52 KEYBOARD_SHOW_OVERRIDE_NONE, 52 KEYBOARD_SHOW_OVERRIDE_NONE,
53 }; 53 };
54 54
55 // Gets the default keyboard bounds from |window_bounds|. 55 // Gets the caculated keyboard bounds from |root_bounds|. The keyboard height
56 KEYBOARD_EXPORT gfx::Rect DefaultKeyboardBoundsFromWindowBounds( 56 // is specified by |keyboard_height|. This should be only called when keyboard
57 const gfx::Rect& window_bounds); 57 // is in FULL_WDITH mode.
58 58 KEYBOARD_EXPORT gfx::Rect FullWidthKeyboardBoundsFromRootBounds(
59 // Gets the caculated keyboard bounds from |window_bounds|. The keyboard height 59 const gfx::Rect& root_bounds, int keyboard_height);
60 // is specified by |keyboard_height|.
61 KEYBOARD_EXPORT gfx::Rect KeyboardBoundsFromWindowBounds(
62 const gfx::Rect& window_bounds, int keyboard_height);
63 60
64 // Sets the state of the a11y onscreen keyboard. 61 // Sets the state of the a11y onscreen keyboard.
65 KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled); 62 KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled);
66 63
67 // Gets the state of the a11y onscreen keyboard. 64 // Gets the state of the a11y onscreen keyboard.
68 KEYBOARD_EXPORT bool GetAccessibilityKeyboardEnabled(); 65 KEYBOARD_EXPORT bool GetAccessibilityKeyboardEnabled();
69 66
70 // Sets the state of the touch onscreen keyboard. 67 // Sets the state of the touch onscreen keyboard.
71 KEYBOARD_EXPORT void SetTouchKeyboardEnabled(bool enabled); 68 KEYBOARD_EXPORT void SetTouchKeyboardEnabled(bool enabled);
72 69
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 145
149 // Gets the override content url. 146 // Gets the override content url.
150 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); 147 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl();
151 148
152 // Logs the keyboard control event as a UMA stat. 149 // Logs the keyboard control event as a UMA stat.
153 void LogKeyboardControlEvent(KeyboardControlEvent event); 150 void LogKeyboardControlEvent(KeyboardControlEvent event);
154 151
155 } // namespace keyboard 152 } // namespace keyboard
156 153
157 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ 154 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_layout_manager.cc ('k') | ui/keyboard/keyboard_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698