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

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

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 #include "webkit/plugins/ppapi/plugin_module.h" 5 #include "webkit/plugins/ppapi/plugin_module.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 return PPB_Flash_Impl::GetInterface(); 277 return PPB_Flash_Impl::GetInterface();
278 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) 278 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0)
279 return PPB_Flash_Clipboard_Impl::GetInterface(); 279 return PPB_Flash_Clipboard_Impl::GetInterface();
280 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) 280 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0)
281 return PPB_Flash_File_FileRef_Impl::GetInterface(); 281 return PPB_Flash_File_FileRef_Impl::GetInterface();
282 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) 282 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0)
283 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); 283 return PPB_Flash_File_ModuleLocal_Impl::GetInterface();
284 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) 284 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0)
285 return PPB_Flash_Menu_Impl::GetInterface(); 285 return PPB_Flash_Menu_Impl::GetInterface();
286 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) 286 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0)
287 return PPB_Font_Impl::GetInterface(); 287 return ::ppapi::thunk::GetPPB_Font_Thunk();
288 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) 288 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0)
289 return PluginInstance::GetFullscreenInterface(); 289 return PluginInstance::GetFullscreenInterface();
290 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0) 290 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0)
291 return PPB_Graphics2D_Impl::GetInterface(); 291 return PPB_Graphics2D_Impl::GetInterface();
292 if (strcmp(name, PPB_IMAGEDATA_INTERFACE) == 0) 292 if (strcmp(name, PPB_IMAGEDATA_INTERFACE) == 0)
293 return PPB_ImageData_Impl::GetInterface(); 293 return PPB_ImageData_Impl::GetInterface();
294 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) 294 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0)
295 return PPB_ImageData_Impl::GetTrustedInterface(); 295 return PPB_ImageData_Impl::GetTrustedInterface();
296 if (strcmp(name, PPB_INSTANCE_INTERFACE) == 0) 296 if (strcmp(name, PPB_INSTANCE_INTERFACE) == 0)
297 return PluginInstance::GetInterface(); 297 return PluginInstance::GetInterface();
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); 577 int retval = entry_points_.initialize_module(pp_module(), &GetInterface);
578 if (retval != 0) { 578 if (retval != 0) {
579 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 579 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
580 return false; 580 return false;
581 } 581 }
582 return true; 582 return true;
583 } 583 }
584 584
585 } // namespace ppapi 585 } // namespace ppapi
586 } // namespace webkit 586 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698