Chromium Code Reviews| 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 418 LocalDOMWindow* pagePopupWindow() const; | 418 LocalDOMWindow* pagePopupWindow() const; |
| 419 | 419 |
| 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 setRootGraphicsLayer(GraphicsLayer*); | |
| 429 PaintLayerCompositor* compositor() const; | 428 PaintLayerCompositor* compositor() const; |
| 430 void scheduleAnimation(); | 429 void scheduleAnimation(); |
| 431 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*); | |
| 432 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); | |
| 433 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH ighlightsTimeline.get(); } | 430 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH ighlightsTimeline.get(); } |
| 434 | 431 |
| 435 WebViewScheduler* scheduler() const override; | 432 WebViewScheduler* scheduler() const override; |
| 436 void setVisibilityState(WebPageVisibilityState, bool) override; | 433 void setVisibilityState(WebPageVisibilityState, bool) override; |
| 437 | 434 |
| 438 bool hasOpenedPopup() const { return m_pagePopup.get(); } | 435 bool hasOpenedPopup() const { return m_pagePopup.get(); } |
| 439 | 436 |
| 440 // Returns true if the event leads to scrolling. | 437 // Returns true if the event leads to scrolling. |
| 441 static bool mapKeyCodeForScroll( | 438 static bool mapKeyCodeForScroll( |
| 442 int keyCode, | 439 int keyCode, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 535 float maximumLegiblePageScale() const; | 532 float maximumLegiblePageScale() const; |
| 536 void refreshPageScaleFactorAfterLayout(); | 533 void refreshPageScaleFactorAfterLayout(); |
| 537 IntSize contentsSize() const; | 534 IntSize contentsSize() const; |
| 538 | 535 |
| 539 void performResize(); | 536 void performResize(); |
| 540 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo ntrolsShrinkLayout); | 537 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo ntrolsShrinkLayout); |
| 541 | 538 |
| 542 friend class WebView; // So WebView::Create can call our constructor | 539 friend class WebView; // So WebView::Create can call our constructor |
| 543 friend class WTF::RefCounted<WebViewImpl>; | 540 friend class WTF::RefCounted<WebViewImpl>; |
| 544 friend void setCurrentInputEventForTest(const WebInputEvent*); | 541 friend void setCurrentInputEventForTest(const WebInputEvent*); |
| 542 friend class WebViewFrameWidget; | |
|
Mostyn Bramley-Moore
2016/07/05 15:33:27
This is a duplicate, after https://codereview.chro
| |
| 545 | 543 |
| 546 enum DragAction { | 544 enum DragAction { |
| 547 DragEnter, | 545 DragEnter, |
| 548 DragOver | 546 DragOver |
| 549 }; | 547 }; |
| 550 | 548 |
| 551 explicit WebViewImpl(WebViewClient*); | 549 explicit WebViewImpl(WebViewClient*); |
| 552 ~WebViewImpl() override; | 550 ~WebViewImpl() override; |
| 553 | 551 |
| 554 int textInputFlags(); | 552 int textInputFlags(); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 610 WebGestureEvent createGestureScrollEventFromFling(WebInputEvent::Type, WebGe stureDevice) const; | 608 WebGestureEvent createGestureScrollEventFromFling(WebInputEvent::Type, WebGe stureDevice) const; |
| 611 | 609 |
| 612 void enablePopupMouseWheelEventListener(); | 610 void enablePopupMouseWheelEventListener(); |
| 613 void disablePopupMouseWheelEventListener(); | 611 void disablePopupMouseWheelEventListener(); |
| 614 | 612 |
| 615 void cancelPagePopup(); | 613 void cancelPagePopup(); |
| 616 void updatePageOverlays(); | 614 void updatePageOverlays(); |
| 617 | 615 |
| 618 float deviceScaleFactor() const; | 616 float deviceScaleFactor() const; |
| 619 | 617 |
| 618 void setRootGraphicsLayer(GraphicsLayer*); | |
| 619 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*); | |
| 620 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); | |
| 621 | |
| 620 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) | 622 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) |
| 621 WebSpellCheckClient* m_spellCheckClient; | 623 WebSpellCheckClient* m_spellCheckClient; |
| 622 | 624 |
| 623 Persistent<ChromeClientImpl> m_chromeClientImpl; | 625 Persistent<ChromeClientImpl> m_chromeClientImpl; |
| 624 ContextMenuClientImpl m_contextMenuClientImpl; | 626 ContextMenuClientImpl m_contextMenuClientImpl; |
| 625 EditorClientImpl m_editorClientImpl; | 627 EditorClientImpl m_editorClientImpl; |
| 626 SpellCheckerClientImpl m_spellCheckerClientImpl; | 628 SpellCheckerClientImpl m_spellCheckerClientImpl; |
| 627 StorageClientImpl m_storageClientImpl; | 629 StorageClientImpl m_storageClientImpl; |
| 628 | 630 |
| 629 WebSize m_size; | 631 WebSize m_size; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 759 double m_lastFrameTimeMonotonic; | 761 double m_lastFrameTimeMonotonic; |
| 760 }; | 762 }; |
| 761 | 763 |
| 762 // We have no ways to check if the specified WebView is an instance of | 764 // We have no ways to check if the specified WebView is an instance of |
| 763 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 765 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 764 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 766 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 765 | 767 |
| 766 } // namespace blink | 768 } // namespace blink |
| 767 | 769 |
| 768 #endif | 770 #endif |
| OLD | NEW |