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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 blink::WebFocusType focus_type) { |
183 instance_->SetWebKitFocus(focused); | 183 instance_->SetWebKitFocus(focused); |
184 } | 184 } |
185 | 185 |
186 void PepperWebPluginImpl::updateVisibility(bool visible) {} | 186 void PepperWebPluginImpl::updateVisibility(bool visible) { |
| 187 instance_->UpdateVisibility(visible); |
| 188 } |
187 | 189 |
188 bool PepperWebPluginImpl::acceptsInputEvents() { return true; } | 190 bool PepperWebPluginImpl::acceptsInputEvents() { return true; } |
189 | 191 |
190 bool PepperWebPluginImpl::handleInputEvent(const blink::WebInputEvent& event, | 192 bool PepperWebPluginImpl::handleInputEvent(const blink::WebInputEvent& event, |
191 blink::WebCursorInfo& cursor_info) { | 193 blink::WebCursorInfo& cursor_info) { |
192 if (instance_->FlashIsFullscreenOrPending()) | 194 if (instance_->FlashIsFullscreenOrPending()) |
193 return false; | 195 return false; |
194 return instance_->HandleInputEvent(event, &cursor_info); | 196 return instance_->HandleInputEvent(event, &cursor_info); |
195 } | 197 } |
196 | 198 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 286 |
285 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } | 287 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } |
286 | 288 |
287 void PepperWebPluginImpl::rotateView(RotationType type) { | 289 void PepperWebPluginImpl::rotateView(RotationType type) { |
288 instance_->RotateView(type); | 290 instance_->RotateView(type); |
289 } | 291 } |
290 | 292 |
291 bool PepperWebPluginImpl::isPlaceholder() { return false; } | 293 bool PepperWebPluginImpl::isPlaceholder() { return false; } |
292 | 294 |
293 } // namespace content | 295 } // namespace content |
OLD | NEW |