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

Side by Side Diff: webkit/plugins/ppapi/ppb_image_data_impl.h

Issue 7105013: Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 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 WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/c/ppb_image_data.h" 10 #include "ppapi/c/ppb_image_data.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 PluginDelegate::PlatformImage2D* platform_image() const { 47 PluginDelegate::PlatformImage2D* platform_image() const {
48 return platform_image_.get(); 48 return platform_image_.get();
49 } 49 }
50 50
51 // Returns a pointer to the interface implementing PPB_ImageData that is 51 // Returns a pointer to the interface implementing PPB_ImageData that is
52 // exposed to the plugin. 52 // exposed to the plugin.
53 static const PPB_ImageData* GetInterface(); 53 static const PPB_ImageData* GetInterface();
54 static const PPB_ImageDataTrusted* GetTrustedInterface(); 54 static const PPB_ImageDataTrusted* GetTrustedInterface();
55 55
56 virtual ::ppapi::thunk::PPB_ImageData_API* AsImageData_API(); 56 virtual ::ppapi::thunk::PPB_ImageData_API* AsPPB_ImageData_API();
57 57
58 // Resource overrides. 58 // Resource overrides.
59 virtual PPB_ImageData_Impl* AsPPB_ImageData_Impl(); 59 virtual PPB_ImageData_Impl* AsPPB_ImageData_Impl();
60 60
61 // PPB_ImageData_API implementation. 61 // PPB_ImageData_API implementation.
62 virtual PP_Bool Describe(PP_ImageDataDesc* desc); 62 virtual PP_Bool Describe(PP_ImageDataDesc* desc);
63 virtual void* Map(); 63 virtual void* Map();
64 virtual void Unmap(); 64 virtual void Unmap();
65 65
66 // PPB_ImageDataTrusted implementation. 66 // PPB_ImageDataTrusted implementation.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bool is_valid_; 124 bool is_valid_;
125 bool needs_unmap_; 125 bool needs_unmap_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(ImageDataAutoMapper); 127 DISALLOW_COPY_AND_ASSIGN(ImageDataAutoMapper);
128 }; 128 };
129 129
130 } // namespace ppapi 130 } // namespace ppapi
131 } // namespace webkit 131 } // namespace webkit
132 132
133 #endif // WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ 133 #endif // WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_graphics_2d_impl.cc ('k') | webkit/plugins/ppapi/ppb_image_data_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698