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

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

Issue 879333002: Support buttons attribute for drag event (blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 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 | « Source/web/WebInputEventConversion.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 virtual void dragSourceEndedAt( 237 virtual void dragSourceEndedAt(
238 const WebPoint& clientPoint, 238 const WebPoint& clientPoint,
239 const WebPoint& screenPoint, 239 const WebPoint& screenPoint,
240 WebDragOperation) override; 240 WebDragOperation) override;
241 virtual void dragSourceSystemDragEnded() override; 241 virtual void dragSourceSystemDragEnded() override;
242 virtual WebDragOperation dragTargetDragEnter( 242 virtual WebDragOperation dragTargetDragEnter(
243 const WebDragData&, 243 const WebDragData&,
244 const WebPoint& clientPoint, 244 const WebPoint& clientPoint,
245 const WebPoint& screenPoint, 245 const WebPoint& screenPoint,
246 WebDragOperationsMask operationsAllowed, 246 WebDragOperationsMask operationsAllowed,
247 int keyModifiers) override; 247 int modifiers) override;
248 virtual WebDragOperation dragTargetDragOver( 248 virtual WebDragOperation dragTargetDragOver(
249 const WebPoint& clientPoint, 249 const WebPoint& clientPoint,
250 const WebPoint& screenPoint, 250 const WebPoint& screenPoint,
251 WebDragOperationsMask operationsAllowed, 251 WebDragOperationsMask operationsAllowed,
252 int keyModifiers) override; 252 int modifiers) override;
253 virtual void dragTargetDragLeave() override; 253 virtual void dragTargetDragLeave() override;
254 virtual void dragTargetDrop( 254 virtual void dragTargetDrop(
255 const WebPoint& clientPoint, 255 const WebPoint& clientPoint,
256 const WebPoint& screenPoint, 256 const WebPoint& screenPoint,
257 int keyModifiers) override; 257 int modifiers) override;
258 virtual void spellingMarkers(WebVector<uint32_t>* markers) override; 258 virtual void spellingMarkers(WebVector<uint32_t>* markers) override;
259 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor ds) override; 259 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor ds) override;
260 virtual unsigned long createUniqueIdentifierForRequest() override; 260 virtual unsigned long createUniqueIdentifierForRequest() override;
261 virtual void inspectElementAt(const WebPoint&) override; 261 virtual void inspectElementAt(const WebPoint&) override;
262 virtual void setCompositorDeviceScaleFactorOverride(float) override; 262 virtual void setCompositorDeviceScaleFactorOverride(float) override;
263 virtual void setRootLayerTransform(const WebSize& offset, float scale) overr ide; 263 virtual void setRootLayerTransform(const WebSize& offset, float scale) overr ide;
264 virtual WebDevToolsAgent* devToolsAgent() override; 264 virtual WebDevToolsAgent* devToolsAgent() override;
265 virtual WebAXObject accessibilityObject() override; 265 virtual WebAXObject accessibilityObject() override;
266 virtual void setSelectionColors(unsigned activeBackgroundColor, 266 virtual void setSelectionColors(unsigned activeBackgroundColor,
267 unsigned activeForegroundColor, 267 unsigned activeForegroundColor,
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 // Converts |pos| from window coordinates to contents coordinates and gets 583 // Converts |pos| from window coordinates to contents coordinates and gets
584 // the HitTestResult for it. 584 // the HitTestResult for it.
585 HitTestResult hitTestResultForWindowPos(const IntPoint&); 585 HitTestResult hitTestResultForWindowPos(const IntPoint&);
586 586
587 // Consolidate some common code between starting a drag over a target and 587 // Consolidate some common code between starting a drag over a target and
588 // updating a drag over a target. If we're starting a drag, |isEntering| 588 // updating a drag over a target. If we're starting a drag, |isEntering|
589 // should be true. 589 // should be true.
590 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& clientPoint, 590 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& clientPoint,
591 const WebPoint& screenPoint, 591 const WebPoint& screenPoint,
592 DragAction, 592 DragAction,
593 int keyModifiers); 593 int modifiers);
594 594
595 void configureAutoResizeMode(); 595 void configureAutoResizeMode();
596 596
597 void initializeLayerTreeView(); 597 void initializeLayerTreeView();
598 598
599 void setIsAcceleratedCompositingActive(bool); 599 void setIsAcceleratedCompositingActive(bool);
600 void doComposite(); 600 void doComposite();
601 void reallocateRenderer(); 601 void reallocateRenderer();
602 void updateLayerTreeViewport(); 602 void updateLayerTreeViewport();
603 void updateLayerTreeBackgroundColor(); 603 void updateLayerTreeBackgroundColor();
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 }; 776 };
777 777
778 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 778 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
779 // We have no ways to check if the specified WebView is an instance of 779 // We have no ways to check if the specified WebView is an instance of
780 // WebViewImpl because WebViewImpl is the only implementation of WebView. 780 // WebViewImpl because WebViewImpl is the only implementation of WebView.
781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
782 782
783 } // namespace blink 783 } // namespace blink
784 784
785 #endif 785 #endif
OLDNEW
« no previous file with comments | « Source/web/WebInputEventConversion.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698