| 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/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 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 949 PPP_INPUT_EVENT_INTERFACE)); | 949 PPP_INPUT_EVENT_INTERFACE)); |
| 950 } | 950 } |
| 951 return !!plugin_input_event_interface_; | 951 return !!plugin_input_event_interface_; |
| 952 } | 952 } |
| 953 | 953 |
| 954 bool PluginInstance::LoadMessagingInterface() { | 954 bool PluginInstance::LoadMessagingInterface() { |
| 955 if (!checked_for_plugin_messaging_interface_) { | 955 if (!checked_for_plugin_messaging_interface_) { |
| 956 checked_for_plugin_messaging_interface_ = true; | 956 checked_for_plugin_messaging_interface_ = true; |
| 957 plugin_messaging_interface_ = | 957 plugin_messaging_interface_ = |
| 958 static_cast<const PPP_Messaging*>(module_->GetPluginInterface( | 958 static_cast<const PPP_Messaging*>(module_->GetPluginInterface( |
| 959 PPP_MESSAGING_INTERFACE_1_0)); | 959 PPP_MESSAGING_INTERFACE)); |
| 960 } | 960 } |
| 961 return !!plugin_messaging_interface_; | 961 return !!plugin_messaging_interface_; |
| 962 } | 962 } |
| 963 | 963 |
| 964 bool PluginInstance::LoadMouseLockInterface() { | 964 bool PluginInstance::LoadMouseLockInterface() { |
| 965 if (!plugin_mouse_lock_interface_) { | 965 if (!plugin_mouse_lock_interface_) { |
| 966 plugin_mouse_lock_interface_ = | 966 plugin_mouse_lock_interface_ = |
| 967 static_cast<const PPP_MouseLock*>(module_->GetPluginInterface( | 967 static_cast<const PPP_MouseLock*>(module_->GetPluginInterface( |
| 968 PPP_MOUSELOCK_INTERFACE)); | 968 PPP_MOUSELOCK_INTERFACE)); |
| 969 } | 969 } |
| 970 | 970 |
| 971 return !!plugin_mouse_lock_interface_; | 971 return !!plugin_mouse_lock_interface_; |
| 972 } | 972 } |
| 973 | 973 |
| 974 bool PluginInstance::LoadPdfInterface() { | 974 bool PluginInstance::LoadPdfInterface() { |
| 975 if (!plugin_pdf_interface_) { | 975 if (!plugin_pdf_interface_) { |
| 976 plugin_pdf_interface_ = | 976 plugin_pdf_interface_ = |
| 977 static_cast<const PPP_Pdf*>(module_->GetPluginInterface( | 977 static_cast<const PPP_Pdf_1*>(module_->GetPluginInterface( |
| 978 PPP_PDF_INTERFACE)); | 978 PPP_PDF_INTERFACE_1)); |
| 979 } | 979 } |
| 980 | 980 |
| 981 return !!plugin_pdf_interface_; | 981 return !!plugin_pdf_interface_; |
| 982 } | 982 } |
| 983 | 983 |
| 984 bool PluginInstance::LoadPrintInterface() { | 984 bool PluginInstance::LoadPrintInterface() { |
| 985 if (!plugin_print_interface_) { | 985 if (!plugin_print_interface_) { |
| 986 plugin_print_interface_ = static_cast<const PPP_Printing_Dev*>( | 986 plugin_print_interface_ = static_cast<const PPP_Printing_Dev*>( |
| 987 module_->GetPluginInterface(PPP_PRINTING_DEV_INTERFACE)); | 987 module_->GetPluginInterface(PPP_PRINTING_DEV_INTERFACE)); |
| 988 } | 988 } |
| (...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2054 screen_size_for_fullscreen_ = gfx::Size(); | 2054 screen_size_for_fullscreen_ = gfx::Size(); |
| 2055 WebElement element = container_->element(); | 2055 WebElement element = container_->element(); |
| 2056 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); | 2056 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); |
| 2057 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); | 2057 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); |
| 2058 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); | 2058 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); |
| 2059 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); | 2059 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); |
| 2060 } | 2060 } |
| 2061 | 2061 |
| 2062 } // namespace ppapi | 2062 } // namespace ppapi |
| 2063 } // namespace webkit | 2063 } // namespace webkit |
| OLD | NEW |