OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // Zoom ---------------------------------------------------------------- | 232 // Zoom ---------------------------------------------------------------- |
233 | 233 |
234 // Informs the browser that the zoom levels for this frame have changed from | 234 // Informs the browser that the zoom levels for this frame have changed from |
235 // the default values. | 235 // the default values. |
236 virtual void zoomLimitsChanged(double minimumLevel, double maximumLevel) { } | 236 virtual void zoomLimitsChanged(double minimumLevel, double maximumLevel) { } |
237 | 237 |
238 // Informs the browser that the page scale has changed. | 238 // Informs the browser that the page scale has changed. |
239 virtual void pageScaleFactorChanged() { } | 239 virtual void pageScaleFactorChanged() { } |
240 | 240 |
241 | 241 |
242 // Visibility ----------------------------------------------------------- | |
243 | |
244 // Returns the current visibility of the WebView. | |
245 virtual WebPageVisibilityState visibilityState() const | |
246 { | |
247 return WebPageVisibilityStateVisible; | |
248 } | |
249 | |
250 | |
251 // Content detection ---------------------------------------------------- | 242 // Content detection ---------------------------------------------------- |
252 | 243 |
253 // Retrieves detectable content (e.g., email addresses, phone numbers) | 244 // Retrieves detectable content (e.g., email addresses, phone numbers) |
254 // around a hit test result. The embedder should use platform-specific | 245 // around a hit test result. The embedder should use platform-specific |
255 // content detectors to analyze the region around the hit test result. | 246 // content detectors to analyze the region around the hit test result. |
256 virtual WebContentDetectionResult detectContentAround(const WebHitTestResult
&) { return WebContentDetectionResult(); } | 247 virtual WebContentDetectionResult detectContentAround(const WebHitTestResult
&) { return WebContentDetectionResult(); } |
257 | 248 |
258 // Schedules a new content intent with the provided url. | 249 // Schedules a new content intent with the provided url. |
259 // The boolean flag is set to true when the user gesture has been applied | 250 // The boolean flag is set to true when the user gesture has been applied |
260 // to the element from the main frame. | 251 // to the element from the main frame. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 WebRect windowRect() override { return WebRect(); } | 295 WebRect windowRect() override { return WebRect(); } |
305 WebRect windowResizerRect() override { return WebRect(); } | 296 WebRect windowResizerRect() override { return WebRect(); } |
306 | 297 |
307 protected: | 298 protected: |
308 ~WebViewClient() { } | 299 ~WebViewClient() { } |
309 }; | 300 }; |
310 | 301 |
311 } // namespace blink | 302 } // namespace blink |
312 | 303 |
313 #endif | 304 #endif |
OLD | NEW |