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

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

Issue 45733008: sk6_charactercomposer: Merged DispatchKeyEvent and its fabricated version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/input_method_engine_ibus.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) 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // IBusEngineHandlerInterface overrides. 81 // IBusEngineHandlerInterface overrides.
82 virtual void FocusIn(ibus::TextInputType text_input_type) OVERRIDE; 82 virtual void FocusIn(ibus::TextInputType text_input_type) OVERRIDE;
83 virtual void FocusOut() OVERRIDE; 83 virtual void FocusOut() OVERRIDE;
84 virtual void Enable() OVERRIDE; 84 virtual void Enable() OVERRIDE;
85 virtual void Disable() OVERRIDE; 85 virtual void Disable() OVERRIDE;
86 virtual void PropertyActivate(const std::string& property_name) OVERRIDE; 86 virtual void PropertyActivate(const std::string& property_name) OVERRIDE;
87 virtual void PropertyShow(const std::string& property_name) OVERRIDE; 87 virtual void PropertyShow(const std::string& property_name) OVERRIDE;
88 virtual void PropertyHide(const std::string& property_name) OVERRIDE; 88 virtual void PropertyHide(const std::string& property_name) OVERRIDE;
89 virtual void SetCapability(IBusCapability capability) OVERRIDE; 89 virtual void SetCapability(IBusCapability capability) OVERRIDE;
90 virtual void Reset() OVERRIDE; 90 virtual void Reset() OVERRIDE;
91 virtual void ProcessKeyEvent(uint32 keysym, uint32 keycode, uint32 state, 91 virtual void ProcessKeyEvent(const std::string& keysym,
92 const std::string& keycode,
93 bool is_key_down,
94 bool is_alt_down,
95 bool is_ctrl_down,
96 bool is_shift_down,
97 bool is_caps_lock_down,
92 const KeyEventDoneCallback& callback) OVERRIDE; 98 const KeyEventDoneCallback& callback) OVERRIDE;
93 virtual void CandidateClicked(uint32 index, ibus::IBusMouseButton button, 99 virtual void CandidateClicked(uint32 index, ibus::IBusMouseButton button,
94 uint32 state) OVERRIDE; 100 uint32 state) OVERRIDE;
95 virtual void SetSurroundingText(const std::string& text, uint32 cursor_pos, 101 virtual void SetSurroundingText(const std::string& text, uint32 cursor_pos,
96 uint32 anchor_pos) OVERRIDE; 102 uint32 anchor_pos) OVERRIDE;
97 103
98 // Called when the connection with ibus-daemon is connected. 104 // Called when the connection with ibus-daemon is connected.
99 void OnConnected(); 105 void OnConnected();
100 106
101 // Called whtn the connection with ibus-daemon is disconnected. 107 // Called whtn the connection with ibus-daemon is disconnected.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Mapping of candidate id to index. 183 // Mapping of candidate id to index.
178 std::map<int, int> candidate_indexes_; 184 std::map<int, int> candidate_indexes_;
179 185
180 // Used for making callbacks. 186 // Used for making callbacks.
181 base::WeakPtrFactory<InputMethodEngineIBus> weak_ptr_factory_; 187 base::WeakPtrFactory<InputMethodEngineIBus> weak_ptr_factory_;
182 }; 188 };
183 189
184 } // namespace chromeos 190 } // namespace chromeos
185 191
186 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ 192 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_engine_ibus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698