| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 void resetScaleStateImmediately(); | 290 void resetScaleStateImmediately(); |
| 291 | 291 |
| 292 HitTestResult coreHitTestResultAt(const WebPoint&); | 292 HitTestResult coreHitTestResultAt(const WebPoint&); |
| 293 void invalidateRect(const IntRect&); | 293 void invalidateRect(const IntRect&); |
| 294 | 294 |
| 295 void setIgnoreInputEvents(bool newValue); | 295 void setIgnoreInputEvents(bool newValue); |
| 296 void setBaseBackgroundColor(WebColor); | 296 void setBaseBackgroundColor(WebColor); |
| 297 void setBackgroundColorOverride(WebColor); | 297 void setBackgroundColorOverride(WebColor); |
| 298 void setZoomFactorOverride(float); | 298 void setZoomFactorOverride(float); |
| 299 void setCompositorDeviceScaleFactorOverride(float); | 299 void setCompositorDeviceScaleFactorOverride(float); |
| 300 void setRootLayerTransform(const TransformationMatrix&); | 300 void setDeviceEmulationTransform(const TransformationMatrix&); |
| 301 TransformationMatrix getRootLayerTransformForTesting() const; | 301 TransformationMatrix getRootLayerTransformForTesting() const; |
| 302 | 302 |
| 303 Color baseBackgroundColor() const { return m_baseBackgroundColor; } | 303 Color baseBackgroundColor() const { return m_baseBackgroundColor; } |
| 304 | 304 |
| 305 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } | 305 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } |
| 306 | 306 |
| 307 Frame* focusedCoreFrame() const; | 307 Frame* focusedCoreFrame() const; |
| 308 | 308 |
| 309 // Returns the currently focused Element or null if no element has focus. | 309 // Returns the currently focused Element or null if no element has focus. |
| 310 Element* focusedElement() const; | 310 Element* focusedElement() const; |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 | 579 |
| 580 void configureAutoResizeMode(); | 580 void configureAutoResizeMode(); |
| 581 | 581 |
| 582 void initializeLayerTreeView(); | 582 void initializeLayerTreeView(); |
| 583 | 583 |
| 584 void setIsAcceleratedCompositingActive(bool); | 584 void setIsAcceleratedCompositingActive(bool); |
| 585 void doComposite(); | 585 void doComposite(); |
| 586 void reallocateRenderer(); | 586 void reallocateRenderer(); |
| 587 void updateLayerTreeViewport(); | 587 void updateLayerTreeViewport(); |
| 588 void updateLayerTreeBackgroundColor(); | 588 void updateLayerTreeBackgroundColor(); |
| 589 void updateRootLayerTransform(); | 589 void updateDeviceEmulationTransform(); |
| 590 void updateLayerTreeDeviceScaleFactor(); | 590 void updateLayerTreeDeviceScaleFactor(); |
| 591 | 591 |
| 592 // Helper function: Widens the width of |source| by the specified margins | 592 // Helper function: Widens the width of |source| by the specified margins |
| 593 // while keeping it smaller than page width. | 593 // while keeping it smaller than page width. |
| 594 WebRect widenRectWithinPageBounds(const WebRect& source, | 594 WebRect widenRectWithinPageBounds(const WebRect& source, |
| 595 int targetMargin, | 595 int targetMargin, |
| 596 int minimumMargin); | 596 int minimumMargin); |
| 597 | 597 |
| 598 void pointerLockMouseEvent(const WebInputEvent&); | 598 void pointerLockMouseEvent(const WebInputEvent&); |
| 599 | 599 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 bool m_enableFakePageScaleAnimationForTesting; | 682 bool m_enableFakePageScaleAnimationForTesting; |
| 683 IntPoint m_fakePageScaleAnimationTargetPosition; | 683 IntPoint m_fakePageScaleAnimationTargetPosition; |
| 684 float m_fakePageScaleAnimationPageScaleFactor; | 684 float m_fakePageScaleAnimationPageScaleFactor; |
| 685 bool m_fakePageScaleAnimationUseAnchor; | 685 bool m_fakePageScaleAnimationUseAnchor; |
| 686 | 686 |
| 687 bool m_doingDragAndDrop; | 687 bool m_doingDragAndDrop; |
| 688 | 688 |
| 689 bool m_ignoreInputEvents; | 689 bool m_ignoreInputEvents; |
| 690 | 690 |
| 691 float m_compositorDeviceScaleFactorOverride; | 691 float m_compositorDeviceScaleFactorOverride; |
| 692 TransformationMatrix m_rootLayerTransform; | 692 TransformationMatrix m_deviceEmulationTransform; |
| 693 | 693 |
| 694 // Webkit expects keyPress events to be suppressed if the associated keyDown | 694 // Webkit expects keyPress events to be suppressed if the associated keyDown |
| 695 // event was handled. Safari implements this behavior by peeking out the | 695 // event was handled. Safari implements this behavior by peeking out the |
| 696 // associated WM_CHAR event if the keydown was handled. We emulate | 696 // associated WM_CHAR event if the keydown was handled. We emulate |
| 697 // this behavior by setting this flag if the keyDown was handled. | 697 // this behavior by setting this flag if the keyDown was handled. |
| 698 bool m_suppressNextKeypressEvent; | 698 bool m_suppressNextKeypressEvent; |
| 699 | 699 |
| 700 // Represents whether or not this object should process incoming IME events. | 700 // Represents whether or not this object should process incoming IME events. |
| 701 bool m_imeAcceptEvents; | 701 bool m_imeAcceptEvents; |
| 702 | 702 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 777 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 778 }; | 778 }; |
| 779 | 779 |
| 780 // We have no ways to check if the specified WebView is an instance of | 780 // We have no ways to check if the specified WebView is an instance of |
| 781 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 781 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 782 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 782 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 783 | 783 |
| 784 } // namespace blink | 784 } // namespace blink |
| 785 | 785 |
| 786 #endif | 786 #endif |
| OLD | NEW |