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

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: rebase 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
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/public/web/WebViewClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 return; 1213 return;
1214 1214
1215 did_show_ = true; 1215 did_show_ = true;
1216 // NOTE: initial_rect_ may still have its default values at this point, but 1216 // NOTE: initial_rect_ may still have its default values at this point, but
1217 // that's okay. It'll be ignored if as_popup is false, or the browser 1217 // that's okay. It'll be ignored if as_popup is false, or the browser
1218 // process will impose a default position otherwise. 1218 // process will impose a default position otherwise.
1219 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_rect_)); 1219 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_rect_));
1220 SetPendingWindowRect(initial_rect_); 1220 SetPendingWindowRect(initial_rect_);
1221 } 1221 }
1222 1222
1223 void RenderWidget::didFocus() {
1224 }
1225
1226 void RenderWidget::DoDeferredClose() { 1223 void RenderWidget::DoDeferredClose() {
1227 WillCloseLayerTreeView(); 1224 WillCloseLayerTreeView();
1228 Send(new ViewHostMsg_Close(routing_id_)); 1225 Send(new ViewHostMsg_Close(routing_id_));
1229 } 1226 }
1230 1227
1231 void RenderWidget::NotifyOnClose() { 1228 void RenderWidget::NotifyOnClose() {
1232 FOR_EACH_OBSERVER(RenderFrameImpl, render_frames_, WidgetWillClose()); 1229 FOR_EACH_OBSERVER(RenderFrameImpl, render_frames_, WidgetWillClose());
1233 } 1230 }
1234 1231
1235 void RenderWidget::closeWidgetSoon() { 1232 void RenderWidget::closeWidgetSoon() {
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
2043 void RenderWidget::requestPointerUnlock() { 2040 void RenderWidget::requestPointerUnlock() {
2044 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); 2041 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get());
2045 } 2042 }
2046 2043
2047 bool RenderWidget::isPointerLocked() { 2044 bool RenderWidget::isPointerLocked() {
2048 return mouse_lock_dispatcher_->IsMouseLockedTo( 2045 return mouse_lock_dispatcher_->IsMouseLockedTo(
2049 webwidget_mouse_lock_target_.get()); 2046 webwidget_mouse_lock_target_.get());
2050 } 2047 }
2051 2048
2052 } // namespace content 2049 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698