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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 538 |
539 // Notifies what tick-mark rect is currently selected. The given | 539 // Notifies what tick-mark rect is currently selected. The given |
540 // identifier lets the client know which request this message belongs | 540 // identifier lets the client know which request this message belongs |
541 // to, so that it can choose to ignore the message if it has moved on | 541 // to, so that it can choose to ignore the message if it has moved on |
542 // to other things. The selection rect is expected to have coordinates | 542 // to other things. The selection rect is expected to have coordinates |
543 // relative to the top left corner of the web page area and represent | 543 // relative to the top left corner of the web page area and represent |
544 // where on the screen the selection rect is currently located. | 544 // where on the screen the selection rect is currently located. |
545 virtual void reportFindInPageSelection( | 545 virtual void reportFindInPageSelection( |
546 int identifier, int activeMatchOrdinal, const WebRect& selection) { } | 546 int identifier, int activeMatchOrdinal, const WebRect& selection) { } |
547 | 547 |
548 // Currently, TextFinder will report up the frame tree on certain events to | |
549 // form a tree of TextFinders. When we're experimenting with OOPIFs, this | |
550 // is precisely not what we want. Experiments that want to search per frame | |
551 // should override this to true. | |
552 virtual bool shouldSearchSingleFrame() { return false; } | |
553 | |
554 // Quota --------------------------------------------------------- | 548 // Quota --------------------------------------------------------- |
555 | 549 |
556 // Requests a new quota size for the origin's storage. | 550 // Requests a new quota size for the origin's storage. |
557 // |newQuotaInBytes| indicates how much storage space (in bytes) the | 551 // |newQuotaInBytes| indicates how much storage space (in bytes) the |
558 // caller expects to need. | 552 // caller expects to need. |
559 // WebStorageQuotaCallbacks::didGrantStorageQuota will be called when | 553 // WebStorageQuotaCallbacks::didGrantStorageQuota will be called when |
560 // a new quota is granted. WebStorageQuotaCallbacks::didFail | 554 // a new quota is granted. WebStorageQuotaCallbacks::didFail |
561 // is called with an error code otherwise. | 555 // is called with an error code otherwise. |
562 // Note that the requesting quota size may not always be granted and | 556 // Note that the requesting quota size may not always be granted and |
563 // a smaller amount of quota than requested might be returned. | 557 // a smaller amount of quota than requested might be returned. |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 // Mojo ---------------------------------------------------------------- | 704 // Mojo ---------------------------------------------------------------- |
711 virtual ServiceRegistry* serviceRegistry() { return nullptr; } | 705 virtual ServiceRegistry* serviceRegistry() { return nullptr; } |
712 | 706 |
713 protected: | 707 protected: |
714 virtual ~WebFrameClient() { } | 708 virtual ~WebFrameClient() { } |
715 }; | 709 }; |
716 | 710 |
717 } // namespace blink | 711 } // namespace blink |
718 | 712 |
719 #endif | 713 #endif |
OLD | NEW |