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

Side by Side Diff: ppapi/proxy/ppb_text_input_proxy.h

Issue 7978019: Additional update on Pepper IME API and boilerplate thunk/proxy implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_PPB_TEXT_INPUT_PROXY_H_
6 #define PPAPI_PPB_TEXT_INPUT_PROXY_H_
7
8 #include "ppapi/c/pp_completion_callback.h"
yzshen1 2011/09/22 19:24:00 Please only include those that are necessary. Ther
kinaba 2011/09/27 02:49:27 Done.
9 #include "ppapi/c/pp_bool.h"
10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/c/pp_point.h"
12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/proxy/interface_proxy.h"
14 #include "ppapi/shared_impl/function_group_base.h"
15 #include "ppapi/shared_impl/host_resource.h"
16 #include "ppapi/thunk/ppb_text_input_api.h"
17
18 struct PPB_TextInput_Dev;
19
20 namespace ppapi {
21 namespace proxy {
22
23 class PPB_TextInput_Proxy
24 : public InterfaceProxy,
25 public ppapi::thunk::PPB_TextInput_FunctionAPI {
26 public:
27 PPB_TextInput_Proxy(Dispatcher* dispatcher);
28 virtual ~PPB_TextInput_Proxy();
29
30 // FunctionGroupBase overrides.
31 ppapi::thunk::PPB_TextInput_FunctionAPI* AsPPB_TextInput_FunctionAPI()
32 OVERRIDE;
33
34 // PPB_TextInput_FunctionAPI implementation.
35 virtual void SetTextInputType(PP_Instance instance,
36 PP_TextInput_Type type) OVERRIDE;
37 virtual void UpdateCaretPosition(PP_Instance instance,
38 const PP_Rect& caret,
39 const PP_Rect& boundingBox) OVERRIDE;
yzshen1 2011/09/22 19:24:00 Use bounding_box, please. (line 53 has the same pr
kinaba 2011/09/27 02:49:27 Done. Sorry for repeating the same mistake...
40 virtual void ConfirmCompositionText(PP_Instance instance) OVERRIDE;
41 virtual void CancelCompositionText(PP_Instance instance) OVERRIDE;
42
43 // InterfaceProxy implementation.
44 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
45
46 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_TEXT_INPUT;
47
48 private:
49 // Message handlers.
50 void OnMsgSetTextInputType(PP_Instance instance, PP_TextInput_Type type);
51 void OnMsgUpdateCaretPosition(PP_Instance instance,
52 PP_Rect caret,
53 PP_Rect boundingBox);
54 void OnMsgConfirmCompositionText(PP_Instance instance);
55 void OnMsgCancelCompositionText(PP_Instance instance);
56
57 DISALLOW_COPY_AND_ASSIGN(PPB_TextInput_Proxy);
58 };
59
60 } // namespace proxy
61 } // namespace ppapi
62
63 #endif // PPAPI_PPB_TEXT_INPUT_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698