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