| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/browser_plugin/browser_plugin.h" | 5 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 if (compositing_helper_.get()) | 432 if (compositing_helper_.get()) |
| 433 compositing_helper_->UpdateVisibility(visible); | 433 compositing_helper_->UpdateVisibility(visible); |
| 434 | 434 |
| 435 BrowserPluginManager::Get()->Send(new BrowserPluginHostMsg_SetVisibility( | 435 BrowserPluginManager::Get()->Send(new BrowserPluginHostMsg_SetVisibility( |
| 436 browser_plugin_instance_id_, | 436 browser_plugin_instance_id_, |
| 437 visible)); | 437 visible)); |
| 438 } | 438 } |
| 439 | 439 |
| 440 blink::WebInputEventResult BrowserPlugin::handleInputEvent( | 440 blink::WebInputEventResult BrowserPlugin::handleInputEvent( |
| 441 const blink::WebInputEvent& event, | 441 const blink::WebInputEvent& event, |
| 442 const std::vector<const blink::WebInputEvent*>& coalescedEvents, |
| 442 blink::WebCursorInfo& cursor_info) { | 443 blink::WebCursorInfo& cursor_info) { |
| 443 if (guest_crashed_ || !attached()) | 444 if (guest_crashed_ || !attached()) |
| 444 return blink::WebInputEventResult::NotHandled; | 445 return blink::WebInputEventResult::NotHandled; |
| 445 | 446 |
| 446 DCHECK(!blink::WebInputEvent::isTouchEventType(event.type)); | 447 DCHECK(!blink::WebInputEvent::isTouchEventType(event.type)); |
| 447 | 448 |
| 448 if (event.type == blink::WebInputEvent::MouseWheel) { | 449 if (event.type == blink::WebInputEvent::MouseWheel) { |
| 449 auto wheel_event = static_cast<const blink::WebMouseWheelEvent&>(event); | 450 auto wheel_event = static_cast<const blink::WebMouseWheelEvent&>(event); |
| 450 if (wheel_event.resendingPluginId == browser_plugin_instance_id_) | 451 if (wheel_event.resendingPluginId == browser_plugin_instance_id_) |
| 451 return blink::WebInputEventResult::NotHandled; | 452 return blink::WebInputEventResult::NotHandled; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 | 607 |
| 607 bool BrowserPlugin::HandleMouseLockedInputEvent( | 608 bool BrowserPlugin::HandleMouseLockedInputEvent( |
| 608 const blink::WebMouseEvent& event) { | 609 const blink::WebMouseEvent& event) { |
| 609 BrowserPluginManager::Get()->Send( | 610 BrowserPluginManager::Get()->Send( |
| 610 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_, | 611 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_, |
| 611 &event)); | 612 &event)); |
| 612 return true; | 613 return true; |
| 613 } | 614 } |
| 614 | 615 |
| 615 } // namespace content | 616 } // namespace content |
| OLD | NEW |