OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |