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

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

Issue 7006022: Revert 87415 - Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://svn.chromium.org/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
« no previous file with comments | « webkit/plugins/ppapi/ppb_font_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 #include "webkit/plugins/ppapi/ppb_font_impl.h" 5 #include "webkit/plugins/ppapi/ppb_font_impl.h"
6 6
7 #include "ppapi/c/dev/ppb_font_dev.h" 7 #include "ppapi/c/dev/ppb_font_dev.h"
8 #include "ppapi/shared_impl/ppapi_preferences.h" 8 #include "ppapi/shared_impl/ppapi_preferences.h"
9 #include "ppapi/thunk/thunk.h" 9 #include "ppapi/thunk/thunk.h"
10 #include "webkit/plugins/ppapi/common.h" 10 #include "webkit/plugins/ppapi/common.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 WebKitForwarding::Font* result = NULL; 45 WebKitForwarding::Font* result = NULL;
46 instance->module()->GetWebKitForwarding()->CreateFontForwarding( 46 instance->module()->GetWebKitForwarding()->CreateFontForwarding(
47 NULL, desc, face_name ? face_name->value() : std::string(), 47 NULL, desc, face_name ? face_name->value() : std::string(),
48 instance->delegate()->GetPreferences(), &result); 48 instance->delegate()->GetPreferences(), &result);
49 font_forwarding_.reset(result); 49 font_forwarding_.reset(result);
50 } 50 }
51 51
52 PPB_Font_Impl::~PPB_Font_Impl() { 52 PPB_Font_Impl::~PPB_Font_Impl() {
53 } 53 }
54 54
55 ::ppapi::thunk::PPB_Font_API* PPB_Font_Impl::AsPPB_Font_API() { 55 ::ppapi::thunk::PPB_Font_API* PPB_Font_Impl::AsFont_API() {
56 return this; 56 return this;
57 } 57 }
58 58
59 PPB_Font_Impl* PPB_Font_Impl::AsPPB_Font_Impl() { 59 PPB_Font_Impl* PPB_Font_Impl::AsPPB_Font_Impl() {
60 return this; 60 return this;
61 } 61 }
62 62
63 PP_Bool PPB_Font_Impl::Describe(PP_FontDescription_Dev* description, 63 PP_Bool PPB_Font_Impl::Describe(PP_FontDescription_Dev* description,
64 PP_FontMetrics_Dev* metrics) { 64 PP_FontMetrics_Dev* metrics) {
65 std::string face; 65 std::string face;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 return this; 139 return this;
140 } 140 }
141 141
142 PP_Var PPB_Font_FunctionImpl::GetFontFamilies(PP_Instance instance) { 142 PP_Var PPB_Font_FunctionImpl::GetFontFamilies(PP_Instance instance) {
143 return PP_MakeUndefined(); 143 return PP_MakeUndefined();
144 } 144 }
145 145
146 } // namespace ppapi 146 } // namespace ppapi
147 } // namespace webkit 147 } // namespace webkit
148 148
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_font_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