| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // window space. | 190 // window space. |
| 191 virtual void scrollFocusedNodeIntoRect(const WebRect&) { } | 191 virtual void scrollFocusedNodeIntoRect(const WebRect&) { } |
| 192 | 192 |
| 193 // Advance the focus of the WebView forward to the next element or to the | 193 // Advance the focus of the WebView forward to the next element or to the |
| 194 // previous element in the tab sequence (if reverse is true). | 194 // previous element in the tab sequence (if reverse is true). |
| 195 virtual void advanceFocus(bool reverse) { } | 195 virtual void advanceFocus(bool reverse) { } |
| 196 | 196 |
| 197 // Animate a scale into the specified find-in-page rect. | 197 // Animate a scale into the specified find-in-page rect. |
| 198 virtual void zoomToFindInPageRect(const WebRect&) = 0; | 198 virtual void zoomToFindInPageRect(const WebRect&) = 0; |
| 199 | 199 |
| 200 // Animate a scale into the specified rect where multiple targets were |
| 201 // found from previous tap gesture. |
| 202 // Returns false if it doesn't do any zooming. |
| 203 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; |
| 204 |
| 200 | 205 |
| 201 // Zoom ---------------------------------------------------------------- | 206 // Zoom ---------------------------------------------------------------- |
| 202 | 207 |
| 203 // Returns the current zoom level. 0 is "original size", and each increment | 208 // Returns the current zoom level. 0 is "original size", and each increment |
| 204 // above or below represents zooming 20% larger or smaller to default limits | 209 // above or below represents zooming 20% larger or smaller to default limits |
| 205 // of 300% and 50% of original size, respectively. Only plugins use | 210 // of 300% and 50% of original size, respectively. Only plugins use |
| 206 // non whole-numbers, since they might choose to have specific zoom level so | 211 // non whole-numbers, since they might choose to have specific zoom level so |
| 207 // that fixed-width content is fit-to-page-width, for example. | 212 // that fixed-width content is fit-to-page-width, for example. |
| 208 virtual double zoomLevel() = 0; | 213 virtual double zoomLevel() = 0; |
| 209 | 214 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 | 506 |
| 502 // Testing functionality for TestRunner --------------------------------- | 507 // Testing functionality for TestRunner --------------------------------- |
| 503 | 508 |
| 504 protected: | 509 protected: |
| 505 ~WebView() {} | 510 ~WebView() {} |
| 506 }; | 511 }; |
| 507 | 512 |
| 508 } // namespace WebKit | 513 } // namespace WebKit |
| 509 | 514 |
| 510 #endif | 515 #endif |
| OLD | NEW |