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

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

Issue 7285010: Implement an input event resource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 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 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 PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
7 7
8 #include "ppapi/c/pp_instance.h" 8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/pp_resource.h" 9 #include "ppapi/c/pp_resource.h"
10 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
11 #include "ppapi/proxy/host_resource.h" 11 #include "ppapi/proxy/host_resource.h"
12 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
13 #include "ppapi/shared_impl/function_group_base.h" 13 #include "ppapi/shared_impl/function_group_base.h"
14 #include "ppapi/shared_impl/instance_impl.h"
14 #include "ppapi/thunk/ppb_instance_api.h" 15 #include "ppapi/thunk/ppb_instance_api.h"
15 16
16 namespace pp { 17 namespace pp {
17 namespace proxy { 18 namespace proxy {
18 19
19 class SerializedVarReceiveInput; 20 class SerializedVarReceiveInput;
20 class SerializedVarOutParam; 21 class SerializedVarOutParam;
21 class SerializedVarReturnValue; 22 class SerializedVarReturnValue;
22 23
23 class PPB_Instance_Proxy : public InterfaceProxy, 24 class PPB_Instance_Proxy : public InterfaceProxy,
25 public ppapi::InstanceImpl,
24 public ppapi::FunctionGroupBase, 26 public ppapi::FunctionGroupBase,
25 public ppapi::thunk::PPB_Instance_FunctionAPI { 27 public ppapi::thunk::PPB_Instance_FunctionAPI {
26 public: 28 public:
27 PPB_Instance_Proxy(Dispatcher* dispatcher, const void* target_interface); 29 PPB_Instance_Proxy(Dispatcher* dispatcher, const void* target_interface);
28 virtual ~PPB_Instance_Proxy(); 30 virtual ~PPB_Instance_Proxy();
29 31
30 static const Info* GetInfo0_4(); 32 static const Info* GetInfo0_4();
31 static const Info* GetInfo0_5(); 33 static const Info* GetInfo0_5();
32 static const Info* GetInfoPrivate(); 34 static const Info* GetInfoPrivate();
33 static const Info* GetInfoFullscreen(); 35 static const Info* GetInfoFullscreen();
(...skipping 10 matching lines...) Expand all
44 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; 46 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE;
45 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; 47 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE;
46 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; 48 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE;
47 virtual PP_Var ExecuteScript(PP_Instance instance, 49 virtual PP_Var ExecuteScript(PP_Instance instance,
48 PP_Var script, 50 PP_Var script,
49 PP_Var* exception) OVERRIDE; 51 PP_Var* exception) OVERRIDE;
50 virtual PP_Bool IsFullscreen(PP_Instance instance) OVERRIDE; 52 virtual PP_Bool IsFullscreen(PP_Instance instance) OVERRIDE;
51 virtual PP_Bool SetFullscreen(PP_Instance instance, 53 virtual PP_Bool SetFullscreen(PP_Instance instance,
52 PP_Bool fullscreen) OVERRIDE; 54 PP_Bool fullscreen) OVERRIDE;
53 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) OVERRIDE; 55 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) OVERRIDE;
56 virtual int32_t RequestInputEvents(PP_Instance instance,
57 uint32_t event_classes) OVERRIDE;
58 virtual int32_t RequestFilteringInputEvents(PP_Instance instance,
59 uint32_t event_classes) OVERRIDE;
60 virtual void ClearInputEventRequest(PP_Instance instance,
61 uint32_t event_classes) OVERRIDE;
54 62
55 private: 63 private:
56 // Message handlers. 64 // Message handlers.
57 void OnMsgGetWindowObject(PP_Instance instance, 65 void OnMsgGetWindowObject(PP_Instance instance,
58 SerializedVarReturnValue result); 66 SerializedVarReturnValue result);
59 void OnMsgGetOwnerElementObject(PP_Instance instance, 67 void OnMsgGetOwnerElementObject(PP_Instance instance,
60 SerializedVarReturnValue result); 68 SerializedVarReturnValue result);
61 void OnMsgBindGraphics(PP_Instance instance, 69 void OnMsgBindGraphics(PP_Instance instance,
62 HostResource device, 70 HostResource device,
63 PP_Bool* result); 71 PP_Bool* result);
64 void OnMsgIsFullFrame(PP_Instance instance, PP_Bool* result); 72 void OnMsgIsFullFrame(PP_Instance instance, PP_Bool* result);
65 void OnMsgExecuteScript(PP_Instance instance, 73 void OnMsgExecuteScript(PP_Instance instance,
66 SerializedVarReceiveInput script, 74 SerializedVarReceiveInput script,
67 SerializedVarOutParam out_exception, 75 SerializedVarOutParam out_exception,
68 SerializedVarReturnValue result); 76 SerializedVarReturnValue result);
69 void OnMsgSetFullscreen(PP_Instance instance, 77 void OnMsgSetFullscreen(PP_Instance instance,
70 PP_Bool fullscreen, 78 PP_Bool fullscreen,
71 PP_Bool* result); 79 PP_Bool* result);
72 void OnMsgGetScreenSize(PP_Instance instance, 80 void OnMsgGetScreenSize(PP_Instance instance,
73 PP_Bool* result, 81 PP_Bool* result,
74 PP_Size* size); 82 PP_Size* size);
83 void OnMsgRequestInputEvents(PP_Instance instance,
84 bool is_filtering,
85 uint32_t event_classes);
86 void OnMsgClearInputEvents(PP_Instance instance,
87 uint32_t event_classes);
75 }; 88 };
76 89
77 } // namespace proxy 90 } // namespace proxy
78 } // namespace pp 91 } // namespace pp
79 92
80 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 93 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698