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

Side by Side Diff: webkit/glue/plugins/pepper_plugin_module.cc

Issue 3352019: Add fullscreen support to Pepper. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: git cl tree Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/glue/plugins/pepper_plugin_module.h" 5 #include "webkit/glue/plugins/pepper_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"
11 #include "base/message_loop_proxy.h" 11 #include "base/message_loop_proxy.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "third_party/ppapi/c/dev/ppb_buffer_dev.h" 15 #include "third_party/ppapi/c/dev/ppb_buffer_dev.h"
16 #include "third_party/ppapi/c/dev/ppb_char_set_dev.h" 16 #include "third_party/ppapi/c/dev/ppb_char_set_dev.h"
17 #include "third_party/ppapi/c/dev/ppb_cursor_control_dev.h" 17 #include "third_party/ppapi/c/dev/ppb_cursor_control_dev.h"
18 #include "third_party/ppapi/c/dev/ppb_directory_reader_dev.h" 18 #include "third_party/ppapi/c/dev/ppb_directory_reader_dev.h"
19 #include "third_party/ppapi/c/dev/ppb_file_io_dev.h" 19 #include "third_party/ppapi/c/dev/ppb_file_io_dev.h"
20 #include "third_party/ppapi/c/dev/ppb_file_io_trusted_dev.h" 20 #include "third_party/ppapi/c/dev/ppb_file_io_trusted_dev.h"
21 #include "third_party/ppapi/c/dev/ppb_file_system_dev.h" 21 #include "third_party/ppapi/c/dev/ppb_file_system_dev.h"
22 #include "third_party/ppapi/c/dev/ppb_find_dev.h" 22 #include "third_party/ppapi/c/dev/ppb_find_dev.h"
23 #include "third_party/ppapi/c/dev/ppb_font_dev.h" 23 #include "third_party/ppapi/c/dev/ppb_font_dev.h"
24 #include "third_party/ppapi/c/dev/ppb_fullscreen_dev.h"
24 #include "third_party/ppapi/c/dev/ppb_graphics_3d_dev.h" 25 #include "third_party/ppapi/c/dev/ppb_graphics_3d_dev.h"
25 #include "third_party/ppapi/c/dev/ppb_opengles_dev.h" 26 #include "third_party/ppapi/c/dev/ppb_opengles_dev.h"
26 #include "third_party/ppapi/c/dev/ppb_scrollbar_dev.h" 27 #include "third_party/ppapi/c/dev/ppb_scrollbar_dev.h"
27 #include "third_party/ppapi/c/dev/ppb_testing_dev.h" 28 #include "third_party/ppapi/c/dev/ppb_testing_dev.h"
28 #include "third_party/ppapi/c/dev/ppb_url_loader_dev.h" 29 #include "third_party/ppapi/c/dev/ppb_url_loader_dev.h"
29 #include "third_party/ppapi/c/dev/ppb_url_request_info_dev.h" 30 #include "third_party/ppapi/c/dev/ppb_url_request_info_dev.h"
30 #include "third_party/ppapi/c/dev/ppb_url_response_info_dev.h" 31 #include "third_party/ppapi/c/dev/ppb_url_response_info_dev.h"
31 #include "third_party/ppapi/c/dev/ppb_url_util_dev.h" 32 #include "third_party/ppapi/c/dev/ppb_url_util_dev.h"
32 #include "third_party/ppapi/c/dev/ppb_video_decoder_dev.h" 33 #include "third_party/ppapi/c/dev/ppb_video_decoder_dev.h"
33 #include "third_party/ppapi/c/dev/ppb_widget_dev.h" 34 #include "third_party/ppapi/c/dev/ppb_widget_dev.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 if (strcmp(name, PPB_DIRECTORYREADER_DEV_INTERFACE) == 0) 221 if (strcmp(name, PPB_DIRECTORYREADER_DEV_INTERFACE) == 0)
221 return DirectoryReader::GetInterface(); 222 return DirectoryReader::GetInterface();
222 if (strcmp(name, PPB_WIDGET_DEV_INTERFACE) == 0) 223 if (strcmp(name, PPB_WIDGET_DEV_INTERFACE) == 0)
223 return Widget::GetInterface(); 224 return Widget::GetInterface();
224 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE) == 0) 225 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE) == 0)
225 return Scrollbar::GetInterface(); 226 return Scrollbar::GetInterface();
226 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) 227 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0)
227 return Font::GetInterface(); 228 return Font::GetInterface();
228 if (strcmp(name, PPB_FIND_DEV_INTERFACE) == 0) 229 if (strcmp(name, PPB_FIND_DEV_INTERFACE) == 0)
229 return PluginInstance::GetFindInterface(); 230 return PluginInstance::GetFindInterface();
231 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0)
232 return PluginInstance::GetFullscreenInterface();
230 if (strcmp(name, PPB_URLUTIL_DEV_INTERFACE) == 0) 233 if (strcmp(name, PPB_URLUTIL_DEV_INTERFACE) == 0)
231 return UrlUtil::GetInterface(); 234 return UrlUtil::GetInterface();
232 if (strcmp(name, PPB_PRIVATE_INTERFACE) == 0) 235 if (strcmp(name, PPB_PRIVATE_INTERFACE) == 0)
233 return Private::GetInterface(); 236 return Private::GetInterface();
234 if (strcmp(name, PPB_FILECHOOSER_DEV_INTERFACE) == 0) 237 if (strcmp(name, PPB_FILECHOOSER_DEV_INTERFACE) == 0)
235 return FileChooser::GetInterface(); 238 return FileChooser::GetInterface();
236 if (strcmp(name, PPB_VIDEODECODER_DEV_INTERFACE) == 0) 239 if (strcmp(name, PPB_VIDEODECODER_DEV_INTERFACE) == 0)
237 return VideoDecoder::GetInterface(); 240 return VideoDecoder::GetInterface();
238 if (strcmp(name, PPB_CHAR_SET_DEV_INTERFACE) == 0) 241 if (strcmp(name, PPB_CHAR_SET_DEV_INTERFACE) == 0)
239 return CharSet::GetInterface(); 242 return CharSet::GetInterface();
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 live_plugin_objects_.insert(plugin_object); 460 live_plugin_objects_.insert(plugin_object);
458 } 461 }
459 462
460 void PluginModule::RemovePluginObject(PluginObject* plugin_object) { 463 void PluginModule::RemovePluginObject(PluginObject* plugin_object) {
461 // Don't actually verify that the object is in the set since during module 464 // Don't actually verify that the object is in the set since during module
462 // deletion we'll be in the process of freeing them. 465 // deletion we'll be in the process of freeing them.
463 live_plugin_objects_.erase(plugin_object); 466 live_plugin_objects_.erase(plugin_object);
464 } 467 }
465 468
466 } // namespace pepper 469 } // namespace pepper
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_plugin_instance.cc ('k') | webkit/glue/plugins/pepper_webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698