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

Side by Side Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 1371773003: mandoline: Add find in page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final documentation changes. Created 5 years, 2 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 | « third_party/WebKit/Source/web/TextFinder.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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 467
468 // If the frame is loading an HTML document, this will be called to 468 // If the frame is loading an HTML document, this will be called to
469 // notify that the <body> will be attached soon. 469 // notify that the <body> will be attached soon.
470 virtual void willInsertBody(WebLocalFrame*) { } 470 virtual void willInsertBody(WebLocalFrame*) { }
471 471
472 472
473 // Find-in-page notifications ------------------------------------------ 473 // Find-in-page notifications ------------------------------------------
474 474
475 // Notifies how many matches have been found so far, for a given 475 // Notifies how many matches have been found so far, for a given
476 // identifier. |finalUpdate| specifies whether this is the last update 476 // identifier. |finalUpdate| specifies whether this is the last update
477 // (all frames have completed scoping). 477 // (all frames have completed scoping). This notification is only delivered
478 // to the main frame and aggregates all matches across all frames.
478 virtual void reportFindInPageMatchCount( 479 virtual void reportFindInPageMatchCount(
479 int identifier, int count, bool finalUpdate) { } 480 int identifier, int count, bool finalUpdate) { }
480 481
482 // Notifies how many matches have been found in a specific frame so far,
483 // for a given identifier. Unlike reprotFindInPageMatchCount(), this
484 // notification is sent to the client of each frame, and only reports
485 // results per-frame.
486 virtual void reportFindInFrameMatchCount(
487 int identifier, int count, bool finalUpdate) {}
488
481 // Notifies what tick-mark rect is currently selected. The given 489 // Notifies what tick-mark rect is currently selected. The given
482 // identifier lets the client know which request this message belongs 490 // identifier lets the client know which request this message belongs
483 // to, so that it can choose to ignore the message if it has moved on 491 // to, so that it can choose to ignore the message if it has moved on
484 // to other things. The selection rect is expected to have coordinates 492 // to other things. The selection rect is expected to have coordinates
485 // relative to the top left corner of the web page area and represent 493 // relative to the top left corner of the web page area and represent
486 // where on the screen the selection rect is currently located. 494 // where on the screen the selection rect is currently located.
487 virtual void reportFindInPageSelection( 495 virtual void reportFindInPageSelection(
488 int identifier, int activeMatchOrdinal, const WebRect& selection) { } 496 int identifier, int activeMatchOrdinal, const WebRect& selection) { }
489 497
490 498
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 // WebUSB -------------------------------------------------------------- 671 // WebUSB --------------------------------------------------------------
664 virtual WebUSBClient* usbClient() { return nullptr; } 672 virtual WebUSBClient* usbClient() { return nullptr; }
665 673
666 protected: 674 protected:
667 virtual ~WebFrameClient() { } 675 virtual ~WebFrameClient() { }
668 }; 676 };
669 677
670 } // namespace blink 678 } // namespace blink
671 679
672 #endif 680 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698