| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011, 2012 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 23 matching lines...) Expand all Loading... |
| 34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
| 35 #include "../platform/WebString.h" | 35 #include "../platform/WebString.h" |
| 36 #include "../platform/WebVector.h" | 36 #include "../platform/WebVector.h" |
| 37 #include "sky/engine/public/web/WebPageVisibilityState.h" | 37 #include "sky/engine/public/web/WebPageVisibilityState.h" |
| 38 #include "sky/engine/public/web/WebWidget.h" | 38 #include "sky/engine/public/web/WebWidget.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class WebFrame; | 42 class WebFrame; |
| 43 class WebFrameClient; | 43 class WebFrameClient; |
| 44 class WebHitTestResult; | |
| 45 class WebSettings; | 44 class WebSettings; |
| 46 class WebSpellCheckClient; | 45 class WebSpellCheckClient; |
| 47 class WebViewClient; | 46 class WebViewClient; |
| 48 struct WebPoint; | 47 struct WebPoint; |
| 49 | 48 |
| 50 class WebView : public WebWidget { | 49 class WebView : public WebWidget { |
| 51 public: | 50 public: |
| 52 // Initialization ------------------------------------------------------ | 51 // Initialization ------------------------------------------------------ |
| 53 | 52 |
| 54 // Creates a WebView that is NOT yet initialized. You will need to | 53 // Creates a WebView that is NOT yet initialized. You will need to |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 117 |
| 119 // The ratio of the current device's screen DPI to the target device's scree
n DPI. | 118 // The ratio of the current device's screen DPI to the target device's scree
n DPI. |
| 120 virtual float deviceScaleFactor() const = 0; | 119 virtual float deviceScaleFactor() const = 0; |
| 121 | 120 |
| 122 // Sets the ratio as computed by computePageScaleConstraints. | 121 // Sets the ratio as computed by computePageScaleConstraints. |
| 123 virtual void setDeviceScaleFactor(float) = 0; | 122 virtual void setDeviceScaleFactor(float) = 0; |
| 124 | 123 |
| 125 | 124 |
| 126 // Data exchange ------------------------------------------------------- | 125 // Data exchange ------------------------------------------------------- |
| 127 | 126 |
| 128 // Do a hit test at given point and return the HitTestResult. | |
| 129 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0; | |
| 130 | |
| 131 // Retrieves a list of spelling markers. | 127 // Retrieves a list of spelling markers. |
| 132 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0; | 128 virtual void spellingMarkers(WebVector<uint32_t>* markers) = 0; |
| 133 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor
ds) = 0; | 129 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor
ds) = 0; |
| 134 | 130 |
| 135 | 131 |
| 136 // Developer tools ----------------------------------------------------- | 132 // Developer tools ----------------------------------------------------- |
| 137 | 133 |
| 138 virtual void setShowPaintRects(bool) = 0; | 134 virtual void setShowPaintRects(bool) = 0; |
| 139 | 135 |
| 140 // Visibility ----------------------------------------------------------- | 136 // Visibility ----------------------------------------------------------- |
| (...skipping 11 matching lines...) Expand all Loading... |
| 152 | 148 |
| 153 // Testing functionality for TestRunner --------------------------------- | 149 // Testing functionality for TestRunner --------------------------------- |
| 154 | 150 |
| 155 protected: | 151 protected: |
| 156 ~WebView() {} | 152 ~WebView() {} |
| 157 }; | 153 }; |
| 158 | 154 |
| 159 } // namespace blink | 155 } // namespace blink |
| 160 | 156 |
| 161 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_ | 157 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_ |
| OLD | NEW |