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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 void setMaximumLegibleScale(float) override; | 205 void setMaximumLegibleScale(float) override; |
206 void setPageScaleFactor(float) override; | 206 void setPageScaleFactor(float) override; |
207 void setVisualViewportOffset(const WebFloatPoint&) override; | 207 void setVisualViewportOffset(const WebFloatPoint&) override; |
208 WebFloatPoint visualViewportOffset() const override; | 208 WebFloatPoint visualViewportOffset() const override; |
209 WebFloatSize visualViewportSize() const override; | 209 WebFloatSize visualViewportSize() const override; |
210 void resetScrollAndScaleState() override; | 210 void resetScrollAndScaleState() override; |
211 void setIgnoreViewportTagScaleLimits(bool) override; | 211 void setIgnoreViewportTagScaleLimits(bool) override; |
212 WebSize contentsPreferredMinimumSize() override; | 212 WebSize contentsPreferredMinimumSize() override; |
213 void setDisplayMode(WebDisplayMode) override; | 213 void setDisplayMode(WebDisplayMode) override; |
214 | 214 |
215 float deviceScaleFactor() const override; | |
216 void setDeviceScaleFactor(float) override; | 215 void setDeviceScaleFactor(float) override; |
217 void setZoomFactorForDeviceScaleFactor(float) override; | 216 void setZoomFactorForDeviceScaleFactor(float) override; |
218 | 217 |
219 void setDeviceColorProfile(const WebVector<char>&) override; | 218 void setDeviceColorProfile(const WebVector<char>&) override; |
220 void resetDeviceColorProfileForTesting() override; | 219 void resetDeviceColorProfileForTesting() override; |
221 | 220 |
222 void enableAutoResizeMode( | 221 void enableAutoResizeMode( |
223 const WebSize& minSize, | 222 const WebSize& minSize, |
224 const WebSize& maxSize) override; | 223 const WebSize& maxSize) override; |
225 void disableAutoResizeMode() override; | 224 void disableAutoResizeMode() override; |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 WebInputEventResult handleSyntheticWheelFromTouchpadPinchEvent(const WebGest
ureEvent&); | 620 WebInputEventResult handleSyntheticWheelFromTouchpadPinchEvent(const WebGest
ureEvent&); |
622 | 621 |
623 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*); | 622 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*); |
624 | 623 |
625 void enablePopupMouseWheelEventListener(); | 624 void enablePopupMouseWheelEventListener(); |
626 void disablePopupMouseWheelEventListener(); | 625 void disablePopupMouseWheelEventListener(); |
627 | 626 |
628 void cancelPagePopup(); | 627 void cancelPagePopup(); |
629 void updatePageOverlays(); | 628 void updatePageOverlays(); |
630 | 629 |
| 630 float deviceScaleFactor() const; |
| 631 |
631 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) | 632 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) |
632 WebSpellCheckClient* m_spellCheckClient; | 633 WebSpellCheckClient* m_spellCheckClient; |
633 | 634 |
634 OwnPtrWillBePersistent<ChromeClientImpl> m_chromeClientImpl; | 635 OwnPtrWillBePersistent<ChromeClientImpl> m_chromeClientImpl; |
635 ContextMenuClientImpl m_contextMenuClientImpl; | 636 ContextMenuClientImpl m_contextMenuClientImpl; |
636 DragClientImpl m_dragClientImpl; | 637 DragClientImpl m_dragClientImpl; |
637 EditorClientImpl m_editorClientImpl; | 638 EditorClientImpl m_editorClientImpl; |
638 SpellCheckerClientImpl m_spellCheckerClientImpl; | 639 SpellCheckerClientImpl m_spellCheckerClientImpl; |
639 StorageClientImpl m_storageClientImpl; | 640 StorageClientImpl m_storageClientImpl; |
640 | 641 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 }; | 776 }; |
776 | 777 |
777 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 778 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
778 // We have no ways to check if the specified WebView is an instance of | 779 // We have no ways to check if the specified WebView is an instance of |
779 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 780 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
781 | 782 |
782 } // namespace blink | 783 } // namespace blink |
783 | 784 |
784 #endif | 785 #endif |
OLD | NEW |