OLD | NEW |
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_CONTROLLER_PROXY_H_ | 5 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ |
6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ | 6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/public/common/media_stream_request.h" | 9 #include "content/public/common/media_stream_request.h" |
10 #include "ui/base/ime/text_input_type.h" | 10 #include "ui/base/ime/text_input_type.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Shows the container window of the keyboard. The default implementation | 63 // Shows the container window of the keyboard. The default implementation |
64 // simply shows the container. An overridden implementation can set up | 64 // simply shows the container. An overridden implementation can set up |
65 // necessary animation, or delay the visibility change as it desires. | 65 // necessary animation, or delay the visibility change as it desires. |
66 virtual void ShowKeyboardContainer(aura::Window* container); | 66 virtual void ShowKeyboardContainer(aura::Window* container); |
67 | 67 |
68 // Hides the container window of the keyboard. The default implementation | 68 // Hides the container window of the keyboard. The default implementation |
69 // simply hides the container. An overridden implementation can set up | 69 // simply hides the container. An overridden implementation can set up |
70 // necesasry animation, or delay the visibility change as it desires. | 70 // necesasry animation, or delay the visibility change as it desires. |
71 virtual void HideKeyboardContainer(aura::Window* container); | 71 virtual void HideKeyboardContainer(aura::Window* container); |
72 | 72 |
73 // Updates the type of the focused text input box. The default implementation | 73 // Updates the type of the focused text input box. |
74 // calls OnTextInputBoxFocused javascript function through webui to update the | |
75 // type the of focused input box. | |
76 virtual void SetUpdateInputType(ui::TextInputType type); | 74 virtual void SetUpdateInputType(ui::TextInputType type); |
77 | 75 |
78 // Ensures caret in current work area (not occluded by virtual keyboard | 76 // Ensures caret in current work area (not occluded by virtual keyboard |
79 // window). | 77 // window). |
80 virtual void EnsureCaretInWorkArea(); | 78 virtual void EnsureCaretInWorkArea(); |
81 | 79 |
82 // Loads system virtual keyboard. Noop if the current virtual keyboard is | 80 // Loads system virtual keyboard. Noop if the current virtual keyboard is |
83 // system virtual keyboard. | 81 // system virtual keyboard. |
84 virtual void LoadSystemKeyboard(); | 82 virtual void LoadSystemKeyboard(); |
85 | 83 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 116 |
119 // Whether the current keyboard window is resizing from its web content. | 117 // Whether the current keyboard window is resizing from its web content. |
120 bool resizing_from_contents_; | 118 bool resizing_from_contents_; |
121 | 119 |
122 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy); | 120 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy); |
123 }; | 121 }; |
124 | 122 |
125 } // namespace keyboard | 123 } // namespace keyboard |
126 | 124 |
127 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ | 125 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ |
OLD | NEW |