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

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

Issue 1959183002: Multi-Process Find-in-Page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments by nick@, and a bit of cleanup. Created 4 years, 6 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
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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 531
532 // Notifies what tick-mark rect is currently selected. The given 532 // Notifies what tick-mark rect is currently selected. The given
533 // identifier lets the client know which request this message belongs 533 // identifier lets the client know which request this message belongs
534 // to, so that it can choose to ignore the message if it has moved on 534 // to, so that it can choose to ignore the message if it has moved on
535 // to other things. The selection rect is expected to have coordinates 535 // to other things. The selection rect is expected to have coordinates
536 // relative to the top left corner of the web page area and represent 536 // relative to the top left corner of the web page area and represent
537 // where on the screen the selection rect is currently located. 537 // where on the screen the selection rect is currently located.
538 virtual void reportFindInPageSelection( 538 virtual void reportFindInPageSelection(
539 int identifier, int activeMatchOrdinal, const WebRect& selection) { } 539 int identifier, int activeMatchOrdinal, const WebRect& selection) { }
540 540
541 // Currently, TextFinder will report up the frame tree on certain events to
542 // form a tree of TextFinders. When we're experimenting with OOPIFs, this
543 // is precisely not what we want. Experiments that want to search per frame
544 // should override this to true.
545 virtual bool shouldSearchSingleFrame() { return false; }
546
547 // Quota --------------------------------------------------------- 541 // Quota ---------------------------------------------------------
548 542
549 // Requests a new quota size for the origin's storage. 543 // Requests a new quota size for the origin's storage.
550 // |newQuotaInBytes| indicates how much storage space (in bytes) the 544 // |newQuotaInBytes| indicates how much storage space (in bytes) the
551 // caller expects to need. 545 // caller expects to need.
552 // WebStorageQuotaCallbacks::didGrantStorageQuota will be called when 546 // WebStorageQuotaCallbacks::didGrantStorageQuota will be called when
553 // a new quota is granted. WebStorageQuotaCallbacks::didFail 547 // a new quota is granted. WebStorageQuotaCallbacks::didFail
554 // is called with an error code otherwise. 548 // is called with an error code otherwise.
555 // Note that the requesting quota size may not always be granted and 549 // Note that the requesting quota size may not always be granted and
556 // a smaller amount of quota than requested might be returned. 550 // a smaller amount of quota than requested might be returned.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 // Mojo ---------------------------------------------------------------- 697 // Mojo ----------------------------------------------------------------
704 virtual ServiceRegistry* serviceRegistry() { return nullptr; } 698 virtual ServiceRegistry* serviceRegistry() { return nullptr; }
705 699
706 protected: 700 protected:
707 virtual ~WebFrameClient() { } 701 virtual ~WebFrameClient() { }
708 }; 702 };
709 703
710 } // namespace blink 704 } // namespace blink
711 705
712 #endif 706 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698