| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // window space. | 207 // window space. |
| 208 virtual void scrollFocusedNodeIntoRect(const WebRect&) { } | 208 virtual void scrollFocusedNodeIntoRect(const WebRect&) { } |
| 209 | 209 |
| 210 // Advance the focus of the WebView forward to the next element or to the | 210 // Advance the focus of the WebView forward to the next element or to the |
| 211 // previous element in the tab sequence (if reverse is true). | 211 // previous element in the tab sequence (if reverse is true). |
| 212 virtual void advanceFocus(bool reverse) { } | 212 virtual void advanceFocus(bool reverse) { } |
| 213 | 213 |
| 214 // Animate a scale into the specified find-in-page rect. | 214 // Animate a scale into the specified find-in-page rect. |
| 215 virtual void zoomToFindInPageRect(const WebRect&) = 0; | 215 virtual void zoomToFindInPageRect(const WebRect&) = 0; |
| 216 | 216 |
| 217 // Animate a scale into the specified rect where multiple targets were |
| 218 // found from previous tap gesture. |
| 219 // Returns false if it doesn't do any zooming. |
| 220 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; |
| 221 |
| 217 | 222 |
| 218 // Zoom ---------------------------------------------------------------- | 223 // Zoom ---------------------------------------------------------------- |
| 219 | 224 |
| 220 // Returns the current zoom level. 0 is "original size", and each increment | 225 // Returns the current zoom level. 0 is "original size", and each increment |
| 221 // above or below represents zooming 20% larger or smaller to default limits | 226 // above or below represents zooming 20% larger or smaller to default limits |
| 222 // of 300% and 50% of original size, respectively. Only plugins use | 227 // of 300% and 50% of original size, respectively. Only plugins use |
| 223 // non whole-numbers, since they might choose to have specific zoom level so | 228 // non whole-numbers, since they might choose to have specific zoom level so |
| 224 // that fixed-width content is fit-to-page-width, for example. | 229 // that fixed-width content is fit-to-page-width, for example. |
| 225 virtual double zoomLevel() = 0; | 230 virtual double zoomLevel() = 0; |
| 226 | 231 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 | 523 |
| 519 // Testing functionality for TestRunner --------------------------------- | 524 // Testing functionality for TestRunner --------------------------------- |
| 520 | 525 |
| 521 protected: | 526 protected: |
| 522 ~WebView() {} | 527 ~WebView() {} |
| 523 }; | 528 }; |
| 524 | 529 |
| 525 } // namespace WebKit | 530 } // namespace WebKit |
| 526 | 531 |
| 527 #endif | 532 #endif |
| OLD | NEW |