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 | |
jochen (gone - plz use gerrit)
2013/07/16 10:05:24
nit. comments should be correct sentence (start w
| |
203 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; | |
200 | 204 |
abarth-chromium
2013/07/16 18:54:42
Please keep two blank lines between sections.
| |
201 // Zoom ---------------------------------------------------------------- | 205 // Zoom ---------------------------------------------------------------- |
202 | 206 |
203 // Returns the current zoom level. 0 is "original size", and each increment | 207 // 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 | 208 // above or below represents zooming 20% larger or smaller to default limits |
205 // of 300% and 50% of original size, respectively. Only plugins use | 209 // 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 | 210 // 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. | 211 // that fixed-width content is fit-to-page-width, for example. |
208 virtual double zoomLevel() = 0; | 212 virtual double zoomLevel() = 0; |
209 | 213 |
210 // Changes the zoom level to the specified level, clamping at the limits | 214 // Changes the zoom level to the specified level, clamping at the limits |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
501 | 505 |
502 // Testing functionality for TestRunner --------------------------------- | 506 // Testing functionality for TestRunner --------------------------------- |
503 | 507 |
504 protected: | 508 protected: |
505 ~WebView() {} | 509 ~WebView() {} |
506 }; | 510 }; |
507 | 511 |
508 } // namespace WebKit | 512 } // namespace WebKit |
509 | 513 |
510 #endif | 514 #endif |
OLD | NEW |