| 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/render_widget_fullscreen_pepper.h" | 5 #include "content/renderer/render_widget_fullscreen_pepper.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 return; | 144 return; |
| 145 | 145 |
| 146 size_ = size; | 146 size_ = size; |
| 147 WebRect plugin_rect(0, 0, size_.width, size_.height); | 147 WebRect plugin_rect(0, 0, size_.width, size_.height); |
| 148 widget_->plugin()->ViewChanged(plugin_rect, plugin_rect, plugin_rect); | 148 widget_->plugin()->ViewChanged(plugin_rect, plugin_rect, plugin_rect); |
| 149 widget_->Invalidate(); | 149 widget_->Invalidate(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 void themeChanged() override { NOTIMPLEMENTED(); } | 152 void themeChanged() override { NOTIMPLEMENTED(); } |
| 153 | 153 |
| 154 WebInputEventResult handleInputEvent(const WebInputEvent& event) override { | 154 WebInputEventResult handleInputEvent( |
| 155 const WebInputEvent& event, |
| 156 const std::vector<const blink::WebInputEvent*>& coalescedEvents) |
| 157 override { |
| 155 if (!widget_->plugin()) | 158 if (!widget_->plugin()) |
| 156 return WebInputEventResult::NotHandled; | 159 return WebInputEventResult::NotHandled; |
| 157 | 160 |
| 158 // This cursor info is ignored, we always set the cursor directly from | 161 // This cursor info is ignored, we always set the cursor directly from |
| 159 // RenderWidgetFullscreenPepper::DidChangeCursor. | 162 // RenderWidgetFullscreenPepper::DidChangeCursor. |
| 160 WebCursorInfo cursor; | 163 WebCursorInfo cursor; |
| 161 | 164 |
| 162 // Pepper plugins do not accept gesture events. So do not send the gesture | 165 // Pepper plugins do not accept gesture events. So do not send the gesture |
| 163 // events directly to the plugin. Instead, try to convert them to equivalent | 166 // events directly to the plugin. Instead, try to convert them to equivalent |
| 164 // mouse events, and then send to the plugin. | 167 // mouse events, and then send to the plugin. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() { | 377 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() { |
| 375 return active_url_; | 378 return active_url_; |
| 376 } | 379 } |
| 377 | 380 |
| 378 void RenderWidgetFullscreenPepper::OnDeviceScaleFactorChanged() { | 381 void RenderWidgetFullscreenPepper::OnDeviceScaleFactorChanged() { |
| 379 if (compositor_) | 382 if (compositor_) |
| 380 compositor_->setDeviceScaleFactor(device_scale_factor_); | 383 compositor_->setDeviceScaleFactor(device_scale_factor_); |
| 381 } | 384 } |
| 382 | 385 |
| 383 } // namespace content | 386 } // namespace content |
| OLD | NEW |