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

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

Issue 7044012: Support getting the font list in Pepper. This currently only works out of (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 PPAPI_PROXY_PPB_FONT_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_FONT_PROXY_H_
6 #define PPAPI_PROXY_PPB_FONT_PROXY_H_ 6 #define PPAPI_PROXY_PPB_FONT_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "ppapi/proxy/host_resource.h" 10 #include "ppapi/proxy/host_resource.h"
11 #include "ppapi/proxy/interface_proxy.h" 11 #include "ppapi/proxy/interface_proxy.h"
12 #include "ppapi/proxy/plugin_resource.h" 12 #include "ppapi/proxy/plugin_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 struct PPB_Font_Dev; 16 struct PPB_Font_Dev;
17 17
18 namespace pp { 18 namespace pp {
19 namespace proxy { 19 namespace proxy {
20 20
21 class SerializedVarReceiveInput; 21 class SerializedVarReturnValue;
22 22
23 class PPB_Font_Proxy : public InterfaceProxy { 23 class PPB_Font_Proxy : public ::ppapi::FunctionGroupBase,
24 public ::ppapi::thunk::PPB_Font_FunctionAPI,
25 public InterfaceProxy {
24 public: 26 public:
25 PPB_Font_Proxy(Dispatcher* dispatcher, const void* target_interface); 27 PPB_Font_Proxy(Dispatcher* dispatcher, const void* target_interface);
26 virtual ~PPB_Font_Proxy(); 28 virtual ~PPB_Font_Proxy();
27 29
28 static const Info* GetInfo(); 30 static const Info* GetInfo();
29 31
32 // FunctionGroupBase overrides.
33 virtual ::ppapi::thunk::PPB_Font_FunctionAPI* AsFont_FunctionAPI() OVERRIDE;
34
35 // PPB_Font_FunctionAPI implementation.
36 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE;
37
30 // InterfaceProxy implementation. 38 // InterfaceProxy implementation.
31 virtual bool OnMessageReceived(const IPC::Message& msg); 39 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
32 40
33 private: 41 private:
34 DISALLOW_COPY_AND_ASSIGN(PPB_Font_Proxy); 42 DISALLOW_COPY_AND_ASSIGN(PPB_Font_Proxy);
35 }; 43 };
36 44
37 class Font : public PluginResource, 45 class Font : public PluginResource,
38 public ppapi::thunk::PPB_Font_API { 46 public ppapi::thunk::PPB_Font_API {
39 public: 47 public:
40 // Note that there isn't a "real" resource in the renderer backing a font, 48 // Note that there isn't a "real" resource in the renderer backing a font,
41 // it lives entirely in the plugin process. So the resource ID in the host 49 // it lives entirely in the plugin process. So the resource ID in the host
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 83
76 scoped_ptr<ppapi::WebKitForwarding::Font> font_forwarding_; 84 scoped_ptr<ppapi::WebKitForwarding::Font> font_forwarding_;
77 85
78 DISALLOW_COPY_AND_ASSIGN(Font); 86 DISALLOW_COPY_AND_ASSIGN(Font);
79 }; 87 };
80 88
81 } // namespace proxy 89 } // namespace proxy
82 } // namespace pp 90 } // namespace pp
83 91
84 #endif // PPAPI_PROXY_PPB_FONT_PROXY_H_ 92 #endif // PPAPI_PROXY_PPB_FONT_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698