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

Side by Side Diff: chrome/browser/chromeos/input_method/textinput_test_helper.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
OLDNEW
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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_
7 7
8 #include "chrome/test/base/in_process_browser_test.h" 8 #include "chrome/test/base/in_process_browser_test.h"
9 #include "ui/base/ime/mock_input_method.h" 9 #include "ui/base/ime/mock_input_method.h"
10 #include "ui/base/ime/text_input_client.h" 10 #include "ui/base/ime/text_input_client.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 }; 71 };
72 72
73 // ui::InputMethodObserver overrides. 73 // ui::InputMethodObserver overrides.
74 virtual void OnTextInputTypeChanged( 74 virtual void OnTextInputTypeChanged(
75 const ui::TextInputClient* client) OVERRIDE; 75 const ui::TextInputClient* client) OVERRIDE;
76 virtual void OnFocus() OVERRIDE; 76 virtual void OnFocus() OVERRIDE;
77 virtual void OnBlur() OVERRIDE; 77 virtual void OnBlur() OVERRIDE;
78 virtual void OnCaretBoundsChanged(const ui::TextInputClient* client) OVERRIDE; 78 virtual void OnCaretBoundsChanged(const ui::TextInputClient* client) OVERRIDE;
79 virtual void OnTextInputStateChanged( 79 virtual void OnTextInputStateChanged(
80 const ui::TextInputClient* client) OVERRIDE; 80 const ui::TextInputClient* client) OVERRIDE;
81 virtual void OnShowImeIfNeeded() OVERRIDE;
81 virtual void OnInputMethodDestroyed( 82 virtual void OnInputMethodDestroyed(
82 const ui::InputMethod* input_method) OVERRIDE; 83 const ui::InputMethod* input_method) OVERRIDE;
83 84
84 // Represents waiting type of text input event. 85 // Represents waiting type of text input event.
85 WaitImeEventType waiting_type_; 86 WaitImeEventType waiting_type_;
86 87
87 base::string16 surrounding_text_; 88 base::string16 surrounding_text_;
88 gfx::Rect caret_rect_; 89 gfx::Rect caret_rect_;
89 gfx::Rect composition_head_; 90 gfx::Rect composition_head_;
90 gfx::Range selection_range_; 91 gfx::Range selection_range_;
91 bool focus_state_; 92 bool focus_state_;
92 ui::TextInputType latest_text_input_type_; 93 ui::TextInputType latest_text_input_type_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(TextInputTestHelper); 95 DISALLOW_COPY_AND_ASSIGN(TextInputTestHelper);
95 }; 96 };
96 97
97 } // namespace chromeos 98 } // namespace chromeos
98 99
99 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_ 100 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698