| 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/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1523 // NOTE: initial_rect_ may still have its default values at this point, but | 1523 // NOTE: initial_rect_ may still have its default values at this point, but |
| 1524 // that's okay. It'll be ignored if as_popup is false, or the browser | 1524 // that's okay. It'll be ignored if as_popup is false, or the browser |
| 1525 // process will impose a default position otherwise. | 1525 // process will impose a default position otherwise. |
| 1526 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_rect_)); | 1526 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_rect_)); |
| 1527 SetPendingWindowRect(initial_rect_); | 1527 SetPendingWindowRect(initial_rect_); |
| 1528 } | 1528 } |
| 1529 | 1529 |
| 1530 void RenderWidget::didFocus() { | 1530 void RenderWidget::didFocus() { |
| 1531 } | 1531 } |
| 1532 | 1532 |
| 1533 void RenderWidget::didBlur() { | |
| 1534 } | |
| 1535 | |
| 1536 void RenderWidget::DoDeferredClose() { | 1533 void RenderWidget::DoDeferredClose() { |
| 1537 WillCloseLayerTreeView(); | 1534 WillCloseLayerTreeView(); |
| 1538 Send(new ViewHostMsg_Close(routing_id_)); | 1535 Send(new ViewHostMsg_Close(routing_id_)); |
| 1539 } | 1536 } |
| 1540 | 1537 |
| 1541 void RenderWidget::NotifyOnClose() { | 1538 void RenderWidget::NotifyOnClose() { |
| 1542 FOR_EACH_OBSERVER(RenderFrameImpl, render_frames_, WidgetWillClose()); | 1539 FOR_EACH_OBSERVER(RenderFrameImpl, render_frames_, WidgetWillClose()); |
| 1543 } | 1540 } |
| 1544 | 1541 |
| 1545 void RenderWidget::closeWidgetSoon() { | 1542 void RenderWidget::closeWidgetSoon() { |
| (...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2385 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { | 2382 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { |
| 2386 video_hole_frames_.AddObserver(frame); | 2383 video_hole_frames_.AddObserver(frame); |
| 2387 } | 2384 } |
| 2388 | 2385 |
| 2389 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { | 2386 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { |
| 2390 video_hole_frames_.RemoveObserver(frame); | 2387 video_hole_frames_.RemoveObserver(frame); |
| 2391 } | 2388 } |
| 2392 #endif // defined(VIDEO_HOLE) | 2389 #endif // defined(VIDEO_HOLE) |
| 2393 | 2390 |
| 2394 } // namespace content | 2391 } // namespace content |
| OLD | NEW |