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

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

Issue 10825154: Extends IBusContextClient to handle SetSurroundingText. (Closed) Base URL: http://git.chromium.org/chromium/src.git@surrounding_support
Patch Set: Style Fix Created 8 years, 4 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_INPUT_CONTEXT_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_IBUS_IBUS_INPUT_CONTEXT_CLIENT_H_
6 #define CHROMEOS_DBUS_IBUS_IBUS_INPUT_CONTEXT_CLIENT_H_ 6 #define CHROMEOS_DBUS_IBUS_IBUS_INPUT_CONTEXT_CLIENT_H_
7 7
8 #include <string>
9
8 #include "base/bind.h" 10 #include "base/bind.h"
9 #include "base/callback.h" 11 #include "base/callback.h"
10 #include "chromeos/chromeos_export.h" 12 #include "chromeos/chromeos_export.h"
11 #include "chromeos/dbus/dbus_client_implementation_type.h" 13 #include "chromeos/dbus/dbus_client_implementation_type.h"
12 #include "dbus/object_path.h" 14 #include "dbus/object_path.h"
13 15
14 namespace dbus { 16 namespace dbus {
15 class Bus; 17 class Bus;
16 } // namespace dbus 18 } // namespace dbus
17 19
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Invokes SetCursorLocation method call. 98 // Invokes SetCursorLocation method call.
97 virtual void SetCursorLocation(int32 x, int32 y, int32 width, 99 virtual void SetCursorLocation(int32 x, int32 y, int32 width,
98 int32 height) = 0; 100 int32 height) = 0;
99 // Invokes ProcessKeyEvent method call. |callback| shold not be null-callback. 101 // Invokes ProcessKeyEvent method call. |callback| shold not be null-callback.
100 virtual void ProcessKeyEvent(uint32 keyval, 102 virtual void ProcessKeyEvent(uint32 keyval,
101 uint32 keycode, 103 uint32 keycode,
102 uint32 state, 104 uint32 state,
103 const ProcessKeyEventCallback& callback, 105 const ProcessKeyEventCallback& callback,
104 const ErrorCallback& error_callback) = 0; 106 const ErrorCallback& error_callback) = 0;
105 107
108 // Invokes SetSurroundingText method call. THe |start_index| is inclusive
109 // start index and |end_index| is exclusive end index.
satorux1 2012/08/02 16:38:16 looks rather redundant. just |start_index| is in
Seigo Nonaka 2012/08/02 17:54:32 Done.
110 virtual void SetSurroundingText(const std::string& text,
111 uint32 start_index,
112 uint32 end_index) = 0;
113
106 // Factory function, creates a new instance and returns ownership. 114 // Factory function, creates a new instance and returns ownership.
107 // For normal usage, access the singleton via DBusThreadManager::Get(). 115 // For normal usage, access the singleton via DBusThreadManager::Get().
108 static CHROMEOS_EXPORT IBusInputContextClient* Create( 116 static CHROMEOS_EXPORT IBusInputContextClient* Create(
109 DBusClientImplementationType type); 117 DBusClientImplementationType type);
110 118
111 protected: 119 protected:
112 // Create() should be used instead. 120 // Create() should be used instead.
113 IBusInputContextClient(); 121 IBusInputContextClient();
114 122
115 private: 123 private:
116 DISALLOW_COPY_AND_ASSIGN(IBusInputContextClient); 124 DISALLOW_COPY_AND_ASSIGN(IBusInputContextClient);
117 }; 125 };
118 126
119 } // namespace chromeos 127 } // namespace chromeos
120 128
121 #endif // CHROMEOS_DBUS_IBUS_IBUS_INPUT_CONTEXT_CLIENT_H_ 129 #endif // CHROMEOS_DBUS_IBUS_IBUS_INPUT_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698