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

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

Issue 29943002: Limit display of the virtual keyboard to state changes triggered from a user gesture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer feedback. Created 6 years, 11 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) 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Gets the text input type of the focused text input client. Returns 108 // Gets the text input type of the focused text input client. Returns
109 // ui::TEXT_INPUT_TYPE_NONE if there is no focused text input client. 109 // ui::TEXT_INPUT_TYPE_NONE if there is no focused text input client.
110 virtual ui::TextInputType GetTextInputType() const = 0; 110 virtual ui::TextInputType GetTextInputType() const = 0;
111 111
112 // Returns true if we know for sure that a candidate window (or IME suggest, 112 // Returns true if we know for sure that a candidate window (or IME suggest,
113 // etc.) is open. Returns false if no popup window is open or the detection 113 // etc.) is open. Returns false if no popup window is open or the detection
114 // of IME popups is not supported. 114 // of IME popups is not supported.
115 virtual bool IsCandidatePopupOpen() const = 0; 115 virtual bool IsCandidatePopupOpen() const = 0;
116 116
117 // Displays an on screen keyboard if enabled.
118 virtual void ShowImeIfNeeded() const = 0;
sadrul 2014/01/10 19:53:21 non-const here too?
kevers 2014/01/13 16:59:10 Done.
119
117 // Returns true if the input method is a mock instance used for testing. 120 // Returns true if the input method is a mock instance used for testing.
118 virtual bool IsMock() const = 0; 121 virtual bool IsMock() const = 0;
119 122
120 // TODO(suzhe): Support mouse/touch event. 123 // TODO(suzhe): Support mouse/touch event.
121 }; 124 };
122 125
123 } // namespace views 126 } // namespace views
124 127
125 #endif // UI_VIEWS_IME_INPUT_METHOD_H_ 128 #endif // UI_VIEWS_IME_INPUT_METHOD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698