OLD | NEW |
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 Loading... |
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::AsFont_API() { | 55 ::ppapi::thunk::PPB_Font_API* PPB_Font_Impl::AsPPB_Font_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 Loading... |
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 |
OLD | NEW |