Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: public/web/WebView.h

Issue 19281007: Allow zoom-in to a target rect when tapping multiple targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698