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 2216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2227 // Flash APIs and some others aren't implemented in-process. | 2227 // Flash APIs and some others aren't implemented in-process. |
2228 switch (id) { | 2228 switch (id) { |
2229 case ::ppapi::BROKER_SINGLETON_ID: | 2229 case ::ppapi::BROKER_SINGLETON_ID: |
2230 case ::ppapi::BROWSER_FONT_SINGLETON_ID: | 2230 case ::ppapi::BROWSER_FONT_SINGLETON_ID: |
2231 case ::ppapi::CRX_FILESYSTEM_SINGLETON_ID: | 2231 case ::ppapi::CRX_FILESYSTEM_SINGLETON_ID: |
2232 case ::ppapi::EXTENSIONS_COMMON_SINGLETON_ID: | 2232 case ::ppapi::EXTENSIONS_COMMON_SINGLETON_ID: |
2233 case ::ppapi::FLASH_CLIPBOARD_SINGLETON_ID: | 2233 case ::ppapi::FLASH_CLIPBOARD_SINGLETON_ID: |
2234 case ::ppapi::FLASH_FILE_SINGLETON_ID: | 2234 case ::ppapi::FLASH_FILE_SINGLETON_ID: |
2235 case ::ppapi::FLASH_FULLSCREEN_SINGLETON_ID: | 2235 case ::ppapi::FLASH_FULLSCREEN_SINGLETON_ID: |
2236 case ::ppapi::FLASH_SINGLETON_ID: | 2236 case ::ppapi::FLASH_SINGLETON_ID: |
| 2237 case ::ppapi::NETWORK_PROXY_SINGLETON_ID: |
2237 case ::ppapi::PDF_SINGLETON_ID: | 2238 case ::ppapi::PDF_SINGLETON_ID: |
2238 case ::ppapi::TRUETYPE_FONT_SINGLETON_ID: | 2239 case ::ppapi::TRUETYPE_FONT_SINGLETON_ID: |
2239 NOTIMPLEMENTED(); | 2240 NOTIMPLEMENTED(); |
2240 return NULL; | 2241 return NULL; |
2241 case ::ppapi::GAMEPAD_SINGLETON_ID: | 2242 case ::ppapi::GAMEPAD_SINGLETON_ID: |
2242 return gamepad_impl_.get(); | 2243 return gamepad_impl_.get(); |
2243 } | 2244 } |
2244 | 2245 |
2245 NOTREACHED(); | 2246 NOTREACHED(); |
2246 return NULL; | 2247 return NULL; |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2613 screen_size_for_fullscreen_ = gfx::Size(); | 2614 screen_size_for_fullscreen_ = gfx::Size(); |
2614 WebElement element = container_->element(); | 2615 WebElement element = container_->element(); |
2615 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); | 2616 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); |
2616 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); | 2617 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); |
2617 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); | 2618 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); |
2618 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); | 2619 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); |
2619 } | 2620 } |
2620 | 2621 |
2621 } // namespace ppapi | 2622 } // namespace ppapi |
2622 } // namespace webkit | 2623 } // namespace webkit |
OLD | NEW |