| 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/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2125 return PP_TRUE; | 2125 return PP_TRUE; |
| 2126 } | 2126 } |
| 2127 | 2127 |
| 2128 ::ppapi::Resource* PluginInstance::GetSingletonResource( | 2128 ::ppapi::Resource* PluginInstance::GetSingletonResource( |
| 2129 PP_Instance instance, | 2129 PP_Instance instance, |
| 2130 ::ppapi::SingletonResourceID id) { | 2130 ::ppapi::SingletonResourceID id) { |
| 2131 // Flash APIs and some others aren't implemented in-process. | 2131 // Flash APIs and some others aren't implemented in-process. |
| 2132 switch (id) { | 2132 switch (id) { |
| 2133 case ::ppapi::BROKER_SINGLETON_ID: | 2133 case ::ppapi::BROKER_SINGLETON_ID: |
| 2134 case ::ppapi::BROWSER_FONT_SINGLETON_ID: | 2134 case ::ppapi::BROWSER_FONT_SINGLETON_ID: |
| 2135 case ::ppapi::EXTENSIONS_COMMON_SINGLETON_ID: |
| 2135 case ::ppapi::FLASH_CLIPBOARD_SINGLETON_ID: | 2136 case ::ppapi::FLASH_CLIPBOARD_SINGLETON_ID: |
| 2136 case ::ppapi::FLASH_FILE_SINGLETON_ID: | 2137 case ::ppapi::FLASH_FILE_SINGLETON_ID: |
| 2137 case ::ppapi::FLASH_FULLSCREEN_SINGLETON_ID: | 2138 case ::ppapi::FLASH_FULLSCREEN_SINGLETON_ID: |
| 2138 case ::ppapi::FLASH_SINGLETON_ID: | 2139 case ::ppapi::FLASH_SINGLETON_ID: |
| 2139 case ::ppapi::PDF_SINGLETON_ID: | 2140 case ::ppapi::PDF_SINGLETON_ID: |
| 2140 case ::ppapi::TRUETYPE_FONT_SINGLETON_ID: | 2141 case ::ppapi::TRUETYPE_FONT_SINGLETON_ID: |
| 2141 NOTIMPLEMENTED(); | 2142 NOTIMPLEMENTED(); |
| 2142 return NULL; | 2143 return NULL; |
| 2143 case ::ppapi::GAMEPAD_SINGLETON_ID: | 2144 case ::ppapi::GAMEPAD_SINGLETON_ID: |
| 2144 return gamepad_impl_; | 2145 return gamepad_impl_; |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2501 screen_size_for_fullscreen_ = gfx::Size(); | 2502 screen_size_for_fullscreen_ = gfx::Size(); |
| 2502 WebElement element = container_->element(); | 2503 WebElement element = container_->element(); |
| 2503 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); | 2504 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); |
| 2504 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); | 2505 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); |
| 2505 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); | 2506 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); |
| 2506 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); | 2507 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); |
| 2507 } | 2508 } |
| 2508 | 2509 |
| 2509 } // namespace ppapi | 2510 } // namespace ppapi |
| 2510 } // namespace webkit | 2511 } // namespace webkit |
| OLD | NEW |