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

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

Issue 2288313002: Return the WebViewFrameWidget in RenderWidget::webwidget() if there (Closed)
Patch Set: rename webwidget_ -> webwidget_internal_ Created 4 years, 3 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_mouse_lock_dispatcher.h" 5 #include "content/renderer/render_widget_mouse_lock_dispatcher.h"
6 6
7 #include "content/common/view_messages.h" 7 #include "content/common/view_messages.h"
8 #include "content/renderer/render_view_impl.h" 8 #include "content/renderer/render_view_impl.h"
9 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
10 #include "third_party/WebKit/public/web/WebFrame.h" 10 #include "third_party/WebKit/public/web/WebFrame.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void RenderWidgetMouseLockDispatcher::OnLockMouseACK(bool succeeded) { 51 void RenderWidgetMouseLockDispatcher::OnLockMouseACK(bool succeeded) {
52 // Notify the base class. 52 // Notify the base class.
53 MouseLockDispatcher::OnLockMouseACK(succeeded); 53 MouseLockDispatcher::OnLockMouseACK(succeeded);
54 54
55 // Mouse Lock removes the system cursor and provides all mouse motion as 55 // Mouse Lock removes the system cursor and provides all mouse motion as
56 // .movementX/Y values on events all sent to a fixed target. This requires 56 // .movementX/Y values on events all sent to a fixed target. This requires
57 // content to specifically request the mode to be entered. 57 // content to specifically request the mode to be entered.
58 // Mouse Capture is implicitly given for the duration of a drag event, and 58 // Mouse Capture is implicitly given for the duration of a drag event, and
59 // sends all mouse events to the initial target of the drag. 59 // sends all mouse events to the initial target of the drag.
60 // If Lock is entered it supercedes any in progress Capture. 60 // If Lock is entered it supercedes any in progress Capture.
61 if (succeeded && render_widget_->webwidget()) 61 if (succeeded && render_widget_->GetWebWidget())
62 render_widget_->webwidget()->mouseCaptureLost(); 62 render_widget_->GetWebWidget()->mouseCaptureLost();
63 } 63 }
64 64
65 } // namespace content 65 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget_fullscreen.cc ('k') | content/renderer/render_widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698