| OLD | NEW |
| 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 Loading... |
| 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, |
| 60 bool* result); |
| 58 | 61 |
| 59 // Host->plugin message handlers. | 62 // Host->plugin message handlers. |
| 60 void OnPluginMsgFlushACK(const HostResource& graphics_2d, | 63 void OnPluginMsgFlushACK(const HostResource& graphics_2d, |
| 61 int32_t pp_error); | 64 int32_t pp_error); |
| 62 | 65 |
| 63 // Called in the renderer to send the given flush ACK to the plugin. | 66 // Called in the renderer to send the given flush ACK to the plugin. |
| 64 void SendFlushACKToPlugin(int32_t result, | 67 void SendFlushACKToPlugin(int32_t result, |
| 65 const HostResource& graphics_2d); | 68 const HostResource& graphics_2d); |
| 66 | 69 |
| 67 pp::CompletionCallbackFactory<PPB_Graphics2D_Proxy, | 70 pp::CompletionCallbackFactory<PPB_Graphics2D_Proxy, |
| 68 ProxyNonThreadSafeRefCount> callback_factory_; | 71 ProxyNonThreadSafeRefCount> callback_factory_; |
| 69 | 72 |
| 70 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Proxy); | 73 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Proxy); |
| 71 }; | 74 }; |
| 72 | 75 |
| 73 } // namespace proxy | 76 } // namespace proxy |
| 74 } // namespace ppapi | 77 } // namespace ppapi |
| 75 | 78 |
| 76 #endif // PPAPI_PPB_GRAPHICS_2D_PROXY_H_ | 79 #endif // PPAPI_PPB_GRAPHICS_2D_PROXY_H_ |
| OLD | NEW |