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

Unified Diff: ppapi/shared_impl/input_event_impl.h

Issue 7621010: Never submit: tentative Pepper IME. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: snapshot. Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/function_group_base.h ('k') | ppapi/shared_impl/input_event_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/input_event_impl.h
diff --git a/ppapi/shared_impl/input_event_impl.h b/ppapi/shared_impl/input_event_impl.h
index fc7fb9217f6c63491d54efb49fbf7b4782095673..570c72381b74e00cf35f79795fc9e9799a431218 100644
--- a/ppapi/shared_impl/input_event_impl.h
+++ b/ppapi/shared_impl/input_event_impl.h
@@ -6,6 +6,7 @@
#define PPAPI_SHARED_IMPL_INPUT_EVENT_IMPL_H_
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
@@ -41,6 +42,11 @@ struct PPAPI_SHARED_EXPORT InputEventData {
uint32_t key_code;
std::string character_text;
+
+ std::vector<uint32_t> composition_segments;
+ int32_t composition_target_segment;
+ uint32_t composition_selection_start;
+ uint32_t composition_selection_end;
};
// This simple class implements the PPB_InputEvent_API in terms of the
@@ -78,6 +84,9 @@ class PPAPI_SHARED_EXPORT InputEventImpl
virtual PP_Bool GetWheelScrollByPage() OVERRIDE;
virtual uint32_t GetKeyCode() OVERRIDE;
virtual PP_Var GetCharacterText() OVERRIDE;
+ virtual void GetCompositionSegments(uint32_t**, uint32_t*) OVERRIDE;
+ virtual int32_t GetCompositionTargetSegment() OVERRIDE;
+ virtual void GetCompositionSelection(uint32_t*, uint32_t*) OVERRIDE;
private:
InputEventData data_;
« no previous file with comments | « ppapi/shared_impl/function_group_base.h ('k') | ppapi/shared_impl/input_event_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698