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 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 return PP_TRUE; | 2148 return PP_TRUE; |
2149 } | 2149 } |
2150 | 2150 |
2151 ::ppapi::Resource* PluginInstance::GetSingletonResource( | 2151 ::ppapi::Resource* PluginInstance::GetSingletonResource( |
2152 PP_Instance instance, | 2152 PP_Instance instance, |
2153 ::ppapi::SingletonResourceID id) { | 2153 ::ppapi::SingletonResourceID id) { |
2154 // Flash APIs and some others aren't implemented in-process. | 2154 // Flash APIs and some others aren't implemented in-process. |
2155 switch (id) { | 2155 switch (id) { |
2156 case ::ppapi::BROKER_SINGLETON_ID: | 2156 case ::ppapi::BROKER_SINGLETON_ID: |
2157 case ::ppapi::BROWSER_FONT_SINGLETON_ID: | 2157 case ::ppapi::BROWSER_FONT_SINGLETON_ID: |
| 2158 case ::ppapi::CRX_FILESYSTEM_SINGLETON_ID: |
2158 case ::ppapi::EXTENSIONS_COMMON_SINGLETON_ID: | 2159 case ::ppapi::EXTENSIONS_COMMON_SINGLETON_ID: |
2159 case ::ppapi::FLASH_CLIPBOARD_SINGLETON_ID: | 2160 case ::ppapi::FLASH_CLIPBOARD_SINGLETON_ID: |
2160 case ::ppapi::FLASH_FILE_SINGLETON_ID: | 2161 case ::ppapi::FLASH_FILE_SINGLETON_ID: |
2161 case ::ppapi::FLASH_FULLSCREEN_SINGLETON_ID: | 2162 case ::ppapi::FLASH_FULLSCREEN_SINGLETON_ID: |
2162 case ::ppapi::FLASH_SINGLETON_ID: | 2163 case ::ppapi::FLASH_SINGLETON_ID: |
2163 case ::ppapi::PDF_SINGLETON_ID: | 2164 case ::ppapi::PDF_SINGLETON_ID: |
2164 case ::ppapi::TRUETYPE_FONT_SINGLETON_ID: | 2165 case ::ppapi::TRUETYPE_FONT_SINGLETON_ID: |
2165 NOTIMPLEMENTED(); | 2166 NOTIMPLEMENTED(); |
2166 return NULL; | 2167 return NULL; |
2167 case ::ppapi::GAMEPAD_SINGLETON_ID: | 2168 case ::ppapi::GAMEPAD_SINGLETON_ID: |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2526 screen_size_for_fullscreen_ = gfx::Size(); | 2527 screen_size_for_fullscreen_ = gfx::Size(); |
2527 WebElement element = container_->element(); | 2528 WebElement element = container_->element(); |
2528 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); | 2529 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); |
2529 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); | 2530 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); |
2530 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); | 2531 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); |
2531 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); | 2532 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); |
2532 } | 2533 } |
2533 | 2534 |
2534 } // namespace ppapi | 2535 } // namespace ppapi |
2535 } // namespace webkit | 2536 } // namespace webkit |
OLD | NEW |