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

Side by Side Diff: chromeos/ime/mock_ime_candidate_window_handler.h

Issue 24946003: Rename IBusLookupTable to CandidateWindow, and move it to chromeos/ime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 7 years, 2 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 | « chromeos/ime/ibus_bridge.h ('k') | chromeos/ime/mock_ime_candidate_window_handler.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROMEOS_IME_MOCK_IME_CANDIDATE_WINDOW_HANDLER_H_ 5 #ifndef CHROMEOS_IME_MOCK_IME_CANDIDATE_WINDOW_HANDLER_H_
6 #define CHROMEOS_IME_MOCK_IME_CANDIDATE_WINDOW_HANDLER_H_ 6 #define CHROMEOS_IME_MOCK_IME_CANDIDATE_WINDOW_HANDLER_H_
7 7
8 #include "chromeos/dbus/ibus/ibus_lookup_table.h" 8 #include "chromeos/ime/candidate_window.h"
9 #include "chromeos/ime/ibus_bridge.h" 9 #include "chromeos/ime/ibus_bridge.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 class MockIMECandidateWindowHandler 13 class MockIMECandidateWindowHandler
14 : public IBusPanelCandidateWindowHandlerInterface { 14 : public IBusPanelCandidateWindowHandlerInterface {
15 public: 15 public:
16 struct UpdateLookupTableArg { 16 struct UpdateLookupTableArg {
17 IBusLookupTable lookup_table; 17 input_method::CandidateWindow lookup_table;
18 bool is_visible; 18 bool is_visible;
19 }; 19 };
20 20
21 struct UpdateAuxiliaryTextArg { 21 struct UpdateAuxiliaryTextArg {
22 std::string text; 22 std::string text;
23 bool is_visible; 23 bool is_visible;
24 }; 24 };
25 25
26 MockIMECandidateWindowHandler(); 26 MockIMECandidateWindowHandler();
27 virtual ~MockIMECandidateWindowHandler(); 27 virtual ~MockIMECandidateWindowHandler();
28 28
29 // IBusPanelCandidateWindowHandlerInterface override. 29 // IBusPanelCandidateWindowHandlerInterface override.
30 virtual void UpdateLookupTable(const IBusLookupTable& table, 30 virtual void UpdateLookupTable(
31 bool visible) OVERRIDE; 31 const input_method::CandidateWindow& candidate_window,
32 bool visible) OVERRIDE;
32 virtual void HideLookupTable() OVERRIDE; 33 virtual void HideLookupTable() OVERRIDE;
33 virtual void UpdateAuxiliaryText(const std::string& text, 34 virtual void UpdateAuxiliaryText(const std::string& text,
34 bool visible) OVERRIDE; 35 bool visible) OVERRIDE;
35 virtual void HideAuxiliaryText() OVERRIDE; 36 virtual void HideAuxiliaryText() OVERRIDE;
36 virtual void UpdatePreeditText(const std::string& text, uint32 cursor_pos, 37 virtual void UpdatePreeditText(const std::string& text, uint32 cursor_pos,
37 bool visible) OVERRIDE; 38 bool visible) OVERRIDE;
38 virtual void HidePreeditText() OVERRIDE; 39 virtual void HidePreeditText() OVERRIDE;
39 virtual void SetCursorLocation(const ibus::Rect& cursor_location, 40 virtual void SetCursorLocation(const ibus::Rect& cursor_location,
40 const ibus::Rect& composition_head) OVERRIDE; 41 const ibus::Rect& composition_head) OVERRIDE;
41 42
(...skipping 24 matching lines...) Expand all
66 int set_cursor_location_call_count_; 67 int set_cursor_location_call_count_;
67 int update_lookup_table_call_count_; 68 int update_lookup_table_call_count_;
68 int update_auxiliary_text_call_count_; 69 int update_auxiliary_text_call_count_;
69 UpdateLookupTableArg last_update_lookup_table_arg_; 70 UpdateLookupTableArg last_update_lookup_table_arg_;
70 UpdateAuxiliaryTextArg last_update_auxiliary_text_arg_; 71 UpdateAuxiliaryTextArg last_update_auxiliary_text_arg_;
71 }; 72 };
72 73
73 } // namespace chromeos 74 } // namespace chromeos
74 75
75 #endif // CHROMEOS_IME_MOCK_IME_CANDIDATE_WINDOW_HANDLER_H_ 76 #endif // CHROMEOS_IME_MOCK_IME_CANDIDATE_WINDOW_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/ime/ibus_bridge.h ('k') | chromeos/ime/mock_ime_candidate_window_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698