| 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 // Returns the input event we're currently processing. This is used in some | 420 // Returns the input event we're currently processing. This is used in some |
| 421 // cases where the WebCore DOM event doesn't have the information we need. | 421 // cases where the WebCore DOM event doesn't have the information we need. |
| 422 static const WebInputEvent* currentInputEvent() | 422 static const WebInputEvent* currentInputEvent() |
| 423 { | 423 { |
| 424 return m_currentInputEvent; | 424 return m_currentInputEvent; |
| 425 } | 425 } |
| 426 | 426 |
| 427 GraphicsLayer* rootGraphicsLayer(); | 427 GraphicsLayer* rootGraphicsLayer(); |
| 428 void registerViewportLayersWithCompositor(); | 428 void registerViewportLayersWithCompositor(); |
| 429 PaintLayerCompositor* compositor() const; | 429 PaintLayerCompositor* compositor() const; |
| 430 void scheduleAnimation(); | |
| 431 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH
ighlightsTimeline.get(); } | 430 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH
ighlightsTimeline.get(); } |
| 432 | 431 |
| 433 WebViewScheduler* scheduler() const override; | 432 WebViewScheduler* scheduler() const override; |
| 434 void setVisibilityState(WebPageVisibilityState, bool) override; | 433 void setVisibilityState(WebPageVisibilityState, bool) override; |
| 435 | 434 |
| 436 bool hasOpenedPopup() const { return m_pagePopup.get(); } | 435 bool hasOpenedPopup() const { return m_pagePopup.get(); } |
| 437 | 436 |
| 438 // Returns true if the event leads to scrolling. | 437 // Returns true if the event leads to scrolling. |
| 439 static bool mapKeyCodeForScroll( | 438 static bool mapKeyCodeForScroll( |
| 440 int keyCode, | 439 int keyCode, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 void refreshPageScaleFactorAfterLayout(); | 533 void refreshPageScaleFactorAfterLayout(); |
| 535 IntSize contentsSize() const; | 534 IntSize contentsSize() const; |
| 536 | 535 |
| 537 void performResize(); | 536 void performResize(); |
| 538 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo
ntrolsShrinkLayout); | 537 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo
ntrolsShrinkLayout); |
| 539 | 538 |
| 540 // Overrides the compositor visibility. See the description of | 539 // Overrides the compositor visibility. See the description of |
| 541 // m_overrideCompositorVisibility for more details. | 540 // m_overrideCompositorVisibility for more details. |
| 542 void setCompositorVisibility(bool); | 541 void setCompositorVisibility(bool); |
| 543 | 542 |
| 543 // TODO(lfg): Remove once WebViewFrameWidget is deleted. |
| 544 void scheduleAnimationForWidget(); |
| 545 |
| 544 friend class WebView; // So WebView::Create can call our constructor | 546 friend class WebView; // So WebView::Create can call our constructor |
| 545 friend class WebViewFrameWidget; | 547 friend class WebViewFrameWidget; |
| 546 friend class WTF::RefCounted<WebViewImpl>; | 548 friend class WTF::RefCounted<WebViewImpl>; |
| 547 friend void setCurrentInputEventForTest(const WebInputEvent*); | 549 friend void setCurrentInputEventForTest(const WebInputEvent*); |
| 548 | 550 |
| 549 enum DragAction { | 551 enum DragAction { |
| 550 DragEnter, | 552 DragEnter, |
| 551 DragOver | 553 DragOver |
| 552 }; | 554 }; |
| 553 | 555 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 bool m_overrideCompositorVisibility; | 774 bool m_overrideCompositorVisibility; |
| 773 }; | 775 }; |
| 774 | 776 |
| 775 // We have no ways to check if the specified WebView is an instance of | 777 // We have no ways to check if the specified WebView is an instance of |
| 776 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 778 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 777 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 779 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 778 | 780 |
| 779 } // namespace blink | 781 } // namespace blink |
| 780 | 782 |
| 781 #endif | 783 #endif |
| OLD | NEW |