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

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

Issue 2475443003: Drag-and-drop: Move startDrag out of WebView/RenderView. (Closed)
Patch Set: Removed unneeded declarations. Created 4 years, 1 month 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 bool shouldAutoResize() const { return m_shouldAutoResize; } 383 bool shouldAutoResize() const { return m_shouldAutoResize; }
384 384
385 IntSize minAutoSize() const { return m_minAutoSize; } 385 IntSize minAutoSize() const { return m_minAutoSize; }
386 386
387 IntSize maxAutoSize() const { return m_maxAutoSize; } 387 IntSize maxAutoSize() const { return m_maxAutoSize; }
388 388
389 void updateMainFrameLayoutSize(); 389 void updateMainFrameLayoutSize();
390 void updatePageDefinedViewportConstraints(const ViewportDescription&); 390 void updatePageDefinedViewportConstraints(const ViewportDescription&);
391 391
392 // Start a system drag and drop operation.
393 void startDragging(LocalFrame*,
394 const WebDragData& dragData,
395 WebDragOperationsMask mask,
396 const WebImage& dragImage,
397 const WebPoint& dragImageOffset);
398
399 PagePopup* openPagePopup(PagePopupClient*); 392 PagePopup* openPagePopup(PagePopupClient*);
400 void closePagePopup(PagePopup*); 393 void closePagePopup(PagePopup*);
401 void cleanupPagePopup(); 394 void cleanupPagePopup();
402 LocalDOMWindow* pagePopupWindow() const; 395 LocalDOMWindow* pagePopupWindow() const;
403 396
404 // Returns the input event we're currently processing. This is used in some 397 // Returns the input event we're currently processing. This is used in some
405 // cases where the WebCore DOM event doesn't have the information we need. 398 // cases where the WebCore DOM event doesn't have the information we need.
406 static const WebInputEvent* currentInputEvent() { 399 static const WebInputEvent* currentInputEvent() {
407 return m_currentInputEvent; 400 return m_currentInputEvent;
408 } 401 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 497
505 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } 498 FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
506 499
507 bool isTransparent() const; 500 bool isTransparent() const;
508 void setIsTransparent(bool value); 501 void setIsTransparent(bool value);
509 502
510 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } 503 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; }
511 504
512 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } 505 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); }
513 506
507 void setDoingDragAndDrop(bool doing) { m_doingDragAndDrop = doing; }
508
514 private: 509 private:
515 InspectorOverlay* inspectorOverlay(); 510 InspectorOverlay* inspectorOverlay();
516 511
517 void setPageScaleFactorAndLocation(float, const FloatPoint&); 512 void setPageScaleFactorAndLocation(float, const FloatPoint&);
518 void propagateZoomFactorToLocalFrameRoots(Frame*, float); 513 void propagateZoomFactorToLocalFrameRoots(Frame*, float);
519 514
520 void scrollAndRescaleViewports(float scaleFactor, 515 void scrollAndRescaleViewports(float scaleFactor,
521 const IntPoint& mainFrameOrigin, 516 const IntPoint& mainFrameOrigin,
522 const FloatPoint& visualViewportOrigin); 517 const FloatPoint& visualViewportOrigin);
523 518
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 float m_doubleTapZoomPageScaleFactor; 657 float m_doubleTapZoomPageScaleFactor;
663 // Have we sent a double-tap zoom and not yet heard back the scale? 658 // Have we sent a double-tap zoom and not yet heard back the scale?
664 bool m_doubleTapZoomPending; 659 bool m_doubleTapZoomPending;
665 660
666 // Used for testing purposes. 661 // Used for testing purposes.
667 bool m_enableFakePageScaleAnimationForTesting; 662 bool m_enableFakePageScaleAnimationForTesting;
668 IntPoint m_fakePageScaleAnimationTargetPosition; 663 IntPoint m_fakePageScaleAnimationTargetPosition;
669 float m_fakePageScaleAnimationPageScaleFactor; 664 float m_fakePageScaleAnimationPageScaleFactor;
670 bool m_fakePageScaleAnimationUseAnchor; 665 bool m_fakePageScaleAnimationUseAnchor;
671 666
667 // TODO(paulmeyer): Move this to WebWidget once all drag-and-drop functions
668 // are there.
672 bool m_doingDragAndDrop; 669 bool m_doingDragAndDrop;
673 670
674 bool m_ignoreInputEvents; 671 bool m_ignoreInputEvents;
675 672
676 float m_compositorDeviceScaleFactorOverride; 673 float m_compositorDeviceScaleFactorOverride;
677 TransformationMatrix m_deviceEmulationTransform; 674 TransformationMatrix m_deviceEmulationTransform;
678 675
679 // Webkit expects keyPress events to be suppressed if the associated keyDown 676 // Webkit expects keyPress events to be suppressed if the associated keyDown
680 // event was handled. Safari implements this behavior by peeking out the 677 // event was handled. Safari implements this behavior by peeking out the
681 // associated WM_CHAR event if the keydown was handled. We emulate 678 // associated WM_CHAR event if the keydown was handled. We emulate
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 759 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
763 }; 760 };
764 761
765 // We have no ways to check if the specified WebView is an instance of 762 // We have no ways to check if the specified WebView is an instance of
766 // WebViewImpl because WebViewImpl is the only implementation of WebView. 763 // WebViewImpl because WebViewImpl is the only implementation of WebView.
767 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 764 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
768 765
769 } // namespace blink 766 } // namespace blink
770 767
771 #endif 768 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698