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

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

Issue 7587011: Remove the old type system for proxied resources. These were no longer being used. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: New one Created 9 years, 4 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
« no previous file with comments | « ppapi/proxy/ppb_buffer_proxy.cc ('k') | ppapi/proxy/ppb_font_proxy.cc » ('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 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"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // 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
50 // resource should be 0. However, various code assumes the instance in the 50 // resource should be 0. However, various code assumes the instance in the
51 // host resource is valid (this is how resources are associated with 51 // host resource is valid (this is how resources are associated with
52 // instances), so that should be set. 52 // instances), so that should be set.
53 Font(const HostResource& resource, const PP_FontDescription_Dev& desc); 53 Font(const HostResource& resource, const PP_FontDescription_Dev& desc);
54 virtual ~Font(); 54 virtual ~Font();
55 55
56 // ResourceObjectBase. 56 // ResourceObjectBase.
57 virtual ppapi::thunk::PPB_Font_API* AsPPB_Font_API() OVERRIDE; 57 virtual ppapi::thunk::PPB_Font_API* AsPPB_Font_API() OVERRIDE;
58 58
59 // PluginResource overrides.
60 virtual Font* AsFont() OVERRIDE;
61
62 // PPB_Font_API implementation. 59 // PPB_Font_API implementation.
63 virtual PP_Bool Describe(PP_FontDescription_Dev* description, 60 virtual PP_Bool Describe(PP_FontDescription_Dev* description,
64 PP_FontMetrics_Dev* metrics) OVERRIDE; 61 PP_FontMetrics_Dev* metrics) OVERRIDE;
65 virtual PP_Bool DrawTextAt(PP_Resource image_data, 62 virtual PP_Bool DrawTextAt(PP_Resource image_data,
66 const PP_TextRun_Dev* text, 63 const PP_TextRun_Dev* text,
67 const PP_Point* position, 64 const PP_Point* position,
68 uint32_t color, 65 uint32_t color,
69 const PP_Rect* clip, 66 const PP_Rect* clip,
70 PP_Bool image_data_is_opaque) OVERRIDE; 67 PP_Bool image_data_is_opaque) OVERRIDE;
71 virtual int32_t MeasureText(const PP_TextRun_Dev* text) OVERRIDE; 68 virtual int32_t MeasureText(const PP_TextRun_Dev* text) OVERRIDE;
(...skipping 11 matching lines...) Expand all
83 80
84 scoped_ptr<ppapi::WebKitForwarding::Font> font_forwarding_; 81 scoped_ptr<ppapi::WebKitForwarding::Font> font_forwarding_;
85 82
86 DISALLOW_COPY_AND_ASSIGN(Font); 83 DISALLOW_COPY_AND_ASSIGN(Font);
87 }; 84 };
88 85
89 } // namespace proxy 86 } // namespace proxy
90 } // namespace pp 87 } // namespace pp
91 88
92 #endif // PPAPI_PROXY_PPB_FONT_PROXY_H_ 89 #endif // PPAPI_PROXY_PPB_FONT_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_buffer_proxy.cc ('k') | ppapi/proxy/ppb_font_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698