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

Side by Side Diff: chromeos/dbus/ibus/ibus_engine_service.h

Issue 10968056: Fix crash bug of IME extension API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
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 CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_ 5 #ifndef CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_
6 #define CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_ 6 #define CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 public: 123 public:
124 // Following value should be same in 124 // Following value should be same in
125 // http://ibus.googlecode.com/svn/docs/ibus-1.4/ibus-ibustypes.html#IBusPreedi tFocusMode 125 // http://ibus.googlecode.com/svn/docs/ibus-1.4/ibus-ibustypes.html#IBusPreedi tFocusMode
126 enum IBusEnginePreeditFocusOutMode { 126 enum IBusEnginePreeditFocusOutMode {
127 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_CLEAR = 0, 127 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_CLEAR = 0,
128 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_COMMIT = 1, 128 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_COMMIT = 1,
129 }; 129 };
130 130
131 virtual ~IBusEngineService(); 131 virtual ~IBusEngineService();
132 132
133 // Initializes the engine client. This class takes the ownership of |handler|. 133 // Set a new IBus engine client and old client will be overrided.
Seigo Nonaka 2012/09/24 04:16:58 /Set/Sets/ /overrided/overridden/
hsumita 2012/09/24 07:32:59 Done.
Seigo Nonaka 2012/09/24 07:38:45 Seems not fixed, please revise /overrided/overridd
hsumita 2012/09/24 08:01:16 It should be fixed on patchset 1. On 2012/09/24 0
134 virtual void Initialize(IBusEngineHandlerInterface* handler) = 0; 134 // This class doesn't take the ownership of |handler|.
135 virtual void SetEngine(IBusEngineHandlerInterface* handler) = 0;
136
137 // Unset a current IBus engine client.
Seigo Nonaka 2012/09/24 04:16:58 Unsets
hsumita 2012/09/24 07:32:59 Done.
138 virtual void UnsetEngine() = 0;
135 139
136 // Emits RegisterProperties signal. 140 // Emits RegisterProperties signal.
137 virtual void RegisterProperties( 141 virtual void RegisterProperties(
138 const ibus::IBusPropertyList& property_list) = 0; 142 const ibus::IBusPropertyList& property_list) = 0;
139 // Emits UpdatePreedit signal. 143 // Emits UpdatePreedit signal.
140 virtual void UpdatePreedit(const ibus::IBusText& ibus_text, 144 virtual void UpdatePreedit(const ibus::IBusText& ibus_text,
141 uint32 cursor_pos, 145 uint32 cursor_pos,
142 bool is_visible, 146 bool is_visible,
143 IBusEnginePreeditFocusOutMode mode) = 0; 147 IBusEnginePreeditFocusOutMode mode) = 0;
144 // Emits UpdateAuxiliaryText signal. 148 // Emits UpdateAuxiliaryText signal.
(...skipping 22 matching lines...) Expand all
167 // Create() should be used instead. 171 // Create() should be used instead.
168 IBusEngineService(); 172 IBusEngineService();
169 173
170 private: 174 private:
171 DISALLOW_COPY_AND_ASSIGN(IBusEngineService); 175 DISALLOW_COPY_AND_ASSIGN(IBusEngineService);
172 }; 176 };
173 177
174 } // namespace chromeos 178 } // namespace chromeos
175 179
176 #endif // CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_ 180 #endif // CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698