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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 TRACE_EVENT0("renderer", "EarlyOut_AcceleratedCompositingOff"); | 482 TRACE_EVENT0("renderer", "EarlyOut_AcceleratedCompositingOff"); |
483 return; | 483 return; |
484 } | 484 } |
485 | 485 |
486 // Continue painting if necessary... | 486 // Continue painting if necessary... |
487 DoDeferredUpdateAndSendInputAck(); | 487 DoDeferredUpdateAndSendInputAck(); |
488 } | 488 } |
489 | 489 |
490 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) { | 490 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) { |
491 TRACE_EVENT0("renderer", "RenderWidget::OnHandleInputEvent"); | 491 TRACE_EVENT0("renderer", "RenderWidget::OnHandleInputEvent"); |
492 void* iter = NULL; | 492 PickleReader iter(message); |
493 | 493 |
494 const char* data; | 494 const char* data; |
495 int data_length; | 495 int data_length; |
496 handling_input_event_ = true; | 496 handling_input_event_ = true; |
497 if (!message.ReadData(&iter, &data, &data_length)) { | 497 if (!message.ReadData(&iter, &data, &data_length)) { |
498 handling_input_event_ = false; | 498 handling_input_event_ = false; |
499 return; | 499 return; |
500 } | 500 } |
501 | 501 |
502 const WebInputEvent* input_event = | 502 const WebInputEvent* input_event = |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1652 } | 1652 } |
1653 } | 1653 } |
1654 | 1654 |
1655 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { | 1655 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { |
1656 return false; | 1656 return false; |
1657 } | 1657 } |
1658 | 1658 |
1659 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { | 1659 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { |
1660 return false; | 1660 return false; |
1661 } | 1661 } |
OLD | NEW |