| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 float defaultMinimumPageScaleFactor() const; | 280 float defaultMinimumPageScaleFactor() const; |
| 281 float defaultMaximumPageScaleFactor() const; | 281 float defaultMaximumPageScaleFactor() const; |
| 282 float minimumPageScaleFactor() const; | 282 float minimumPageScaleFactor() const; |
| 283 float maximumPageScaleFactor() const; | 283 float maximumPageScaleFactor() const; |
| 284 float clampPageScaleFactorToLimits(float) const; | 284 float clampPageScaleFactorToLimits(float) const; |
| 285 void resetScaleStateImmediately(); | 285 void resetScaleStateImmediately(); |
| 286 | 286 |
| 287 HitTestResult coreHitTestResultAt(const WebPoint&); | 287 HitTestResult coreHitTestResultAt(const WebPoint&); |
| 288 void invalidateRect(const IntRect&); | 288 void invalidateRect(const IntRect&); |
| 289 | 289 |
| 290 void setIgnoreInputEvents(bool newValue); | |
| 291 void setBaseBackgroundColor(WebColor); | 290 void setBaseBackgroundColor(WebColor); |
| 292 void setBackgroundColorOverride(WebColor); | 291 void setBackgroundColorOverride(WebColor); |
| 293 void setZoomFactorOverride(float); | 292 void setZoomFactorOverride(float); |
| 294 void setCompositorDeviceScaleFactorOverride(float); | 293 void setCompositorDeviceScaleFactorOverride(float); |
| 295 void setDeviceEmulationTransform(const TransformationMatrix&); | 294 void setDeviceEmulationTransform(const TransformationMatrix&); |
| 296 TransformationMatrix getDeviceEmulationTransformForTesting() const; | 295 TransformationMatrix getDeviceEmulationTransformForTesting() const; |
| 297 | 296 |
| 298 Color baseBackgroundColor() const { return m_baseBackgroundColor; } | 297 Color baseBackgroundColor() const { return m_baseBackgroundColor; } |
| 299 | 298 |
| 300 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } | 299 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 float m_doubleTapZoomPageScaleFactor; | 643 float m_doubleTapZoomPageScaleFactor; |
| 645 // Have we sent a double-tap zoom and not yet heard back the scale? | 644 // Have we sent a double-tap zoom and not yet heard back the scale? |
| 646 bool m_doubleTapZoomPending; | 645 bool m_doubleTapZoomPending; |
| 647 | 646 |
| 648 // Used for testing purposes. | 647 // Used for testing purposes. |
| 649 bool m_enableFakePageScaleAnimationForTesting; | 648 bool m_enableFakePageScaleAnimationForTesting; |
| 650 IntPoint m_fakePageScaleAnimationTargetPosition; | 649 IntPoint m_fakePageScaleAnimationTargetPosition; |
| 651 float m_fakePageScaleAnimationPageScaleFactor; | 650 float m_fakePageScaleAnimationPageScaleFactor; |
| 652 bool m_fakePageScaleAnimationUseAnchor; | 651 bool m_fakePageScaleAnimationUseAnchor; |
| 653 | 652 |
| 654 bool m_ignoreInputEvents; | |
| 655 | |
| 656 float m_compositorDeviceScaleFactorOverride; | 653 float m_compositorDeviceScaleFactorOverride; |
| 657 TransformationMatrix m_deviceEmulationTransform; | 654 TransformationMatrix m_deviceEmulationTransform; |
| 658 | 655 |
| 659 // Webkit expects keyPress events to be suppressed if the associated keyDown | 656 // Webkit expects keyPress events to be suppressed if the associated keyDown |
| 660 // event was handled. Safari implements this behavior by peeking out the | 657 // event was handled. Safari implements this behavior by peeking out the |
| 661 // associated WM_CHAR event if the keydown was handled. We emulate | 658 // associated WM_CHAR event if the keydown was handled. We emulate |
| 662 // this behavior by setting this flag if the keyDown was handled. | 659 // this behavior by setting this flag if the keyDown was handled. |
| 663 bool m_suppressNextKeypressEvent; | 660 bool m_suppressNextKeypressEvent; |
| 664 | 661 |
| 665 // Represents whether or not this object should process incoming IME events. | 662 // Represents whether or not this object should process incoming IME events. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 738 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 742 }; | 739 }; |
| 743 | 740 |
| 744 // We have no ways to check if the specified WebView is an instance of | 741 // We have no ways to check if the specified WebView is an instance of |
| 745 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 742 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 743 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 747 | 744 |
| 748 } // namespace blink | 745 } // namespace blink |
| 749 | 746 |
| 750 #endif | 747 #endif |
| OLD | NEW |