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

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

Issue 4289005: Instance interface implementation. These don't build by themselves, this is... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « ppapi/proxy/ppb_url_loader_proxy.cc ('k') | ppapi/proxy/ppp_instance_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 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_PROXY_PPP_INSTANCE_PROXY_H_
6 #define PPAPI_PROXY_PPP_INSTANCE_PROXY_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/pp_var.h"
14 #include "ppapi/proxy/interface_proxy.h"
15
16 struct PP_InputEvent;
17 struct PP_Rect;
18 struct PPP_Instance;
19
20 namespace pp {
21 namespace proxy {
22
23 class SerializedVarReturnValue;
24
25 class PPP_Instance_Proxy : public InterfaceProxy {
26 public:
27 PPP_Instance_Proxy(Dispatcher* dispatcher, const void* target_interface);
28 virtual ~PPP_Instance_Proxy();
29
30 const PPP_Instance* ppp_instance_target() const {
31 return reinterpret_cast<const PPP_Instance*>(target_interface());
32 }
33
34 // InterfaceProxy implementation.
35 virtual const void* GetSourceInterface() const;
36 virtual InterfaceID GetInterfaceId() const;
37 virtual void OnMessageReceived(const IPC::Message& msg);
38
39 private:
40 // Message handlers.
41 void OnMsgDidCreate(PP_Instance instance,
42 const std::vector<std::string>& argn,
43 const std::vector<std::string>& argv,
44 bool* result);
45 void OnMsgDidDestroy(PP_Instance instance);
46 void OnMsgDidChangeView(PP_Instance instance,
47 const PP_Rect& position,
48 const PP_Rect& clip);
49 void OnMsgDidChangeFocus(PP_Instance instance, bool has_focus);
50 void OnMsgHandleInputEvent(PP_Instance instance,
51 const PP_InputEvent& event,
52 bool* result);
53 void OnMsgHandleDocumentLoad(PP_Instance instance,
54 PP_Resource url_loader,
55 bool* result);
56 void OnMsgGetInstanceObject(PP_Instance instance,
57 SerializedVarReturnValue result);
58 };
59
60 } // namespace proxy
61 } // namespace pp
62
63 #endif // PPAPI_PROXY_PPP_INSTANCE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_url_loader_proxy.cc ('k') | ppapi/proxy/ppp_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698