| 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 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2099 unsigned PluginInstance::PrepareTexture(cc::ResourceUpdateQueue* queue) { | 2099 unsigned PluginInstance::PrepareTexture(cc::ResourceUpdateQueue* queue) { |
| 2100 return GetBackingTextureId(); | 2100 return GetBackingTextureId(); |
| 2101 } | 2101 } |
| 2102 | 2102 |
| 2103 WebKit::WebGraphicsContext3D* PluginInstance::Context3d() { | 2103 WebKit::WebGraphicsContext3D* PluginInstance::Context3d() { |
| 2104 DCHECK(bound_graphics_3d_.get()); | 2104 DCHECK(bound_graphics_3d_.get()); |
| 2105 DCHECK(bound_graphics_3d_->platform_context()); | 2105 DCHECK(bound_graphics_3d_->platform_context()); |
| 2106 return bound_graphics_3d_->platform_context()->GetParentContext(); | 2106 return bound_graphics_3d_->platform_context()->GetParentContext(); |
| 2107 } | 2107 } |
| 2108 | 2108 |
| 2109 bool PluginInstance::PrepareTextureMailbox(cc::TextureMailbox* mailbox) { |
| 2110 return false; |
| 2111 } |
| 2112 |
| 2109 void PluginInstance::NumberOfFindResultsChanged(PP_Instance instance, | 2113 void PluginInstance::NumberOfFindResultsChanged(PP_Instance instance, |
| 2110 int32_t total, | 2114 int32_t total, |
| 2111 PP_Bool final_result) { | 2115 PP_Bool final_result) { |
| 2112 DCHECK_NE(find_identifier_, -1); | 2116 DCHECK_NE(find_identifier_, -1); |
| 2113 delegate_->NumberOfFindResultsChanged(find_identifier_, total, | 2117 delegate_->NumberOfFindResultsChanged(find_identifier_, total, |
| 2114 PP_ToBool(final_result)); | 2118 PP_ToBool(final_result)); |
| 2115 } | 2119 } |
| 2116 | 2120 |
| 2117 void PluginInstance::SelectedFindResultChanged(PP_Instance instance, | 2121 void PluginInstance::SelectedFindResultChanged(PP_Instance instance, |
| 2118 int32_t index) { | 2122 int32_t index) { |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2508 screen_size_for_fullscreen_ = gfx::Size(); | 2512 screen_size_for_fullscreen_ = gfx::Size(); |
| 2509 WebElement element = container_->element(); | 2513 WebElement element = container_->element(); |
| 2510 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); | 2514 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); |
| 2511 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); | 2515 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); |
| 2512 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); | 2516 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); |
| 2513 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); | 2517 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); |
| 2514 } | 2518 } |
| 2515 | 2519 |
| 2516 } // namespace ppapi | 2520 } // namespace ppapi |
| 2517 } // namespace webkit | 2521 } // namespace webkit |
| OLD | NEW |