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

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

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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_PPB_FLASH_PROXY_H_ 5 #ifndef PPAPI_PPB_FLASH_PROXY_H_
6 #define PPAPI_PPB_FLASH_PROXY_H_ 6 #define PPAPI_PPB_FLASH_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ipc/ipc_platform_file.h" 11 #include "ipc/ipc_platform_file.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_module.h" 13 #include "ppapi/c/pp_module.h"
14 #include "ppapi/c/pp_time.h" 14 #include "ppapi/c/pp_time.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 17
18 struct PP_FileInfo; 18 struct PP_FileInfo;
19 struct PPB_Flash; 19 struct PPB_Flash;
20 20
21 namespace pp { 21 namespace ppapi {
22 namespace proxy { 22 namespace proxy {
23 23
24 struct PPBFlash_DrawGlyphs_Params; 24 struct PPBFlash_DrawGlyphs_Params;
25 class SerializedVarReturnValue; 25 class SerializedVarReturnValue;
26 26
27 class PPB_Flash_Proxy : public InterfaceProxy { 27 class PPB_Flash_Proxy : public InterfaceProxy {
28 public: 28 public:
29 PPB_Flash_Proxy(Dispatcher* dispatcher, const void* target_interface); 29 PPB_Flash_Proxy(Dispatcher* dispatcher, const void* target_interface);
30 virtual ~PPB_Flash_Proxy(); 30 virtual ~PPB_Flash_Proxy();
31 31
32 static const Info* GetInfo(); 32 static const Info* GetInfo();
33 33
34 const PPB_Flash* ppb_flash_target() const { 34 const PPB_Flash* ppb_flash_target() const {
35 return static_cast<const PPB_Flash*>(target_interface()); 35 return static_cast<const PPB_Flash*>(target_interface());
36 } 36 }
37 37
38 // InterfaceProxy implementation. 38 // InterfaceProxy implementation.
39 virtual bool OnMessageReceived(const IPC::Message& msg); 39 virtual bool OnMessageReceived(const IPC::Message& msg);
40 40
41 private: 41 private:
42 // Message handlers. 42 // Message handlers.
43 void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance, 43 void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance,
44 PP_Bool on_top); 44 PP_Bool on_top);
45 void OnMsgDrawGlyphs(const pp::proxy::PPBFlash_DrawGlyphs_Params& params, 45 void OnMsgDrawGlyphs(const PPBFlash_DrawGlyphs_Params& params,
46 PP_Bool* result); 46 PP_Bool* result);
47 void OnMsgGetProxyForURL(PP_Instance instance, 47 void OnMsgGetProxyForURL(PP_Instance instance,
48 const std::string& url, 48 const std::string& url,
49 SerializedVarReturnValue result); 49 SerializedVarReturnValue result);
50 void OnMsgNavigate(const ppapi::HostResource& request_info, 50 void OnMsgNavigate(const HostResource& request_info,
51 const std::string& target, 51 const std::string& target,
52 bool from_user_action, 52 bool from_user_action,
53 int32_t* result); 53 int32_t* result);
54 void OnMsgRunMessageLoop(PP_Instance instance); 54 void OnMsgRunMessageLoop(PP_Instance instance);
55 void OnMsgQuitMessageLoop(PP_Instance instance); 55 void OnMsgQuitMessageLoop(PP_Instance instance);
56 void OnMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, 56 void OnMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t,
57 double* result); 57 double* result);
58 }; 58 };
59 59
60 } // namespace proxy 60 } // namespace proxy
61 } // namespace pp 61 } // namespace ppapi
62 62
63 #endif // PPAPI_PPB_FLASH_PROXY_H_ 63 #endif // PPAPI_PPB_FLASH_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698