| 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 <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1212 return; | 1212 return; |
| 1213 | 1213 |
| 1214 did_show_ = true; | 1214 did_show_ = true; |
| 1215 // NOTE: initial_rect_ may still have its default values at this point, but | 1215 // NOTE: initial_rect_ may still have its default values at this point, but |
| 1216 // that's okay. It'll be ignored if as_popup is false, or the browser | 1216 // that's okay. It'll be ignored if as_popup is false, or the browser |
| 1217 // process will impose a default position otherwise. | 1217 // process will impose a default position otherwise. |
| 1218 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_rect_)); | 1218 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_rect_)); |
| 1219 SetPendingWindowRect(initial_rect_); | 1219 SetPendingWindowRect(initial_rect_); |
| 1220 } | 1220 } |
| 1221 | 1221 |
| 1222 void RenderWidget::didFocus() { | |
| 1223 } | |
| 1224 | |
| 1225 void RenderWidget::DoDeferredClose() { | 1222 void RenderWidget::DoDeferredClose() { |
| 1226 WillCloseLayerTreeView(); | 1223 WillCloseLayerTreeView(); |
| 1227 Send(new ViewHostMsg_Close(routing_id_)); | 1224 Send(new ViewHostMsg_Close(routing_id_)); |
| 1228 } | 1225 } |
| 1229 | 1226 |
| 1230 void RenderWidget::NotifyOnClose() { | 1227 void RenderWidget::NotifyOnClose() { |
| 1231 FOR_EACH_OBSERVER(RenderFrameImpl, render_frames_, WidgetWillClose()); | 1228 FOR_EACH_OBSERVER(RenderFrameImpl, render_frames_, WidgetWillClose()); |
| 1232 } | 1229 } |
| 1233 | 1230 |
| 1234 void RenderWidget::closeWidgetSoon() { | 1231 void RenderWidget::closeWidgetSoon() { |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1977 void RenderWidget::requestPointerUnlock() { | 1974 void RenderWidget::requestPointerUnlock() { |
| 1978 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); | 1975 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); |
| 1979 } | 1976 } |
| 1980 | 1977 |
| 1981 bool RenderWidget::isPointerLocked() { | 1978 bool RenderWidget::isPointerLocked() { |
| 1982 return mouse_lock_dispatcher_->IsMouseLockedTo( | 1979 return mouse_lock_dispatcher_->IsMouseLockedTo( |
| 1983 webwidget_mouse_lock_target_.get()); | 1980 webwidget_mouse_lock_target_.get()); |
| 1984 } | 1981 } |
| 1985 | 1982 |
| 1986 } // namespace content | 1983 } // namespace content |
| OLD | NEW |