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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2397883002: Convert drag event position to root frame. (Closed)
Patch Set: Created 4 years, 2 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 void disableAutoResizeMode() override; 229 void disableAutoResizeMode() override;
230 void performMediaPlayerAction( 230 void performMediaPlayerAction(
231 const WebMediaPlayerAction& action, 231 const WebMediaPlayerAction& action,
232 const WebPoint& location) override; 232 const WebPoint& location) override;
233 void performPluginAction( 233 void performPluginAction(
234 const WebPluginAction&, 234 const WebPluginAction&,
235 const WebPoint&) override; 235 const WebPoint&) override;
236 WebHitTestResult hitTestResultAt(const WebPoint&) override; 236 WebHitTestResult hitTestResultAt(const WebPoint&) override;
237 WebHitTestResult hitTestResultForTap(const WebPoint&, const WebSize&) overri de; 237 WebHitTestResult hitTestResultForTap(const WebPoint&, const WebSize&) overri de;
238 void dragSourceEndedAt( 238 void dragSourceEndedAt(
239 const WebPoint& clientPoint, 239 const WebPoint& pointInViewport,
240 const WebPoint& screenPoint, 240 const WebPoint& screenPoint,
241 WebDragOperation) override; 241 WebDragOperation) override;
242 void dragSourceSystemDragEnded() override; 242 void dragSourceSystemDragEnded() override;
243 WebDragOperation dragTargetDragEnter( 243 WebDragOperation dragTargetDragEnter(
244 const WebDragData&, 244 const WebDragData&,
245 const WebPoint& clientPoint, 245 const WebPoint& pointInViewport,
246 const WebPoint& screenPoint, 246 const WebPoint& screenPoint,
247 WebDragOperationsMask operationsAllowed, 247 WebDragOperationsMask operationsAllowed,
248 int modifiers) override; 248 int modifiers) override;
249 WebDragOperation dragTargetDragOver( 249 WebDragOperation dragTargetDragOver(
250 const WebPoint& clientPoint, 250 const WebPoint& pointInViewport,
251 const WebPoint& screenPoint, 251 const WebPoint& screenPoint,
252 WebDragOperationsMask operationsAllowed, 252 WebDragOperationsMask operationsAllowed,
253 int modifiers) override; 253 int modifiers) override;
254 void dragTargetDragLeave() override; 254 void dragTargetDragLeave() override;
255 void dragTargetDrop( 255 void dragTargetDrop(
256 const WebDragData&, 256 const WebDragData&,
257 const WebPoint& clientPoint, 257 const WebPoint& pointInViewport,
258 const WebPoint& screenPoint, 258 const WebPoint& screenPoint,
259 int modifiers) override; 259 int modifiers) override;
260 void spellingMarkers(WebVector<uint32_t>* markers) override; 260 void spellingMarkers(WebVector<uint32_t>* markers) override;
261 void removeSpellingMarkersUnderWords(const WebVector<WebString>& words) over ride; 261 void removeSpellingMarkersUnderWords(const WebVector<WebString>& words) over ride;
262 unsigned long createUniqueIdentifierForRequest() override; 262 unsigned long createUniqueIdentifierForRequest() override;
263 void enableDeviceEmulation(const WebDeviceEmulationParams&) override; 263 void enableDeviceEmulation(const WebDeviceEmulationParams&) override;
264 void disableDeviceEmulation() override; 264 void disableDeviceEmulation() override;
265 WebAXObject accessibilityObject() override; 265 WebAXObject accessibilityObject() override;
266 void setSelectionColors(unsigned activeBackgroundColor, 266 void setSelectionColors(unsigned activeBackgroundColor,
267 unsigned activeForegroundColor, 267 unsigned activeForegroundColor,
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 bool scrollViewWithKeyboard(int keyCode, int modifiers); 570 bool scrollViewWithKeyboard(int keyCode, int modifiers);
571 571
572 void hideSelectPopup(); 572 void hideSelectPopup();
573 573
574 HitTestResult hitTestResultForRootFramePos(const IntPoint&); 574 HitTestResult hitTestResultForRootFramePos(const IntPoint&);
575 HitTestResult hitTestResultForViewportPos(const IntPoint&); 575 HitTestResult hitTestResultForViewportPos(const IntPoint&);
576 576
577 // Consolidate some common code between starting a drag over a target and 577 // Consolidate some common code between starting a drag over a target and
578 // updating a drag over a target. If we're starting a drag, |isEntering| 578 // updating a drag over a target. If we're starting a drag, |isEntering|
579 // should be true. 579 // should be true.
580 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& clientPoint, 580 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& pointInViewport,
581 const WebPoint& screenPoint, 581 const WebPoint& screenPoint,
582 DragAction, 582 DragAction,
583 int modifiers); 583 int modifiers);
584 584
585 void configureAutoResizeMode(); 585 void configureAutoResizeMode();
586 586
587 void initializeLayerTreeView(); 587 void initializeLayerTreeView();
588 588
589 void setIsAcceleratedCompositingActive(bool); 589 void setIsAcceleratedCompositingActive(bool);
590 void doComposite(); 590 void doComposite();
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 780 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
781 }; 781 };
782 782
783 // We have no ways to check if the specified WebView is an instance of 783 // We have no ways to check if the specified WebView is an instance of
784 // WebViewImpl because WebViewImpl is the only implementation of WebView. 784 // WebViewImpl because WebViewImpl is the only implementation of WebView.
785 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 785 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
786 786
787 } // namespace blink 787 } // namespace blink
788 788
789 #endif 789 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698