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

Side by Side Diff: ui/views/ime/mock_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: Fix ash_unittests 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
« no previous file with comments | « ui/views/ime/input_method_bridge.cc ('k') | ui/views/ime/mock_input_method.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MOCK_INPUT_METHOD_H_ 5 #ifndef UI_VIEWS_IME_MOCK_INPUT_METHOD_H_
6 #define UI_VIEWS_IME_MOCK_INPUT_METHOD_H_ 6 #define UI_VIEWS_IME_MOCK_INPUT_METHOD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 29 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
30 NativeEventResult* result) OVERRIDE; 30 NativeEventResult* result) OVERRIDE;
31 virtual void DispatchKeyEvent(const ui::KeyEvent& key) OVERRIDE; 31 virtual void DispatchKeyEvent(const ui::KeyEvent& key) OVERRIDE;
32 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; 32 virtual void OnTextInputTypeChanged(View* view) OVERRIDE;
33 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; 33 virtual void OnCaretBoundsChanged(View* view) OVERRIDE;
34 virtual void CancelComposition(View* view) OVERRIDE; 34 virtual void CancelComposition(View* view) OVERRIDE;
35 virtual void OnInputLocaleChanged() OVERRIDE; 35 virtual void OnInputLocaleChanged() OVERRIDE;
36 virtual std::string GetInputLocale() OVERRIDE; 36 virtual std::string GetInputLocale() OVERRIDE;
37 virtual bool IsActive() OVERRIDE; 37 virtual bool IsActive() OVERRIDE;
38 virtual bool IsCandidatePopupOpen() const OVERRIDE; 38 virtual bool IsCandidatePopupOpen() const OVERRIDE;
39 virtual void ShowImeIfNeeded() OVERRIDE;
39 virtual bool IsMock() const OVERRIDE; 40 virtual bool IsMock() const OVERRIDE;
40 41
41 bool focus_changed() const { return focus_changed_; } 42 bool focus_changed() const { return focus_changed_; }
42 bool untranslated_ime_message_called() const { 43 bool untranslated_ime_message_called() const {
43 return untranslated_ime_message_called_; 44 return untranslated_ime_message_called_;
44 } 45 }
45 bool text_input_type_changed() const { return text_input_type_changed_; } 46 bool text_input_type_changed() const { return text_input_type_changed_; }
46 bool caret_bounds_changed() const { return caret_bounds_changed_; } 47 bool caret_bounds_changed() const { return caret_bounds_changed_; }
47 bool cancel_composition_called() const { return cancel_composition_called_; } 48 bool cancel_composition_called() const { return cancel_composition_called_; }
48 bool input_locale_changed() const { return input_locale_changed_; } 49 bool input_locale_changed() const { return input_locale_changed_; }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // To mock corresponding input method prooperties. 88 // To mock corresponding input method prooperties.
88 std::string locale_; 89 std::string locale_;
89 bool active_; 90 bool active_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(MockInputMethod); 92 DISALLOW_COPY_AND_ASSIGN(MockInputMethod);
92 }; 93 };
93 94
94 } // namespace views 95 } // namespace views
95 96
96 #endif // UI_VIEWS_IME_MOCK_INPUT_METHOD_H_ 97 #endif // UI_VIEWS_IME_MOCK_INPUT_METHOD_H_
OLDNEW
« no previous file with comments | « ui/views/ime/input_method_bridge.cc ('k') | ui/views/ime/mock_input_method.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698