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

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

Issue 14404007: Fix crash on extension IME reloading on Linux Desktop with chromeos=1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 7 years, 8 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) 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_CLEAR = 0, 109 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_CLEAR = 0,
110 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_COMMIT = 1, 110 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_COMMIT = 1,
111 }; 111 };
112 112
113 virtual ~IBusEngineService(); 113 virtual ~IBusEngineService();
114 114
115 // Sets a new IBus engine handler and old handler will be overridden. 115 // Sets a new IBus engine handler and old handler will be overridden.
116 // This class doesn't take the ownership of |handler|. 116 // This class doesn't take the ownership of |handler|.
117 virtual void SetEngine(IBusEngineHandlerInterface* handler) = 0; 117 virtual void SetEngine(IBusEngineHandlerInterface* handler) = 0;
118 118
119 // Unsets the current IBus engine handler. 119 // Unsets the IBus engine handler if |handler| equals to current engine
120 virtual void UnsetEngine() = 0; 120 // handler.
121 virtual void UnsetEngine(IBusEngineHandlerInterface* handler) = 0;
121 122
122 // Emits RegisterProperties signal. 123 // Emits RegisterProperties signal.
123 virtual void RegisterProperties( 124 virtual void RegisterProperties(
124 const IBusPropertyList& property_list) = 0; 125 const IBusPropertyList& property_list) = 0;
125 // Emits UpdatePreedit signal. 126 // Emits UpdatePreedit signal.
126 virtual void UpdatePreedit(const IBusText& ibus_text, 127 virtual void UpdatePreedit(const IBusText& ibus_text,
127 uint32 cursor_pos, 128 uint32 cursor_pos,
128 bool is_visible, 129 bool is_visible,
129 IBusEnginePreeditFocusOutMode mode) = 0; 130 IBusEnginePreeditFocusOutMode mode) = 0;
130 // Emits UpdateAuxiliaryText signal. 131 // Emits UpdateAuxiliaryText signal.
(...skipping 22 matching lines...) Expand all
153 // Create() should be used instead. 154 // Create() should be used instead.
154 IBusEngineService(); 155 IBusEngineService();
155 156
156 private: 157 private:
157 DISALLOW_COPY_AND_ASSIGN(IBusEngineService); 158 DISALLOW_COPY_AND_ASSIGN(IBusEngineService);
158 }; 159 };
159 160
160 } // namespace chromeos 161 } // namespace chromeos
161 162
162 #endif // CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_ 163 #endif // CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_engine_ibus.cc ('k') | chromeos/dbus/ibus/ibus_engine_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698