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

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

Issue 11146009: Mac Flash: Fix scaling bitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 8 years, 2 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 WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 15 matching lines...) Expand all
26 namespace ppapi { 26 namespace ppapi {
27 27
28 class PPB_ImageData_Impl; 28 class PPB_ImageData_Impl;
29 class PluginInstance; 29 class PluginInstance;
30 30
31 class PPB_Graphics2D_Impl : public ::ppapi::Resource, 31 class PPB_Graphics2D_Impl : public ::ppapi::Resource,
32 public ::ppapi::thunk::PPB_Graphics2D_API { 32 public ::ppapi::thunk::PPB_Graphics2D_API {
33 public: 33 public:
34 virtual ~PPB_Graphics2D_Impl(); 34 virtual ~PPB_Graphics2D_Impl();
35 35
36 static PP_Resource Create(PP_Instance instance, 36 WEBKIT_PLUGINS_EXPORT static PP_Resource Create(PP_Instance instance,
37 const PP_Size& size, 37 const PP_Size& size,
38 PP_Bool is_always_opaque); 38 PP_Bool is_always_opaque);
39 39
40 bool is_always_opaque() const { return is_always_opaque_; } 40 bool is_always_opaque() const { return is_always_opaque_; }
41 41
42 // Resource overrides. 42 // Resource overrides.
43 virtual ::ppapi::thunk::PPB_Graphics2D_API* AsPPB_Graphics2D_API(); 43 virtual ::ppapi::thunk::PPB_Graphics2D_API* AsPPB_Graphics2D_API();
44 virtual void LastPluginRefWasDeleted() OVERRIDE; 44 virtual void LastPluginRefWasDeleted() OVERRIDE;
45 45
46 // PPB_Graphics2D functions. 46 // PPB_Graphics2D functions.
47 virtual PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque) OVERRIDE; 47 virtual PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque) OVERRIDE;
48 virtual void PaintImageData(PP_Resource image_data, 48 virtual void PaintImageData(PP_Resource image_data,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 base::WeakPtrFactory<PPB_Graphics2D_Impl> weak_ptr_factory_; 207 base::WeakPtrFactory<PPB_Graphics2D_Impl> weak_ptr_factory_;
208 208
209 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Impl); 209 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Impl);
210 }; 210 };
211 211
212 } // namespace ppapi 212 } // namespace ppapi
213 } // namespace webkit 213 } // namespace webkit
214 214
215 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_ 215 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_2D_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_unittest.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698