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

Side by Side Diff: ui/views/ime/input_method.h

Issue 17112021: New method: InputMethod::IsCandidatePopupOpen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced. Created 7 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
« no previous file with comments | « ui/base/ime/mock_input_method.cc ('k') | ui/views/ime/input_method_bridge.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEWS_IME_INPUT_METHOD_H_ 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_H_
6 #define UI_VIEWS_IME_INPUT_METHOD_H_ 6 #define UI_VIEWS_IME_INPUT_METHOD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual bool IsActive() = 0; 106 virtual bool IsActive() = 0;
107 107
108 // Returns the focused text input client, or NULL if the Widget is not active, 108 // Returns the focused text input client, or NULL if the Widget is not active,
109 // has no focused View, or if the focused View does not support text input. 109 // has no focused View, or if the focused View does not support text input.
110 virtual ui::TextInputClient* GetTextInputClient() const = 0; 110 virtual ui::TextInputClient* GetTextInputClient() const = 0;
111 111
112 // Gets the text input type of the focused text input client. Returns 112 // Gets the text input type of the focused text input client. Returns
113 // ui::TEXT_INPUT_TYPE_NONE if there is no focused text input client. 113 // ui::TEXT_INPUT_TYPE_NONE if there is no focused text input client.
114 virtual ui::TextInputType GetTextInputType() const = 0; 114 virtual ui::TextInputType GetTextInputType() const = 0;
115 115
116 // Returns true if we know for sure that a candidate window (or IME suggest,
117 // etc.) is open. Returns false if no popup window is open or the detection
118 // of IME popups is not supported.
119 virtual bool IsCandidatePopupOpen() const = 0;
120
116 // Returns true if the input method is a mock instance used for testing. 121 // Returns true if the input method is a mock instance used for testing.
117 virtual bool IsMock() const = 0; 122 virtual bool IsMock() const = 0;
118 123
119 // TODO(suzhe): Support mouse/touch event. 124 // TODO(suzhe): Support mouse/touch event.
120 }; 125 };
121 126
122 } // namespace views 127 } // namespace views
123 128
124 #endif // UI_VIEWS_IME_INPUT_METHOD_H_ 129 #endif // UI_VIEWS_IME_INPUT_METHOD_H_
OLDNEW
« no previous file with comments | « ui/base/ime/mock_input_method.cc ('k') | ui/views/ime/input_method_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698