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.h" | 5 #include "content/renderer/render_widget.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 TRACE_EVENT0("renderer", "EarlyOut_AcceleratedCompositingOff"); | 481 TRACE_EVENT0("renderer", "EarlyOut_AcceleratedCompositingOff"); |
482 return; | 482 return; |
483 } | 483 } |
484 | 484 |
485 // Continue painting if necessary... | 485 // Continue painting if necessary... |
486 DoDeferredUpdateAndSendInputAck(); | 486 DoDeferredUpdateAndSendInputAck(); |
487 } | 487 } |
488 | 488 |
489 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) { | 489 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) { |
490 TRACE_EVENT0("renderer", "RenderWidget::OnHandleInputEvent"); | 490 TRACE_EVENT0("renderer", "RenderWidget::OnHandleInputEvent"); |
491 void* iter = NULL; | 491 PickleReader iter(message); |
492 | 492 |
493 const char* data; | 493 const char* data; |
494 int data_length; | 494 int data_length; |
495 handling_input_event_ = true; | 495 handling_input_event_ = true; |
496 if (!message.ReadData(&iter, &data, &data_length)) { | 496 if (!message.ReadData(&iter, &data, &data_length)) { |
497 handling_input_event_ = false; | 497 handling_input_event_ = false; |
498 return; | 498 return; |
499 } | 499 } |
500 | 500 |
501 const WebInputEvent* input_event = | 501 const WebInputEvent* input_event = |
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1655 } | 1655 } |
1656 } | 1656 } |
1657 | 1657 |
1658 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { | 1658 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { |
1659 return false; | 1659 return false; |
1660 } | 1660 } |
1661 | 1661 |
1662 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { | 1662 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { |
1663 return false; | 1663 return false; |
1664 } | 1664 } |
OLD | NEW |