| 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 <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/debug/crash_logging.h" | 9 #include "base/debug/crash_logging.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 const WebRect& window_rect, | 171 const WebRect& window_rect, |
| 172 const WebRect& clip_rect, | 172 const WebRect& clip_rect, |
| 173 const WebRect& unobscured_rect, | 173 const WebRect& unobscured_rect, |
| 174 const WebVector<WebRect>& cut_outs_rects, | 174 const WebVector<WebRect>& cut_outs_rects, |
| 175 bool is_visible) { | 175 bool is_visible) { |
| 176 plugin_rect_ = window_rect; | 176 plugin_rect_ = window_rect; |
| 177 if (!instance_->FlashIsFullscreenOrPending()) { | 177 if (!instance_->FlashIsFullscreenOrPending()) { |
| 178 std::vector<gfx::Rect> cut_outs; | 178 std::vector<gfx::Rect> cut_outs; |
| 179 for (size_t i = 0; i < cut_outs_rects.size(); ++i) | 179 for (size_t i = 0; i < cut_outs_rects.size(); ++i) |
| 180 cut_outs.push_back(cut_outs_rects[i]); | 180 cut_outs.push_back(cut_outs_rects[i]); |
| 181 instance_->ViewChanged(plugin_rect_, clip_rect, cut_outs); | 181 instance_->ViewChanged(plugin_rect_, clip_rect, unobscured_rect, cut_outs); |
| 182 } | 182 } |
| 183 } | 183 } |
| 184 | 184 |
| 185 void PepperWebPluginImpl::updateFocus(bool focused, | 185 void PepperWebPluginImpl::updateFocus(bool focused, |
| 186 blink::WebFocusType focus_type) { | 186 blink::WebFocusType focus_type) { |
| 187 instance_->SetWebKitFocus(focused); | 187 instance_->SetWebKitFocus(focused); |
| 188 } | 188 } |
| 189 | 189 |
| 190 void PepperWebPluginImpl::updateVisibility(bool visible) {} | 190 void PepperWebPluginImpl::updateVisibility(bool visible) {} |
| 191 | 191 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 288 |
| 289 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } | 289 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } |
| 290 | 290 |
| 291 void PepperWebPluginImpl::rotateView(RotationType type) { | 291 void PepperWebPluginImpl::rotateView(RotationType type) { |
| 292 instance_->RotateView(type); | 292 instance_->RotateView(type); |
| 293 } | 293 } |
| 294 | 294 |
| 295 bool PepperWebPluginImpl::isPlaceholder() { return false; } | 295 bool PepperWebPluginImpl::isPlaceholder() { return false; } |
| 296 | 296 |
| 297 } // namespace content | 297 } // namespace content |
| OLD | NEW |