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

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

Issue 8468026: Cleanup: Remove unneeded forward declarations in webkit/plugins/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_io_impl.h ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.h » ('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) 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_FONT_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FONT_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/dev/ppb_font_dev.h" 10 #include "ppapi/c/dev/ppb_font_dev.h"
11 #include "ppapi/shared_impl/function_group_base.h" 11 #include "ppapi/shared_impl/function_group_base.h"
12 #include "ppapi/shared_impl/resource.h" 12 #include "ppapi/shared_impl/resource.h"
13 #include "ppapi/shared_impl/webkit_forwarding.h" 13 #include "ppapi/shared_impl/webkit_forwarding.h"
14 #include "ppapi/thunk/ppb_font_api.h" 14 #include "ppapi/thunk/ppb_font_api.h"
15 15
16 namespace WebKit {
17 class WebFont;
18 }
19
20 namespace webkit { 16 namespace webkit {
21 namespace ppapi { 17 namespace ppapi {
22 18
23 class PluginInstance; 19 class PluginInstance;
24 20
25 class PPB_Font_Impl : public ::ppapi::Resource, 21 class PPB_Font_Impl : public ::ppapi::Resource,
26 public ::ppapi::thunk::PPB_Font_API { 22 public ::ppapi::thunk::PPB_Font_API {
27 public: 23 public:
28 virtual ~PPB_Font_Impl(); 24 virtual ~PPB_Font_Impl();
29 25
(...skipping 22 matching lines...) Expand all
52 PPB_Font_Impl(PP_Instance instance, const PP_FontDescription_Dev& desc); 48 PPB_Font_Impl(PP_Instance instance, const PP_FontDescription_Dev& desc);
53 49
54 scoped_ptr< ::ppapi::WebKitForwarding::Font> font_forwarding_; 50 scoped_ptr< ::ppapi::WebKitForwarding::Font> font_forwarding_;
55 51
56 DISALLOW_COPY_AND_ASSIGN(PPB_Font_Impl); 52 DISALLOW_COPY_AND_ASSIGN(PPB_Font_Impl);
57 }; 53 };
58 54
59 class PPB_Font_FunctionImpl : public ::ppapi::FunctionGroupBase, 55 class PPB_Font_FunctionImpl : public ::ppapi::FunctionGroupBase,
60 public ::ppapi::thunk::PPB_Font_FunctionAPI { 56 public ::ppapi::thunk::PPB_Font_FunctionAPI {
61 public: 57 public:
62 PPB_Font_FunctionImpl(PluginInstance* instance); 58 explicit PPB_Font_FunctionImpl(PluginInstance* instance);
63 virtual ~PPB_Font_FunctionImpl(); 59 virtual ~PPB_Font_FunctionImpl();
64 60
65 // FunctionGroupBase overrides. 61 // FunctionGroupBase overrides.
66 virtual ::ppapi::thunk::PPB_Font_FunctionAPI* AsFont_FunctionAPI(); 62 virtual ::ppapi::thunk::PPB_Font_FunctionAPI* AsFont_FunctionAPI();
67 63
68 // PPB_Font_FunctionAPI implementation. 64 // PPB_Font_FunctionAPI implementation.
69 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE; 65 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE;
70 66
71 private: 67 private:
72 PluginInstance* instance_; 68 PluginInstance* instance_;
73 69
74 DISALLOW_COPY_AND_ASSIGN(PPB_Font_FunctionImpl); 70 DISALLOW_COPY_AND_ASSIGN(PPB_Font_FunctionImpl);
75 }; 71 };
76 72
77 } // namespace ppapi 73 } // namespace ppapi
78 } // namespace webkit 74 } // namespace webkit
79 75
80 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_ 76 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FONT_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_io_impl.h ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698