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

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

Issue 9360045: Rename PPB_Font to PPB_BrowserFont_Trusted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/plugin_module.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/host_globals.h" 5 #include "webkit/plugins/ppapi/host_globals.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "ppapi/shared_impl/api_id.h" 12 #include "ppapi/shared_impl/api_id.h"
13 #include "ppapi/shared_impl/function_group_base.h" 13 #include "ppapi/shared_impl/function_group_base.h"
14 #include "ppapi/shared_impl/id_assignment.h" 14 #include "ppapi/shared_impl/id_assignment.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h"
21 #include "webkit/plugins/ppapi/plugin_module.h" 21 #include "webkit/plugins/ppapi/plugin_module.h"
22 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 22 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
23 #include "webkit/plugins/ppapi/ppb_cursor_control_impl.h" 23 #include "webkit/plugins/ppapi/ppb_cursor_control_impl.h"
24 #include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h" 24 #include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h"
25 #include "webkit/plugins/ppapi/ppb_font_impl.h"
26 #include "webkit/plugins/ppapi/ppb_text_input_impl.h" 25 #include "webkit/plugins/ppapi/ppb_text_input_impl.h"
27 #include "webkit/plugins/ppapi/resource_creation_impl.h" 26 #include "webkit/plugins/ppapi/resource_creation_impl.h"
28 27
29 using ppapi::CheckIdType; 28 using ppapi::CheckIdType;
30 using ppapi::MakeTypedId; 29 using ppapi::MakeTypedId;
31 using ppapi::PPIdType; 30 using ppapi::PPIdType;
32 using WebKit::WebConsoleMessage; 31 using WebKit::WebConsoleMessage;
33 using WebKit::WebString; 32 using WebKit::WebString;
34 33
35 namespace webkit { 34 namespace webkit {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 137
139 scoped_ptr< ::ppapi::FunctionGroupBase >& proxy = 138 scoped_ptr< ::ppapi::FunctionGroupBase >& proxy =
140 instance_map_[pp_instance]->function_proxies[id]; 139 instance_map_[pp_instance]->function_proxies[id];
141 if (proxy.get()) 140 if (proxy.get())
142 return proxy.get(); 141 return proxy.get();
143 142
144 switch (id) { 143 switch (id) {
145 case ::ppapi::API_ID_PPB_CURSORCONTROL: 144 case ::ppapi::API_ID_PPB_CURSORCONTROL:
146 proxy.reset(new PPB_CursorControl_Impl(instance)); 145 proxy.reset(new PPB_CursorControl_Impl(instance));
147 break; 146 break;
148 case ::ppapi::API_ID_PPB_FONT:
149 proxy.reset(new PPB_Font_FunctionImpl(instance));
150 break;
151 case ::ppapi::API_ID_PPB_TEXT_INPUT: 147 case ::ppapi::API_ID_PPB_TEXT_INPUT:
152 proxy.reset(new PPB_TextInput_Impl(instance)); 148 proxy.reset(new PPB_TextInput_Impl(instance));
153 break; 149 break;
154 case ::ppapi::API_ID_RESOURCE_CREATION: 150 case ::ppapi::API_ID_RESOURCE_CREATION:
155 proxy.reset(new ResourceCreationImpl(instance)); 151 proxy.reset(new ResourceCreationImpl(instance));
156 break; 152 break;
157 case ::ppapi::API_ID_PPB_FLASH_CLIPBOARD: 153 case ::ppapi::API_ID_PPB_FLASH_CLIPBOARD:
158 proxy.reset(new PPB_Flash_Clipboard_Impl(instance)); 154 proxy.reset(new PPB_Flash_Clipboard_Impl(instance));
159 break; 155 break;
160 default: 156 default:
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 return NULL; 290 return NULL;
295 return found->second->instance; 291 return found->second->instance;
296 } 292 }
297 293
298 bool HostGlobals::IsHostGlobals() const { 294 bool HostGlobals::IsHostGlobals() const {
299 return true; 295 return true;
300 } 296 }
301 297
302 } // namespace ppapi 298 } // namespace ppapi
303 } // namespace webkit 299 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698