| 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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 | 539 |
| 540 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); | 540 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); |
| 541 | 541 |
| 542 float maximumLegiblePageScale() const; | 542 float maximumLegiblePageScale() const; |
| 543 void refreshPageScaleFactorAfterLayout(); | 543 void refreshPageScaleFactorAfterLayout(); |
| 544 void resumeTreeViewCommitsIfRenderingReady(); | 544 void resumeTreeViewCommitsIfRenderingReady(); |
| 545 IntSize contentsSize() const; | 545 IntSize contentsSize() const; |
| 546 | 546 |
| 547 void performResize(); | 547 void performResize(); |
| 548 void resizeViewWhileAnchored(FrameView*); | 548 void resizeViewWhileAnchored(FrameView*); |
| 549 double setZoomLevelForFrame(WebLocalFrame*, double zoomLevel) override; |
| 549 | 550 |
| 550 friend class WebView; // So WebView::Create can call our constructor | 551 friend class WebView; // So WebView::Create can call our constructor |
| 551 friend class WTF::RefCounted<WebViewImpl>; | 552 friend class WTF::RefCounted<WebViewImpl>; |
| 552 friend void setCurrentInputEventForTest(const WebInputEvent*); | 553 friend void setCurrentInputEventForTest(const WebInputEvent*); |
| 553 | 554 |
| 554 enum DragAction { | 555 enum DragAction { |
| 555 DragEnter, | 556 DragEnter, |
| 556 DragOver | 557 DragOver |
| 557 }; | 558 }; |
| 558 | 559 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 WebInputEventResult handleSyntheticWheelFromTouchpadPinchEvent(const WebGest
ureEvent&); | 615 WebInputEventResult handleSyntheticWheelFromTouchpadPinchEvent(const WebGest
ureEvent&); |
| 615 | 616 |
| 616 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*); | 617 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*); |
| 617 | 618 |
| 618 void enablePopupMouseWheelEventListener(); | 619 void enablePopupMouseWheelEventListener(); |
| 619 void disablePopupMouseWheelEventListener(); | 620 void disablePopupMouseWheelEventListener(); |
| 620 | 621 |
| 621 void cancelPagePopup(); | 622 void cancelPagePopup(); |
| 622 void updatePageOverlays(); | 623 void updatePageOverlays(); |
| 623 | 624 |
| 625 double setZoomLevelForFrame(LocalFrame*, double zoomLevel); |
| 624 float deviceScaleFactor() const; | 626 float deviceScaleFactor() const; |
| 625 | 627 |
| 626 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) | 628 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) |
| 627 WebSpellCheckClient* m_spellCheckClient; | 629 WebSpellCheckClient* m_spellCheckClient; |
| 628 | 630 |
| 629 OwnPtrWillBePersistent<ChromeClientImpl> m_chromeClientImpl; | 631 OwnPtrWillBePersistent<ChromeClientImpl> m_chromeClientImpl; |
| 630 ContextMenuClientImpl m_contextMenuClientImpl; | 632 ContextMenuClientImpl m_contextMenuClientImpl; |
| 631 DragClientImpl m_dragClientImpl; | 633 DragClientImpl m_dragClientImpl; |
| 632 EditorClientImpl m_editorClientImpl; | 634 EditorClientImpl m_editorClientImpl; |
| 633 SpellCheckerClientImpl m_spellCheckerClientImpl; | 635 SpellCheckerClientImpl m_spellCheckerClientImpl; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 }; | 771 }; |
| 770 | 772 |
| 771 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 773 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 772 // We have no ways to check if the specified WebView is an instance of | 774 // We have no ways to check if the specified WebView is an instance of |
| 773 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 775 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 774 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 775 | 777 |
| 776 } // namespace blink | 778 } // namespace blink |
| 777 | 779 |
| 778 #endif | 780 #endif |
| OLD | NEW |