| 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 bool is_visible) { | 171 bool is_visible) { |
| 172 plugin_rect_ = window_rect; | 172 plugin_rect_ = window_rect; |
| 173 if (!instance_->FlashIsFullscreenOrPending()) { | 173 if (!instance_->FlashIsFullscreenOrPending()) { |
| 174 std::vector<gfx::Rect> cut_outs; | 174 std::vector<gfx::Rect> cut_outs; |
| 175 for (size_t i = 0; i < cut_outs_rects.size(); ++i) | 175 for (size_t i = 0; i < cut_outs_rects.size(); ++i) |
| 176 cut_outs.push_back(cut_outs_rects[i]); | 176 cut_outs.push_back(cut_outs_rects[i]); |
| 177 instance_->ViewChanged(plugin_rect_, clip_rect, cut_outs); | 177 instance_->ViewChanged(plugin_rect_, clip_rect, cut_outs); |
| 178 } | 178 } |
| 179 } | 179 } |
| 180 | 180 |
| 181 void PepperWebPluginImpl::updateFocus(bool focused) { | 181 void PepperWebPluginImpl::updateFocus(bool focused, |
| 182 blink::WebFocusType focus_type) { |
| 182 instance_->SetWebKitFocus(focused); | 183 instance_->SetWebKitFocus(focused); |
| 183 } | 184 } |
| 184 | 185 |
| 185 void PepperWebPluginImpl::updateVisibility(bool visible) {} | 186 void PepperWebPluginImpl::updateVisibility(bool visible) {} |
| 186 | 187 |
| 187 bool PepperWebPluginImpl::acceptsInputEvents() { return true; } | 188 bool PepperWebPluginImpl::acceptsInputEvents() { return true; } |
| 188 | 189 |
| 189 bool PepperWebPluginImpl::handleInputEvent(const blink::WebInputEvent& event, | 190 bool PepperWebPluginImpl::handleInputEvent(const blink::WebInputEvent& event, |
| 190 blink::WebCursorInfo& cursor_info) { | 191 blink::WebCursorInfo& cursor_info) { |
| 191 if (instance_->FlashIsFullscreenOrPending()) | 192 if (instance_->FlashIsFullscreenOrPending()) |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 284 |
| 284 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } | 285 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } |
| 285 | 286 |
| 286 void PepperWebPluginImpl::rotateView(RotationType type) { | 287 void PepperWebPluginImpl::rotateView(RotationType type) { |
| 287 instance_->RotateView(type); | 288 instance_->RotateView(type); |
| 288 } | 289 } |
| 289 | 290 |
| 290 bool PepperWebPluginImpl::isPlaceholder() { return false; } | 291 bool PepperWebPluginImpl::isPlaceholder() { return false; } |
| 291 | 292 |
| 292 } // namespace content | 293 } // namespace content |
| OLD | NEW |