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 "content/renderer/pepper/pepper_webplugin_impl.h" | 5 #include "content/renderer/pepper/pepper_webplugin_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 if (object_var.get()) { | 183 if (object_var.get()) { |
184 MessageChannel* message_channel = instance_->message_channel(); | 184 MessageChannel* message_channel = instance_->message_channel(); |
185 if (message_channel) | 185 if (message_channel) |
186 message_channel->SetPassthroughObject(object_var->GetHandle()); | 186 message_channel->SetPassthroughObject(object_var->GetHandle()); |
187 } | 187 } |
188 | 188 |
189 v8::Local<v8::Object> result = instance_->GetMessageChannelObject(); | 189 v8::Local<v8::Object> result = instance_->GetMessageChannelObject(); |
190 return result; | 190 return result; |
191 } | 191 } |
192 | 192 |
193 bool PepperWebPluginImpl::getFormValue(WebString& value) { return false; } | |
194 | |
195 void PepperWebPluginImpl::paint(WebCanvas* canvas, const WebRect& rect) { | 193 void PepperWebPluginImpl::paint(WebCanvas* canvas, const WebRect& rect) { |
196 if (!instance_->FlashIsFullscreenOrPending()) | 194 if (!instance_->FlashIsFullscreenOrPending()) |
197 instance_->Paint(canvas, plugin_rect_, rect); | 195 instance_->Paint(canvas, plugin_rect_, rect); |
198 } | 196 } |
199 | 197 |
200 void PepperWebPluginImpl::updateGeometry( | 198 void PepperWebPluginImpl::updateGeometry( |
201 const WebRect& window_rect, | 199 const WebRect& window_rect, |
202 const WebRect& clip_rect, | 200 const WebRect& clip_rect, |
203 const WebRect& unobscured_rect, | 201 const WebRect& unobscured_rect, |
204 const WebVector<WebRect>& cut_outs_rects, | 202 const WebVector<WebRect>& cut_outs_rects, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 307 |
310 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } | 308 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } |
311 | 309 |
312 void PepperWebPluginImpl::rotateView(RotationType type) { | 310 void PepperWebPluginImpl::rotateView(RotationType type) { |
313 instance_->RotateView(type); | 311 instance_->RotateView(type); |
314 } | 312 } |
315 | 313 |
316 bool PepperWebPluginImpl::isPlaceholder() { return false; } | 314 bool PepperWebPluginImpl::isPlaceholder() { return false; } |
317 | 315 |
318 } // namespace content | 316 } // namespace content |
OLD | NEW |