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 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1557 return; | 1557 return; |
1558 | 1558 |
1559 did_show_ = true; | 1559 did_show_ = true; |
1560 // NOTE: initial_pos_ may still have its default values at this point, but | 1560 // NOTE: initial_pos_ may still have its default values at this point, but |
1561 // that's okay. It'll be ignored if as_popup is false, or the browser | 1561 // that's okay. It'll be ignored if as_popup is false, or the browser |
1562 // process will impose a default position otherwise. | 1562 // process will impose a default position otherwise. |
1563 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_)); | 1563 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_)); |
1564 SetPendingWindowRect(initial_pos_); | 1564 SetPendingWindowRect(initial_pos_); |
1565 } | 1565 } |
1566 | 1566 |
| 1567 void RenderWidget::requestShowTopControls(bool show) { |
| 1568 if (!compositor_) |
| 1569 return; |
| 1570 Send(new ViewHostMsg_RequestShowTopControls(routing_id_, show)); |
| 1571 } |
| 1572 |
1567 void RenderWidget::didFocus() { | 1573 void RenderWidget::didFocus() { |
1568 } | 1574 } |
1569 | 1575 |
1570 void RenderWidget::didBlur() { | 1576 void RenderWidget::didBlur() { |
1571 } | 1577 } |
1572 | 1578 |
1573 void RenderWidget::DoDeferredClose() { | 1579 void RenderWidget::DoDeferredClose() { |
1574 Send(new ViewHostMsg_Close(routing_id_)); | 1580 Send(new ViewHostMsg_Close(routing_id_)); |
1575 } | 1581 } |
1576 | 1582 |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2256 | 2262 |
2257 if (!context->Initialize( | 2263 if (!context->Initialize( |
2258 attributes, | 2264 attributes, |
2259 false /* bind generates resources */, | 2265 false /* bind generates resources */, |
2260 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
) | 2266 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
) |
2261 return NULL; | 2267 return NULL; |
2262 return context.release(); | 2268 return context.release(); |
2263 } | 2269 } |
2264 | 2270 |
2265 } // namespace content | 2271 } // namespace content |
OLD | NEW |