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

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

Issue 8989006: Update PPAPI IDL generator to define versioned structs, and unversioned typedef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase une autre fois. Created 9 years 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/ppapi_plugin_instance.h" 5 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 PPP_INPUT_EVENT_INTERFACE)); 921 PPP_INPUT_EVENT_INTERFACE));
922 } 922 }
923 return !!plugin_input_event_interface_; 923 return !!plugin_input_event_interface_;
924 } 924 }
925 925
926 bool PluginInstance::LoadMessagingInterface() { 926 bool PluginInstance::LoadMessagingInterface() {
927 if (!checked_for_plugin_messaging_interface_) { 927 if (!checked_for_plugin_messaging_interface_) {
928 checked_for_plugin_messaging_interface_ = true; 928 checked_for_plugin_messaging_interface_ = true;
929 plugin_messaging_interface_ = 929 plugin_messaging_interface_ =
930 static_cast<const PPP_Messaging*>(module_->GetPluginInterface( 930 static_cast<const PPP_Messaging*>(module_->GetPluginInterface(
931 PPP_MESSAGING_INTERFACE_1_0)); 931 PPP_MESSAGING_INTERFACE));
932 } 932 }
933 return !!plugin_messaging_interface_; 933 return !!plugin_messaging_interface_;
934 } 934 }
935 935
936 bool PluginInstance::LoadMouseLockInterface() { 936 bool PluginInstance::LoadMouseLockInterface() {
937 if (!plugin_mouse_lock_interface_) { 937 if (!plugin_mouse_lock_interface_) {
938 plugin_mouse_lock_interface_ = 938 plugin_mouse_lock_interface_ =
939 static_cast<const PPP_MouseLock*>(module_->GetPluginInterface( 939 static_cast<const PPP_MouseLock*>(module_->GetPluginInterface(
940 PPP_MOUSELOCK_INTERFACE)); 940 PPP_MOUSELOCK_INTERFACE));
941 } 941 }
942 942
943 return !!plugin_mouse_lock_interface_; 943 return !!plugin_mouse_lock_interface_;
944 } 944 }
945 945
946 bool PluginInstance::LoadPdfInterface() { 946 bool PluginInstance::LoadPdfInterface() {
947 if (!plugin_pdf_interface_) { 947 if (!plugin_pdf_interface_) {
948 plugin_pdf_interface_ = 948 plugin_pdf_interface_ =
949 static_cast<const PPP_Pdf*>(module_->GetPluginInterface( 949 static_cast<const PPP_Pdf_1*>(module_->GetPluginInterface(
950 PPP_PDF_INTERFACE)); 950 PPP_PDF_INTERFACE_1));
951 } 951 }
952 952
953 return !!plugin_pdf_interface_; 953 return !!plugin_pdf_interface_;
954 } 954 }
955 955
956 bool PluginInstance::LoadPrintInterface() { 956 bool PluginInstance::LoadPrintInterface() {
957 if (!plugin_print_interface_) { 957 if (!plugin_print_interface_) {
958 plugin_print_interface_ = static_cast<const PPP_Printing_Dev*>( 958 plugin_print_interface_ = static_cast<const PPP_Printing_Dev*>(
959 module_->GetPluginInterface(PPP_PRINTING_DEV_INTERFACE)); 959 module_->GetPluginInterface(PPP_PRINTING_DEV_INTERFACE));
960 } 960 }
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
2001 screen_size_for_fullscreen_ = gfx::Size(); 2001 screen_size_for_fullscreen_ = gfx::Size();
2002 WebElement element = container_->element(); 2002 WebElement element = container_->element();
2003 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); 2003 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_);
2004 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); 2004 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_);
2005 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); 2005 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_);
2006 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); 2006 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_);
2007 } 2007 }
2008 2008
2009 } // namespace ppapi 2009 } // namespace ppapi
2010 } // namespace webkit 2010 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698