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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 TRACE_EVENT0("renderer", "EarlyOut_AcceleratedCompositingOff"); | 500 TRACE_EVENT0("renderer", "EarlyOut_AcceleratedCompositingOff"); |
501 return; | 501 return; |
502 } | 502 } |
503 | 503 |
504 // Continue painting if necessary... | 504 // Continue painting if necessary... |
505 DoDeferredUpdateAndSendInputAck(); | 505 DoDeferredUpdateAndSendInputAck(); |
506 } | 506 } |
507 | 507 |
508 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) { | 508 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) { |
509 TRACE_EVENT0("renderer", "RenderWidget::OnHandleInputEvent"); | 509 TRACE_EVENT0("renderer", "RenderWidget::OnHandleInputEvent"); |
510 void* iter = NULL; | 510 PickleIterator iter(message); |
511 | 511 |
512 const char* data; | 512 const char* data; |
513 int data_length; | 513 int data_length; |
514 handling_input_event_ = true; | 514 handling_input_event_ = true; |
515 if (!message.ReadData(&iter, &data, &data_length)) { | 515 if (!message.ReadData(&iter, &data, &data_length)) { |
516 handling_input_event_ = false; | 516 handling_input_event_ = false; |
517 return; | 517 return; |
518 } | 518 } |
519 | 519 |
520 const WebInputEvent* input_event = | 520 const WebInputEvent* input_event = |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1662 } | 1662 } |
1663 } | 1663 } |
1664 | 1664 |
1665 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { | 1665 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { |
1666 return false; | 1666 return false; |
1667 } | 1667 } |
1668 | 1668 |
1669 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { | 1669 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { |
1670 return false; | 1670 return false; |
1671 } | 1671 } |
OLD | NEW |