| 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 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2113 PP_Instance instance, | 2113 PP_Instance instance, |
| 2114 ::ppapi::SingletonResourceID id) { | 2114 ::ppapi::SingletonResourceID id) { |
| 2115 // Flash APIs and some others aren't implemented in-process. | 2115 // Flash APIs and some others aren't implemented in-process. |
| 2116 switch (id) { | 2116 switch (id) { |
| 2117 case ::ppapi::BROKER_SINGLETON_ID: | 2117 case ::ppapi::BROKER_SINGLETON_ID: |
| 2118 case ::ppapi::BROWSER_FONT_SINGLETON_ID: | 2118 case ::ppapi::BROWSER_FONT_SINGLETON_ID: |
| 2119 case ::ppapi::FLASH_CLIPBOARD_SINGLETON_ID: | 2119 case ::ppapi::FLASH_CLIPBOARD_SINGLETON_ID: |
| 2120 case ::ppapi::FLASH_FILE_SINGLETON_ID: | 2120 case ::ppapi::FLASH_FILE_SINGLETON_ID: |
| 2121 case ::ppapi::FLASH_FULLSCREEN_SINGLETON_ID: | 2121 case ::ppapi::FLASH_FULLSCREEN_SINGLETON_ID: |
| 2122 case ::ppapi::FLASH_SINGLETON_ID: | 2122 case ::ppapi::FLASH_SINGLETON_ID: |
| 2123 case ::ppapi::TRUETYPE_FONT_SINGLETON_ID: |
| 2123 NOTIMPLEMENTED(); | 2124 NOTIMPLEMENTED(); |
| 2124 return NULL; | 2125 return NULL; |
| 2125 case ::ppapi::GAMEPAD_SINGLETON_ID: | 2126 case ::ppapi::GAMEPAD_SINGLETON_ID: |
| 2126 return gamepad_impl_; | 2127 return gamepad_impl_; |
| 2127 } | 2128 } |
| 2128 | 2129 |
| 2129 NOTREACHED(); | 2130 NOTREACHED(); |
| 2130 return NULL; | 2131 return NULL; |
| 2131 } | 2132 } |
| 2132 | 2133 |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2483 screen_size_for_fullscreen_ = gfx::Size(); | 2484 screen_size_for_fullscreen_ = gfx::Size(); |
| 2484 WebElement element = container_->element(); | 2485 WebElement element = container_->element(); |
| 2485 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); | 2486 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); |
| 2486 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); | 2487 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); |
| 2487 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); | 2488 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); |
| 2488 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); | 2489 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); |
| 2489 } | 2490 } |
| 2490 | 2491 |
| 2491 } // namespace ppapi | 2492 } // namespace ppapi |
| 2492 } // namespace webkit | 2493 } // namespace webkit |
| OLD | NEW |