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

Side by Side Diff: chrome/browser/chromeos/input_method/textinput_test_helper.h

Issue 82603002: Get rid of unused callbacks from ui::InputMethodObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revise obsolete code comment Created 7 years, 1 month 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 | « no previous file | chrome/browser/chromeos/input_method/textinput_test_helper.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) 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 private: 64 private:
65 enum WaitImeEventType { 65 enum WaitImeEventType {
66 NO_WAIT, 66 NO_WAIT,
67 WAIT_ON_BLUR, 67 WAIT_ON_BLUR,
68 WAIT_ON_CARET_BOUNDS_CHANGED, 68 WAIT_ON_CARET_BOUNDS_CHANGED,
69 WAIT_ON_FOCUS, 69 WAIT_ON_FOCUS,
70 WAIT_ON_TEXT_INPUT_TYPE_CHANGED, 70 WAIT_ON_TEXT_INPUT_TYPE_CHANGED,
71 }; 71 };
72 72
73 // ui::MockInputMethod::MockObserver 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 OnUntranslatedIMEMessage(
79 const base::NativeEvent& event) OVERRIDE;
80 virtual void OnCaretBoundsChanged(const ui::TextInputClient* client) OVERRIDE; 78 virtual void OnCaretBoundsChanged(const ui::TextInputClient* client) OVERRIDE;
81 virtual void OnInputLocaleChanged() OVERRIDE;
82 virtual void OnTextInputStateChanged( 79 virtual void OnTextInputStateChanged(
83 const ui::TextInputClient* client) OVERRIDE; 80 const ui::TextInputClient* client) OVERRIDE;
84 virtual void OnInputMethodDestroyed( 81 virtual void OnInputMethodDestroyed(
85 const ui::InputMethod* input_method) OVERRIDE; 82 const ui::InputMethod* input_method) OVERRIDE;
86 83
87 // Represents waiting type of text input event. 84 // Represents waiting type of text input event.
88 WaitImeEventType waiting_type_; 85 WaitImeEventType waiting_type_;
89 86
90 string16 surrounding_text_; 87 string16 surrounding_text_;
91 gfx::Rect caret_rect_; 88 gfx::Rect caret_rect_;
92 gfx::Rect composition_head_; 89 gfx::Rect composition_head_;
93 gfx::Range selection_range_; 90 gfx::Range selection_range_;
94 bool focus_state_; 91 bool focus_state_;
95 ui::TextInputType latest_text_input_type_; 92 ui::TextInputType latest_text_input_type_;
96 93
97 DISALLOW_COPY_AND_ASSIGN(TextInputTestHelper); 94 DISALLOW_COPY_AND_ASSIGN(TextInputTestHelper);
98 }; 95 };
99 96
100 } // namespace chromeos 97 } // namespace chromeos
101 98
102 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_ 99 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_TEXTINPUT_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/textinput_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698