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 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1564 return; | 1564 return; |
1565 | 1565 |
1566 did_show_ = true; | 1566 did_show_ = true; |
1567 // NOTE: initial_pos_ may still have its default values at this point, but | 1567 // NOTE: initial_pos_ may still have its default values at this point, but |
1568 // that's okay. It'll be ignored if as_popup is false, or the browser | 1568 // that's okay. It'll be ignored if as_popup is false, or the browser |
1569 // process will impose a default position otherwise. | 1569 // process will impose a default position otherwise. |
1570 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_)); | 1570 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_)); |
1571 SetPendingWindowRect(initial_pos_); | 1571 SetPendingWindowRect(initial_pos_); |
1572 } | 1572 } |
1573 | 1573 |
| 1574 void RenderWidget::requestShowTopControls(bool show) { |
| 1575 if (!compositor_) |
| 1576 return; |
| 1577 Send(new ViewHostMsg_RequestShowTopControls(routing_id_, show)); |
| 1578 } |
| 1579 |
1574 void RenderWidget::didFocus() { | 1580 void RenderWidget::didFocus() { |
1575 } | 1581 } |
1576 | 1582 |
1577 void RenderWidget::didBlur() { | 1583 void RenderWidget::didBlur() { |
1578 } | 1584 } |
1579 | 1585 |
1580 void RenderWidget::DoDeferredClose() { | 1586 void RenderWidget::DoDeferredClose() { |
1581 Send(new ViewHostMsg_Close(routing_id_)); | 1587 Send(new ViewHostMsg_Close(routing_id_)); |
1582 } | 1588 } |
1583 | 1589 |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2308 | 2314 |
2309 if (!context->Initialize( | 2315 if (!context->Initialize( |
2310 attributes, | 2316 attributes, |
2311 false /* bind generates resources */, | 2317 false /* bind generates resources */, |
2312 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
) | 2318 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
) |
2313 return NULL; | 2319 return NULL; |
2314 return context.release(); | 2320 return context.release(); |
2315 } | 2321 } |
2316 | 2322 |
2317 } // namespace content | 2323 } // namespace content |
OLD | NEW |