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

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.cpp

Issue 2848513002: Introduce the abstract class WebViewBase, to decouple WebViewImpl. (Closed)
Patch Set: Fix typo. Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "web/WebFrameWidgetBase.h" 5 #include "web/WebFrameWidgetBase.h"
6 6
7 #include "core/dom/DocumentUserGestureToken.h" 7 #include "core/dom/DocumentUserGestureToken.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/VisualViewport.h" 9 #include "core/frame/VisualViewport.h"
10 #include "core/input/EventHandler.h" 10 #include "core/input/EventHandler.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 drag_operation_ = static_cast<WebDragOperation>(drop_effect); 215 drag_operation_ = static_cast<WebDragOperation>(drop_effect);
216 216
217 return drag_operation_; 217 return drag_operation_;
218 } 218 }
219 219
220 WebPoint WebFrameWidgetBase::ViewportToRootFrame( 220 WebPoint WebFrameWidgetBase::ViewportToRootFrame(
221 const WebPoint& point_in_viewport) const { 221 const WebPoint& point_in_viewport) const {
222 return GetPage()->GetVisualViewport().ViewportToRootFrame(point_in_viewport); 222 return GetPage()->GetVisualViewport().ViewportToRootFrame(point_in_viewport);
223 } 223 }
224 224
225 WebViewImpl* WebFrameWidgetBase::View() const { 225 WebViewBase* WebFrameWidgetBase::View() const {
226 return ToWebLocalFrameImpl(LocalRoot())->ViewImpl(); 226 return ToWebLocalFrameImpl(LocalRoot())->ViewImpl();
227 } 227 }
228 228
229 Page* WebFrameWidgetBase::GetPage() const { 229 Page* WebFrameWidgetBase::GetPage() const {
230 return View()->GetPage(); 230 return View()->GetPage();
231 } 231 }
232 232
233 void WebFrameWidgetBase::DidAcquirePointerLock() { 233 void WebFrameWidgetBase::DidAcquirePointerLock() {
234 GetPage()->GetPointerLockController().DidAcquirePointerLock(); 234 GetPage()->GetPointerLockController().DidAcquirePointerLock();
235 } 235 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 if (GetPage()) { 276 if (GetPage()) {
277 WebMouseEvent transformed_event = TransformWebMouseEvent( 277 WebMouseEvent transformed_event = TransformWebMouseEvent(
278 ToWebLocalFrameImpl(LocalRoot())->GetFrameView(), mouse_event); 278 ToWebLocalFrameImpl(LocalRoot())->GetFrameView(), mouse_event);
279 GetPage()->GetPointerLockController().DispatchLockedMouseEvent( 279 GetPage()->GetPointerLockController().DispatchLockedMouseEvent(
280 transformed_event, event_type); 280 transformed_event, event_type);
281 } 281 }
282 } 282 }
283 283
284 } // namespace blink 284 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetBase.h ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698