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 26 matching lines...) Expand all Loading... |
37 // Gets the virtual keyboard window. Ownership of the returned Window remains | 37 // Gets the virtual keyboard window. Ownership of the returned Window remains |
38 // with the proxy. | 38 // with the proxy. |
39 virtual aura::Window* GetKeyboardWindow(); | 39 virtual aura::Window* GetKeyboardWindow(); |
40 | 40 |
41 // Sets the override content url. | 41 // Sets the override content url. |
42 void SetOverrideContentUrl(const GURL& url); | 42 void SetOverrideContentUrl(const GURL& url); |
43 | 43 |
44 // Whether the keyboard window is resizing from its web contents. | 44 // Whether the keyboard window is resizing from its web contents. |
45 bool resizing_from_contents() const { return resizing_from_contents_; } | 45 bool resizing_from_contents() const { return resizing_from_contents_; } |
46 | 46 |
| 47 // Whether the keyboard window is created. The keyboard window is tied to a |
| 48 // WebContent so we can just check if the WebContent is created or not. |
| 49 bool HasKeyboardWindow() const { return keyboard_contents_; } |
| 50 |
47 // Sets the flag of whether the keyboard window is resizing from | 51 // Sets the flag of whether the keyboard window is resizing from |
48 // its web contents. | 52 // its web contents. |
49 void set_resizing_from_contents(bool resizing) { | 53 void set_resizing_from_contents(bool resizing) { |
50 resizing_from_contents_ = resizing; | 54 resizing_from_contents_ = resizing; |
51 } | 55 } |
52 | 56 |
53 // Gets the InputMethod that will provide notifications about changes in the | 57 // Gets the InputMethod that will provide notifications about changes in the |
54 // text input context. | 58 // text input context. |
55 virtual ui::InputMethod* GetInputMethod() = 0; | 59 virtual ui::InputMethod* GetInputMethod() = 0; |
56 | 60 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 107 |
104 // Whether the current keyboard window is resizing from its web content. | 108 // Whether the current keyboard window is resizing from its web content. |
105 bool resizing_from_contents_; | 109 bool resizing_from_contents_; |
106 | 110 |
107 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy); | 111 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy); |
108 }; | 112 }; |
109 | 113 |
110 } // namespace keyboard | 114 } // namespace keyboard |
111 | 115 |
112 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ | 116 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ |
OLD | NEW |