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

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

Issue 2517653003: Drag-and-drop across OOPIFs. (Closed)
Patch Set: 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 494
495 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } 495 FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
496 496
497 bool isTransparent() const; 497 bool isTransparent() const;
498 void setIsTransparent(bool value); 498 void setIsTransparent(bool value);
499 499
500 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } 500 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; }
501 501
502 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } 502 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); }
503 503
504 void setDoingDragAndDrop(bool doing) { m_doingDragAndDrop = doing; }
505 bool doingDragAndDrop() { return m_doingDragAndDrop; }
506
507 // Returns the currently active WebInputMethodController which the one 504 // Returns the currently active WebInputMethodController which the one
508 // corresponding to the focused frame. It will return nullptr if there are 505 // corresponding to the focused frame. It will return nullptr if there are
509 // none or |m_imeAcceptEvents| is false. 506 // none or |m_imeAcceptEvents| is false.
510 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; 507 WebInputMethodControllerImpl* getActiveWebInputMethodController() const;
511 508
512 private: 509 private:
513 InspectorOverlay* inspectorOverlay(); 510 InspectorOverlay* inspectorOverlay();
514 511
515 void setPageScaleFactorAndLocation(float, const FloatPoint&); 512 void setPageScaleFactorAndLocation(float, const FloatPoint&);
516 void propagateZoomFactorToLocalFrameRoots(Frame*, float); 513 void propagateZoomFactorToLocalFrameRoots(Frame*, float);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 float m_doubleTapZoomPageScaleFactor; 644 float m_doubleTapZoomPageScaleFactor;
648 // Have we sent a double-tap zoom and not yet heard back the scale? 645 // Have we sent a double-tap zoom and not yet heard back the scale?
649 bool m_doubleTapZoomPending; 646 bool m_doubleTapZoomPending;
650 647
651 // Used for testing purposes. 648 // Used for testing purposes.
652 bool m_enableFakePageScaleAnimationForTesting; 649 bool m_enableFakePageScaleAnimationForTesting;
653 IntPoint m_fakePageScaleAnimationTargetPosition; 650 IntPoint m_fakePageScaleAnimationTargetPosition;
654 float m_fakePageScaleAnimationPageScaleFactor; 651 float m_fakePageScaleAnimationPageScaleFactor;
655 bool m_fakePageScaleAnimationUseAnchor; 652 bool m_fakePageScaleAnimationUseAnchor;
656 653
657 // TODO(paulmeyer): Move this to WebWidget once all drag-and-drop functions
658 // are there.
659 bool m_doingDragAndDrop;
660
661 bool m_ignoreInputEvents; 654 bool m_ignoreInputEvents;
662 655
663 float m_compositorDeviceScaleFactorOverride; 656 float m_compositorDeviceScaleFactorOverride;
664 TransformationMatrix m_deviceEmulationTransform; 657 TransformationMatrix m_deviceEmulationTransform;
665 658
666 // Webkit expects keyPress events to be suppressed if the associated keyDown 659 // Webkit expects keyPress events to be suppressed if the associated keyDown
667 // event was handled. Safari implements this behavior by peeking out the 660 // event was handled. Safari implements this behavior by peeking out the
668 // associated WM_CHAR event if the keydown was handled. We emulate 661 // associated WM_CHAR event if the keydown was handled. We emulate
669 // this behavior by setting this flag if the keyDown was handled. 662 // this behavior by setting this flag if the keyDown was handled.
670 bool m_suppressNextKeypressEvent; 663 bool m_suppressNextKeypressEvent;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 734 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
742 }; 735 };
743 736
744 // We have no ways to check if the specified WebView is an instance of 737 // We have no ways to check if the specified WebView is an instance of
745 // WebViewImpl because WebViewImpl is the only implementation of WebView. 738 // WebViewImpl because WebViewImpl is the only implementation of WebView.
746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 739 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
747 740
748 } // namespace blink 741 } // namespace blink
749 742
750 #endif 743 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698