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

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

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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
« no previous file with comments | « ppapi/proxy/ppp_class_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')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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_PPP_INSTANCE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPP_INSTANCE_PROXY_H_
6 #define PPAPI_PROXY_PPP_INSTANCE_PROXY_H_ 6 #define PPAPI_PROXY_PPP_INSTANCE_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 PPP_Instance_Proxy(Dispatcher* dispatcher, const void* target_interface); 27 PPP_Instance_Proxy(Dispatcher* dispatcher, const void* target_interface);
28 virtual ~PPP_Instance_Proxy(); 28 virtual ~PPP_Instance_Proxy();
29 29
30 const PPP_Instance* ppp_instance_target() const { 30 const PPP_Instance* ppp_instance_target() const {
31 return reinterpret_cast<const PPP_Instance*>(target_interface()); 31 return reinterpret_cast<const PPP_Instance*>(target_interface());
32 } 32 }
33 33
34 // InterfaceProxy implementation. 34 // InterfaceProxy implementation.
35 virtual const void* GetSourceInterface() const; 35 virtual const void* GetSourceInterface() const;
36 virtual InterfaceID GetInterfaceId() const; 36 virtual InterfaceID GetInterfaceId() const;
37 virtual void OnMessageReceived(const IPC::Message& msg); 37 virtual bool OnMessageReceived(const IPC::Message& msg);
38 38
39 private: 39 private:
40 // Message handlers. 40 // Message handlers.
41 void OnMsgDidCreate(PP_Instance instance, 41 void OnMsgDidCreate(PP_Instance instance,
42 const std::vector<std::string>& argn, 42 const std::vector<std::string>& argn,
43 const std::vector<std::string>& argv, 43 const std::vector<std::string>& argv,
44 PP_Bool* result); 44 PP_Bool* result);
45 void OnMsgDidDestroy(PP_Instance instance); 45 void OnMsgDidDestroy(PP_Instance instance);
46 void OnMsgDidChangeView(PP_Instance instance, 46 void OnMsgDidChangeView(PP_Instance instance,
47 const PP_Rect& position, 47 const PP_Rect& position,
48 const PP_Rect& clip); 48 const PP_Rect& clip);
49 void OnMsgDidChangeFocus(PP_Instance instance, PP_Bool has_focus); 49 void OnMsgDidChangeFocus(PP_Instance instance, PP_Bool has_focus);
50 void OnMsgHandleInputEvent(PP_Instance instance, 50 void OnMsgHandleInputEvent(PP_Instance instance,
51 const PP_InputEvent& event, 51 const PP_InputEvent& event,
52 PP_Bool* result); 52 PP_Bool* result);
53 void OnMsgHandleDocumentLoad(PP_Instance instance, 53 void OnMsgHandleDocumentLoad(PP_Instance instance,
54 PP_Resource url_loader, 54 PP_Resource url_loader,
55 PP_Bool* result); 55 PP_Bool* result);
56 void OnMsgGetInstanceObject(PP_Instance instance, 56 void OnMsgGetInstanceObject(PP_Instance instance,
57 SerializedVarReturnValue result); 57 SerializedVarReturnValue result);
58 }; 58 };
59 59
60 } // namespace proxy 60 } // namespace proxy
61 } // namespace pp 61 } // namespace pp
62 62
63 #endif // PPAPI_PROXY_PPP_INSTANCE_PROXY_H_ 63 #endif // PPAPI_PROXY_PPP_INSTANCE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_class_proxy.cc ('k') | ppapi/proxy/ppp_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698