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 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 return; | 1445 return; |
1446 | 1446 |
1447 did_show_ = true; | 1447 did_show_ = true; |
1448 // NOTE: initial_pos_ may still have its default values at this point, but | 1448 // NOTE: initial_pos_ may still have its default values at this point, but |
1449 // that's okay. It'll be ignored if as_popup is false, or the browser | 1449 // that's okay. It'll be ignored if as_popup is false, or the browser |
1450 // process will impose a default position otherwise. | 1450 // process will impose a default position otherwise. |
1451 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_)); | 1451 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_)); |
1452 SetPendingWindowRect(initial_pos_); | 1452 SetPendingWindowRect(initial_pos_); |
1453 } | 1453 } |
1454 | 1454 |
| 1455 void RenderWidget::didProgrammaticallyScroll(const WebPoint& point) { |
| 1456 if (!web_layer_tree_view_) |
| 1457 return; |
| 1458 |
| 1459 web_layer_tree_view_->layer_tree_host()->programmaticScroll( |
| 1460 gfx::Vector2d(point.x, point.y)); |
| 1461 } |
| 1462 |
| 1463 |
1455 void RenderWidget::didFocus() { | 1464 void RenderWidget::didFocus() { |
1456 } | 1465 } |
1457 | 1466 |
1458 void RenderWidget::didBlur() { | 1467 void RenderWidget::didBlur() { |
1459 } | 1468 } |
1460 | 1469 |
1461 void RenderWidget::DoDeferredClose() { | 1470 void RenderWidget::DoDeferredClose() { |
1462 Send(new ViewHostMsg_Close(routing_id_)); | 1471 Send(new ViewHostMsg_Close(routing_id_)); |
1463 } | 1472 } |
1464 | 1473 |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2104 | 2113 |
2105 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { | 2114 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { |
2106 return false; | 2115 return false; |
2107 } | 2116 } |
2108 | 2117 |
2109 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { | 2118 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { |
2110 return true; | 2119 return true; |
2111 } | 2120 } |
2112 | 2121 |
2113 } // namespace content | 2122 } // namespace content |
OLD | NEW |