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/ppp_instance_proxy.h

Issue 8951014: Change the DidChangeView update to take a new ViewChanged resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New patch Created 9 years 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_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
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_resource.h" 13 #include "ppapi/c/pp_resource.h"
14 #include "ppapi/c/pp_var.h" 14 #include "ppapi/c/pp_var.h"
15 #include "ppapi/proxy/interface_proxy.h" 15 #include "ppapi/proxy/interface_proxy.h"
16 #include "ppapi/shared_impl/host_resource.h" 16 #include "ppapi/shared_impl/host_resource.h"
17 #include "ppapi/shared_impl/ppp_instance_combined.h" 17 #include "ppapi/shared_impl/ppp_instance_combined.h"
18 18
19 struct PP_Rect; 19 struct PP_Rect;
20 20
21 namespace ppapi { 21 namespace ppapi {
22
23 struct ViewData;
24
22 namespace proxy { 25 namespace proxy {
23 26
24 class PPP_Instance_Proxy : public InterfaceProxy { 27 class PPP_Instance_Proxy : public InterfaceProxy {
25 public: 28 public:
26 explicit PPP_Instance_Proxy(Dispatcher* dispatcher); 29 explicit PPP_Instance_Proxy(Dispatcher* dispatcher);
27 virtual ~PPP_Instance_Proxy(); 30 virtual ~PPP_Instance_Proxy();
28 31
29 // Return the info for the 1.0 (latest, canonical) version of the interface. 32 static const PPP_Instance* GetInstanceInterface();
30 static const Info* GetInfo1_0();
31 33
32 PPP_Instance_Combined* ppp_instance_target() const { 34 PPP_Instance_Combined* ppp_instance_target() const {
33 return combined_interface_.get(); 35 return combined_interface_.get();
34 } 36 }
35 37
36 // InterfaceProxy implementation. 38 // InterfaceProxy implementation.
37 virtual bool OnMessageReceived(const IPC::Message& msg); 39 virtual bool OnMessageReceived(const IPC::Message& msg);
38 40
39 private: 41 private:
40 // Message handlers. 42 // Message handlers.
41 void OnMsgDidCreate(PP_Instance instance, 43 void OnPluginMsgDidCreate(PP_Instance instance,
42 const std::vector<std::string>& argn, 44 const std::vector<std::string>& argn,
43 const std::vector<std::string>& argv, 45 const std::vector<std::string>& argv,
44 PP_Bool* result); 46 PP_Bool* result);
45 void OnMsgDidDestroy(PP_Instance instance); 47 void OnPluginMsgDidDestroy(PP_Instance instance);
46 void OnMsgDidChangeView(PP_Instance instance, 48 void OnPluginMsgDidChangeView(PP_Instance instance,
47 const PP_Rect& position, 49 const ViewData& new_data,
48 const PP_Rect& clip, 50 PP_Bool flash_fullscreen);
49 PP_Bool fullscreen, 51 void OnPluginMsgDidChangeFocus(PP_Instance instance, PP_Bool has_focus);
50 PP_Bool flash_fullscreen); 52 void OnPluginMsgHandleDocumentLoad(PP_Instance instance,
51 void OnMsgDidChangeFocus(PP_Instance instance, PP_Bool has_focus); 53 const HostResource& url_loader,
52 void OnMsgHandleDocumentLoad(PP_Instance instance, 54 PP_Bool* result);
53 const HostResource& url_loader,
54 PP_Bool* result);
55 scoped_ptr<PPP_Instance_Combined> combined_interface_; 55 scoped_ptr<PPP_Instance_Combined> combined_interface_;
56 }; 56 };
57 57
58 } // namespace proxy 58 } // namespace proxy
59 } // namespace ppapi 59 } // namespace ppapi
60 60
61 #endif // PPAPI_PROXY_PPP_INSTANCE_PROXY_H_ 61 #endif // PPAPI_PROXY_PPP_INSTANCE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698