| OLD | NEW |
| 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/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 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2356 PP_Bool PluginInstance::GetScreenSize(PP_Instance instance, PP_Size* size) { | 2356 PP_Bool PluginInstance::GetScreenSize(PP_Instance instance, PP_Size* size) { |
| 2357 gfx::Size screen_size = delegate()->GetScreenSize(); | 2357 gfx::Size screen_size = delegate()->GetScreenSize(); |
| 2358 *size = PP_MakeSize(screen_size.width(), screen_size.height()); | 2358 *size = PP_MakeSize(screen_size.width(), screen_size.height()); |
| 2359 return PP_TRUE; | 2359 return PP_TRUE; |
| 2360 } | 2360 } |
| 2361 | 2361 |
| 2362 ::ppapi::thunk::PPB_Flash_API* PluginInstance::GetFlashAPI() { | 2362 ::ppapi::thunk::PPB_Flash_API* PluginInstance::GetFlashAPI() { |
| 2363 return &flash_impl_; | 2363 return &flash_impl_; |
| 2364 } | 2364 } |
| 2365 | 2365 |
| 2366 ::ppapi::thunk::PPB_Flash_Functions_API* |
| 2367 PluginInstance::GetFlashFunctionsAPI(PP_Instance /*instance*/) { |
| 2368 NOTIMPLEMENTED(); |
| 2369 return NULL; |
| 2370 } |
| 2371 |
| 2366 ::ppapi::thunk::PPB_Gamepad_API* PluginInstance::GetGamepadAPI( | 2372 ::ppapi::thunk::PPB_Gamepad_API* PluginInstance::GetGamepadAPI( |
| 2367 PP_Instance /* instance */) { | 2373 PP_Instance /* instance */) { |
| 2368 return &gamepad_impl_; | 2374 return &gamepad_impl_; |
| 2369 } | 2375 } |
| 2370 | 2376 |
| 2371 int32_t PluginInstance::RequestInputEvents(PP_Instance instance, | 2377 int32_t PluginInstance::RequestInputEvents(PP_Instance instance, |
| 2372 uint32_t event_classes) { | 2378 uint32_t event_classes) { |
| 2373 input_event_mask_ |= event_classes; | 2379 input_event_mask_ |= event_classes; |
| 2374 filtered_input_event_mask_ &= ~(event_classes); | 2380 filtered_input_event_mask_ &= ~(event_classes); |
| 2375 if (event_classes & PP_INPUTEVENT_CLASS_TOUCH) | 2381 if (event_classes & PP_INPUTEVENT_CLASS_TOUCH) |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2708 screen_size_for_fullscreen_ = gfx::Size(); | 2714 screen_size_for_fullscreen_ = gfx::Size(); |
| 2709 WebElement element = container_->element(); | 2715 WebElement element = container_->element(); |
| 2710 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); | 2716 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); |
| 2711 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); | 2717 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); |
| 2712 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); | 2718 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); |
| 2713 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); | 2719 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); |
| 2714 } | 2720 } |
| 2715 | 2721 |
| 2716 } // namespace ppapi | 2722 } // namespace ppapi |
| 2717 } // namespace webkit | 2723 } // namespace webkit |
| OLD | NEW |