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

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: Rebase Created 8 years, 5 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/ppapi_messages.h ('k') | ppapi/proxy/ppb_graphics_2d_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) 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const PP_Point& top_left, 48 const PP_Point& top_left,
49 bool src_rect_specified, 49 bool src_rect_specified,
50 const PP_Rect& src_rect); 50 const PP_Rect& src_rect);
51 void OnHostMsgScroll(const HostResource& graphics_2d, 51 void OnHostMsgScroll(const HostResource& graphics_2d,
52 bool clip_specified, 52 bool clip_specified,
53 const PP_Rect& clip, 53 const PP_Rect& clip,
54 const PP_Point& amount); 54 const PP_Point& amount);
55 void OnHostMsgReplaceContents(const HostResource& graphics_2d, 55 void OnHostMsgReplaceContents(const HostResource& graphics_2d,
56 const HostResource& image_data); 56 const HostResource& image_data);
57 void OnHostMsgFlush(const HostResource& graphics_2d); 57 void OnHostMsgFlush(const HostResource& graphics_2d);
58 void OnHostMsgSetScale(const HostResource& graphics_2d,
59 float scale);
58 60
59 // Host->plugin message handlers. 61 // Host->plugin message handlers.
60 void OnPluginMsgFlushACK(const HostResource& graphics_2d, 62 void OnPluginMsgFlushACK(const HostResource& graphics_2d,
61 int32_t pp_error); 63 int32_t pp_error);
62 64
63 // Called in the renderer to send the given flush ACK to the plugin. 65 // Called in the renderer to send the given flush ACK to the plugin.
64 void SendFlushACKToPlugin(int32_t result, 66 void SendFlushACKToPlugin(int32_t result,
65 const HostResource& graphics_2d); 67 const HostResource& graphics_2d);
66 68
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
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_graphics_2d_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698