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

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

Issue 10544168: Implement HiDPI support in Pepper dev interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GRAPHICS_2D_PROXY_H_ 5 #ifndef PPAPI_PPB_GRAPHICS_2D_PROXY_H_
6 #define PPAPI_PPB_GRAPHICS_2D_PROXY_H_ 6 #define PPAPI_PPB_GRAPHICS_2D_PROXY_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
(...skipping 12 matching lines...) Expand all
23 namespace ppapi { 23 namespace ppapi {
24 namespace proxy { 24 namespace proxy {
25 25
26 class PPB_Graphics2D_Proxy : public InterfaceProxy { 26 class PPB_Graphics2D_Proxy : public InterfaceProxy {
27 public: 27 public:
28 PPB_Graphics2D_Proxy(Dispatcher* dispatcher); 28 PPB_Graphics2D_Proxy(Dispatcher* dispatcher);
29 virtual ~PPB_Graphics2D_Proxy(); 29 virtual ~PPB_Graphics2D_Proxy();
30 30
31 static PP_Resource CreateProxyResource(PP_Instance instance, 31 static PP_Resource CreateProxyResource(PP_Instance instance,
32 const PP_Size& size, 32 const PP_Size& size,
33 PP_Bool is_always_opaque); 33 PP_Bool is_always_opaque,
34 float scale_fctor);
34 35
35 // InterfaceProxy implementation. 36 // InterfaceProxy implementation.
36 virtual bool OnMessageReceived(const IPC::Message& msg); 37 virtual bool OnMessageReceived(const IPC::Message& msg);
37 38
38 static const ApiID kApiID = API_ID_PPB_GRAPHICS_2D; 39 static const ApiID kApiID = API_ID_PPB_GRAPHICS_2D;
39 40
40 private: 41 private:
41 // Plugin->host message handlers. 42 // Plugin->host message handlers.
42 void OnHostMsgCreate(PP_Instance instance, 43 void OnHostMsgCreate(PP_Instance instance,
43 const PP_Size& size, 44 const PP_Size& size,
44 PP_Bool is_always_opaque, 45 PP_Bool is_always_opaque,
46 float scale,
45 HostResource* result); 47 HostResource* result);
46 void OnHostMsgPaintImageData(const HostResource& graphics_2d, 48 void OnHostMsgPaintImageData(const HostResource& graphics_2d,
47 const HostResource& image_data, 49 const HostResource& image_data,
48 const PP_Point& top_left, 50 const PP_Point& top_left,
49 bool src_rect_specified, 51 bool src_rect_specified,
50 const PP_Rect& src_rect); 52 const PP_Rect& src_rect);
51 void OnHostMsgScroll(const HostResource& graphics_2d, 53 void OnHostMsgScroll(const HostResource& graphics_2d,
52 bool clip_specified, 54 bool clip_specified,
53 const PP_Rect& clip, 55 const PP_Rect& clip,
54 const PP_Point& amount); 56 const PP_Point& amount);
(...skipping 12 matching lines...) Expand all
67 pp::CompletionCallbackFactory<PPB_Graphics2D_Proxy, 69 pp::CompletionCallbackFactory<PPB_Graphics2D_Proxy,
68 ProxyNonThreadSafeRefCount> callback_factory_; 70 ProxyNonThreadSafeRefCount> callback_factory_;
69 71
70 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Proxy); 72 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Proxy);
71 }; 73 };
72 74
73 } // namespace proxy 75 } // namespace proxy
74 } // namespace ppapi 76 } // namespace ppapi
75 77
76 #endif // PPAPI_PPB_GRAPHICS_2D_PROXY_H_ 78 #endif // PPAPI_PPB_GRAPHICS_2D_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698