| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebViewImpl_h | 31 #ifndef WebViewImpl_h |
| 32 #define WebViewImpl_h | 32 #define WebViewImpl_h |
| 33 | 33 |
| 34 #include "core/page/EventWithHitTestResults.h" | 34 #include "core/page/EventWithHitTestResults.h" |
| 35 #include "platform/geometry/IntPoint.h" | 35 #include "platform/geometry/IntPoint.h" |
| 36 #include "platform/geometry/IntRect.h" | 36 #include "platform/geometry/IntRect.h" |
| 37 #include "platform/graphics/GraphicsLayer.h" | 37 #include "platform/graphics/GraphicsLayer.h" |
| 38 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
| 39 #include "public/platform/WebDisplayMode.h" |
| 39 #include "public/platform/WebFloatSize.h" | 40 #include "public/platform/WebFloatSize.h" |
| 40 #include "public/platform/WebGestureCurveTarget.h" | 41 #include "public/platform/WebGestureCurveTarget.h" |
| 41 #include "public/platform/WebLayer.h" | 42 #include "public/platform/WebLayer.h" |
| 42 #include "public/platform/WebPoint.h" | 43 #include "public/platform/WebPoint.h" |
| 43 #include "public/platform/WebRect.h" | 44 #include "public/platform/WebRect.h" |
| 44 #include "public/platform/WebSize.h" | 45 #include "public/platform/WebSize.h" |
| 45 #include "public/platform/WebString.h" | 46 #include "public/platform/WebString.h" |
| 46 #include "public/platform/WebVector.h" | 47 #include "public/platform/WebVector.h" |
| 47 #include "public/web/WebInputEvent.h" | 48 #include "public/web/WebInputEvent.h" |
| 48 #include "public/web/WebNavigationPolicy.h" | 49 #include "public/web/WebNavigationPolicy.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 virtual float pageScaleFactor() const override; | 197 virtual float pageScaleFactor() const override; |
| 197 virtual void setDefaultPageScaleLimits(float minScale, float maxScale) overr
ide; | 198 virtual void setDefaultPageScaleLimits(float minScale, float maxScale) overr
ide; |
| 198 virtual void setInitialPageScaleOverride(float) override; | 199 virtual void setInitialPageScaleOverride(float) override; |
| 199 virtual void setMainFrameScrollOffset(const WebPoint&) override; | 200 virtual void setMainFrameScrollOffset(const WebPoint&) override; |
| 200 virtual void setPageScaleFactor(float) override; | 201 virtual void setPageScaleFactor(float) override; |
| 201 virtual void setPinchViewportOffset(const WebFloatPoint&) override; | 202 virtual void setPinchViewportOffset(const WebFloatPoint&) override; |
| 202 virtual WebFloatPoint pinchViewportOffset() const override; | 203 virtual WebFloatPoint pinchViewportOffset() const override; |
| 203 virtual void resetScrollAndScaleState() override; | 204 virtual void resetScrollAndScaleState() override; |
| 204 virtual void setIgnoreViewportTagScaleLimits(bool) override; | 205 virtual void setIgnoreViewportTagScaleLimits(bool) override; |
| 205 virtual WebSize contentsPreferredMinimumSize() override; | 206 virtual WebSize contentsPreferredMinimumSize() override; |
| 207 virtual void setDisplayMode(WebDisplayMode) override; |
| 206 | 208 |
| 207 virtual float deviceScaleFactor() const override; | 209 virtual float deviceScaleFactor() const override; |
| 208 virtual void setDeviceScaleFactor(float) override; | 210 virtual void setDeviceScaleFactor(float) override; |
| 209 virtual void setDeviceColorProfile(const WebVector<char>&) override; | 211 virtual void setDeviceColorProfile(const WebVector<char>&) override; |
| 210 virtual void resetDeviceColorProfile() override; | 212 virtual void resetDeviceColorProfile() override; |
| 211 | 213 |
| 212 virtual void enableAutoResizeMode( | 214 virtual void enableAutoResizeMode( |
| 213 const WebSize& minSize, | 215 const WebSize& minSize, |
| 214 const WebSize& maxSize) override; | 216 const WebSize& maxSize) override; |
| 215 virtual void disableAutoResizeMode() override; | 217 virtual void disableAutoResizeMode() override; |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 }; | 757 }; |
| 756 | 758 |
| 757 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 759 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 758 // We have no ways to check if the specified WebView is an instance of | 760 // We have no ways to check if the specified WebView is an instance of |
| 759 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 761 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 760 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 762 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 761 | 763 |
| 762 } // namespace blink | 764 } // namespace blink |
| 763 | 765 |
| 764 #endif | 766 #endif |
| OLD | NEW |