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

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

Issue 198683002: Make it possible to override the tickmarks for a WebFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 virtual void findMatchRects(WebVector<WebFloatRect>&) = 0; 588 virtual void findMatchRects(WebVector<WebFloatRect>&) = 0;
589 589
590 // Selects the find-in-page match in the appropriate frame closest to the 590 // Selects the find-in-page match in the appropriate frame closest to the
591 // provided point in find-in-page coordinates. Returns the ordinal of such 591 // provided point in find-in-page coordinates. Returns the ordinal of such
592 // match or -1 if none could be found. If not null, selectionRect is set to 592 // match or -1 if none could be found. If not null, selectionRect is set to
593 // the bounding box of the selected match in window coordinates. 593 // the bounding box of the selected match in window coordinates.
594 // This method should be called only on the main frame. 594 // This method should be called only on the main frame.
595 virtual int selectNearestFindMatch(const WebFloatPoint&, 595 virtual int selectNearestFindMatch(const WebFloatPoint&,
596 WebRect* selectionRect) = 0; 596 WebRect* selectionRect) = 0;
597 597
598
599 // Set the tickmarks for the frame. This will override the default tickmarks
600 // generated by find results. If this is called with an empty array, the
601 // default behavior will be restored.
602 virtual void setTickmarks(const WebVector<WebRect>&) = 0;
603
598 // OrientationChange event --------------------------------------------- 604 // OrientationChange event ---------------------------------------------
599 605
600 // Orientation is the interface orientation in degrees. 606 // Orientation is the interface orientation in degrees.
601 // Some examples are: 607 // Some examples are:
602 // 0 is straight up; -90 is when the device is rotated 90 clockwise; 608 // 0 is straight up; -90 is when the device is rotated 90 clockwise;
603 // 90 is when rotated counter clockwise. 609 // 90 is when rotated counter clockwise.
604 virtual void sendOrientationChangeEvent(int orientation) = 0; 610 virtual void sendOrientationChangeEvent(int orientation) = 0;
605 611
606 // Events -------------------------------------------------------------- 612 // Events --------------------------------------------------------------
607 613
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 // text form. This is used only by layout tests. 658 // text form. This is used only by layout tests.
653 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; 659 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0;
654 660
655 protected: 661 protected:
656 ~WebFrame() { } 662 ~WebFrame() { }
657 }; 663 };
658 664
659 } // namespace blink 665 } // namespace blink
660 666
661 #endif 667 #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