| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 void resetScaleStateImmediately(); | 296 void resetScaleStateImmediately(); |
| 297 | 297 |
| 298 HitTestResult coreHitTestResultAt(const WebPoint&); | 298 HitTestResult coreHitTestResultAt(const WebPoint&); |
| 299 void invalidateRect(const IntRect&); | 299 void invalidateRect(const IntRect&); |
| 300 | 300 |
| 301 void setIgnoreInputEvents(bool newValue); | 301 void setIgnoreInputEvents(bool newValue); |
| 302 void setBaseBackgroundColor(WebColor); | 302 void setBaseBackgroundColor(WebColor); |
| 303 void setBackgroundColorOverride(WebColor); | 303 void setBackgroundColorOverride(WebColor); |
| 304 void setZoomFactorOverride(float); | 304 void setZoomFactorOverride(float); |
| 305 void setCompositorDeviceScaleFactorOverride(float); | 305 void setCompositorDeviceScaleFactorOverride(float); |
| 306 void setRootLayerTransform(const WebSize& offset, float scale); | 306 void setRootLayerTransform(const TransformationMatrix&); |
| 307 TransformationMatrix getRootLayerTransformForTesting() const; |
| 307 | 308 |
| 308 Color baseBackgroundColor() const { return m_baseBackgroundColor; } | 309 Color baseBackgroundColor() const { return m_baseBackgroundColor; } |
| 309 | 310 |
| 310 WebColor backgroundColorOverride() const { return m_backgroundColorOverride;
} | 311 WebColor backgroundColorOverride() const { return m_backgroundColorOverride;
} |
| 311 | 312 |
| 312 Frame* focusedCoreFrame() const; | 313 Frame* focusedCoreFrame() const; |
| 313 | 314 |
| 314 // Returns the currently focused Element or null if no element has focus. | 315 // Returns the currently focused Element or null if no element has focus. |
| 315 Element* focusedElement() const; | 316 Element* focusedElement() const; |
| 316 | 317 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 379 |
| 379 // Indicates two things: | 380 // Indicates two things: |
| 380 // 1) This view may have a new layout now. | 381 // 1) This view may have a new layout now. |
| 381 // 2) Calling updateAllLifecyclePhases() is a no-op. | 382 // 2) Calling updateAllLifecyclePhases() is a no-op. |
| 382 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this n
otification | 383 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this n
otification |
| 383 // unless the view did not need a layout. | 384 // unless the view did not need a layout. |
| 384 void layoutUpdated(WebLocalFrameImpl*); | 385 void layoutUpdated(WebLocalFrameImpl*); |
| 385 | 386 |
| 386 void didChangeContentsSize(); | 387 void didChangeContentsSize(); |
| 387 void pageScaleFactorChanged(); | 388 void pageScaleFactorChanged(); |
| 389 void mainFrameScrollOffsetChanged(); |
| 388 | 390 |
| 389 // Returns true if popup menus should be rendered by the browser, false if | 391 // Returns true if popup menus should be rendered by the browser, false if |
| 390 // they should be rendered by WebKit (which is the default). | 392 // they should be rendered by WebKit (which is the default). |
| 391 static bool useExternalPopupMenus(); | 393 static bool useExternalPopupMenus(); |
| 392 | 394 |
| 393 bool shouldAutoResize() const | 395 bool shouldAutoResize() const |
| 394 { | 396 { |
| 395 return m_shouldAutoResize; | 397 return m_shouldAutoResize; |
| 396 } | 398 } |
| 397 | 399 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 bool m_enableFakePageScaleAnimationForTesting; | 683 bool m_enableFakePageScaleAnimationForTesting; |
| 682 IntPoint m_fakePageScaleAnimationTargetPosition; | 684 IntPoint m_fakePageScaleAnimationTargetPosition; |
| 683 float m_fakePageScaleAnimationPageScaleFactor; | 685 float m_fakePageScaleAnimationPageScaleFactor; |
| 684 bool m_fakePageScaleAnimationUseAnchor; | 686 bool m_fakePageScaleAnimationUseAnchor; |
| 685 | 687 |
| 686 bool m_doingDragAndDrop; | 688 bool m_doingDragAndDrop; |
| 687 | 689 |
| 688 bool m_ignoreInputEvents; | 690 bool m_ignoreInputEvents; |
| 689 | 691 |
| 690 float m_compositorDeviceScaleFactorOverride; | 692 float m_compositorDeviceScaleFactorOverride; |
| 691 WebSize m_rootLayerOffset; | 693 TransformationMatrix m_rootLayerTransform; |
| 692 float m_rootLayerScale; | |
| 693 | 694 |
| 694 // Webkit expects keyPress events to be suppressed if the associated keyDown | 695 // Webkit expects keyPress events to be suppressed if the associated keyDown |
| 695 // event was handled. Safari implements this behavior by peeking out the | 696 // event was handled. Safari implements this behavior by peeking out the |
| 696 // associated WM_CHAR event if the keydown was handled. We emulate | 697 // associated WM_CHAR event if the keydown was handled. We emulate |
| 697 // this behavior by setting this flag if the keyDown was handled. | 698 // this behavior by setting this flag if the keyDown was handled. |
| 698 bool m_suppressNextKeypressEvent; | 699 bool m_suppressNextKeypressEvent; |
| 699 | 700 |
| 700 // Represents whether or not this object should process incoming IME events. | 701 // Represents whether or not this object should process incoming IME events. |
| 701 bool m_imeAcceptEvents; | 702 bool m_imeAcceptEvents; |
| 702 | 703 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 781 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 781 }; | 782 }; |
| 782 | 783 |
| 783 // We have no ways to check if the specified WebView is an instance of | 784 // We have no ways to check if the specified WebView is an instance of |
| 784 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 785 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 785 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 786 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 786 | 787 |
| 787 } // namespace blink | 788 } // namespace blink |
| 788 | 789 |
| 789 #endif | 790 #endif |
| OLD | NEW |