Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: content/renderer/render_widget.cc

Issue 2157113002: Move didFocus from WebWidgetClient to WebViewClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698