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

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

Issue 4659001: Convert Chrome PPAPI proxy from bool to PP_Bool. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
10 #include "ppapi/c/pp_module.h" 11 #include "ppapi/c/pp_module.h"
11 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/pp_size.h" 13 #include "ppapi/c/pp_size.h"
13 #include "ppapi/c/pp_var.h" 14 #include "ppapi/c/pp_var.h"
14 #include "ppapi/proxy/interface_proxy.h" 15 #include "ppapi/proxy/interface_proxy.h"
15 16
16 struct PPB_Graphics2D; 17 struct PPB_Graphics2D;
17 struct PP_Point; 18 struct PP_Point;
(...skipping 13 matching lines...) Expand all
31 32
32 // InterfaceProxy implementation. 33 // InterfaceProxy implementation.
33 virtual const void* GetSourceInterface() const; 34 virtual const void* GetSourceInterface() const;
34 virtual InterfaceID GetInterfaceId() const; 35 virtual InterfaceID GetInterfaceId() const;
35 virtual void OnMessageReceived(const IPC::Message& msg); 36 virtual void OnMessageReceived(const IPC::Message& msg);
36 37
37 private: 38 private:
38 // Message handlers. 39 // Message handlers.
39 void OnMsgCreate(PP_Module module, 40 void OnMsgCreate(PP_Module module,
40 const PP_Size& size, 41 const PP_Size& size,
41 bool is_always_opaque, 42 PP_Bool is_always_opaque,
42 PP_Resource* result); 43 PP_Resource* result);
43 void OnMsgPaintImageData(PP_Resource graphics_2d, 44 void OnMsgPaintImageData(PP_Resource graphics_2d,
44 PP_Resource image_data, 45 PP_Resource image_data,
45 const PP_Point& top_left, 46 const PP_Point& top_left,
46 bool src_rect_specified, 47 bool src_rect_specified,
47 const PP_Rect& src_rect); 48 const PP_Rect& src_rect);
48 void OnMsgScroll(PP_Resource graphics_2d, 49 void OnMsgScroll(PP_Resource graphics_2d,
49 bool clip_specified, 50 bool clip_specified,
50 const PP_Rect& clip, 51 const PP_Rect& clip,
51 const PP_Point& amount); 52 const PP_Point& amount);
52 void OnMsgReplaceContents(PP_Resource graphics_2d, 53 void OnMsgReplaceContents(PP_Resource graphics_2d,
53 PP_Resource image_data); 54 PP_Resource image_data);
54 void OnMsgFlush(PP_Resource graphics_2d, 55 void OnMsgFlush(PP_Resource graphics_2d,
55 uint32_t serialized_callback, 56 uint32_t serialized_callback,
56 int32_t* result); 57 int32_t* result);
57 }; 58 };
58 59
59 } // namespace proxy 60 } // namespace proxy
60 } // namespace pp 61 } // namespace pp
61 62
62 #endif // PPAPI_PPB_GRAPHICS_2D_PROXY_H_ 63 #endif // PPAPI_PPB_GRAPHICS_2D_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698