Chromium Code Reviews| 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 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1474 return; | 1474 return; |
| 1475 | 1475 |
| 1476 did_show_ = true; | 1476 did_show_ = true; |
| 1477 // NOTE: initial_pos_ may still have its default values at this point, but | 1477 // NOTE: initial_pos_ may still have its default values at this point, but |
| 1478 // that's okay. It'll be ignored if as_popup is false, or the browser | 1478 // that's okay. It'll be ignored if as_popup is false, or the browser |
| 1479 // process will impose a default position otherwise. | 1479 // process will impose a default position otherwise. |
| 1480 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_)); | 1480 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_)); |
| 1481 SetPendingWindowRect(initial_pos_); | 1481 SetPendingWindowRect(initial_pos_); |
| 1482 } | 1482 } |
| 1483 | 1483 |
| 1484 void RenderWidget::hideTopControls() { | |
| 1485 if (!compositor_) | |
|
jamesr
2013/03/04 21:44:03
Do you expect this case to be hit? Why?
John Knottenbelt
2013/03/05 16:41:48
It seems that all method invocations on compositor
| |
| 1486 return; | |
| 1487 | |
| 1488 compositor_->layer_tree_host()->hideTopControls(); | |
| 1489 } | |
| 1490 | |
| 1484 void RenderWidget::didFocus() { | 1491 void RenderWidget::didFocus() { |
| 1485 } | 1492 } |
| 1486 | 1493 |
| 1487 void RenderWidget::didBlur() { | 1494 void RenderWidget::didBlur() { |
| 1488 } | 1495 } |
| 1489 | 1496 |
| 1490 void RenderWidget::DoDeferredClose() { | 1497 void RenderWidget::DoDeferredClose() { |
| 1491 Send(new ViewHostMsg_Close(routing_id_)); | 1498 Send(new ViewHostMsg_Close(routing_id_)); |
| 1492 } | 1499 } |
| 1493 | 1500 |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2142 bool RenderWidget::WillHandleGestureEvent( | 2149 bool RenderWidget::WillHandleGestureEvent( |
| 2143 const WebKit::WebGestureEvent& event) { | 2150 const WebKit::WebGestureEvent& event) { |
| 2144 return false; | 2151 return false; |
| 2145 } | 2152 } |
| 2146 | 2153 |
| 2147 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { | 2154 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { |
| 2148 return true; | 2155 return true; |
| 2149 } | 2156 } |
| 2150 | 2157 |
| 2151 } // namespace content | 2158 } // namespace content |
| OLD | NEW |