OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_WEB_VIEW_FRAME_TREE_DELEGATE_H_ | 5 #ifndef COMPONENTS_WEB_VIEW_FRAME_TREE_DELEGATE_H_ |
6 #define COMPONENTS_WEB_VIEW_FRAME_TREE_DELEGATE_H_ | 6 #define COMPONENTS_WEB_VIEW_FRAME_TREE_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 // Invoked when the View embedded in a Frame premuturely stops rendering | 78 // Invoked when the View embedded in a Frame premuturely stops rendering |
79 // to |frame|'s View. This could mean any of the following: | 79 // to |frame|'s View. This could mean any of the following: |
80 // . The app crashed. | 80 // . The app crashed. |
81 // . There is no app that renders the url. | 81 // . There is no app that renders the url. |
82 // . The app is still alive, but is shutting down. | 82 // . The app is still alive, but is shutting down. |
83 // Frame does nothing in response to this, but the delegate may wish to take | 83 // Frame does nothing in response to this, but the delegate may wish to take |
84 // action. | 84 // action. |
85 virtual void OnViewEmbeddedInFrameDisconnected(Frame* frame); | 85 virtual void OnViewEmbeddedInFrameDisconnected(Frame* frame); |
86 | 86 |
| 87 // Reports the current find state back to our owner. |
| 88 virtual void ReportFindInPageMatchCount(int32_t request_id, |
| 89 int32_t count, |
| 90 bool final_update); |
| 91 virtual void ReportFindInPageSelection(int32_t request_id, |
| 92 int32_t active_match_ordinal); |
| 93 |
87 protected: | 94 protected: |
88 virtual ~FrameTreeDelegate() {} | 95 virtual ~FrameTreeDelegate() {} |
89 }; | 96 }; |
90 | 97 |
91 } // namespace web_view | 98 } // namespace web_view |
92 | 99 |
93 #endif // COMPONENTS_WEB_VIEW_FRAME_TREE_DELEGATE_H_ | 100 #endif // COMPONENTS_WEB_VIEW_FRAME_TREE_DELEGATE_H_ |
OLD | NEW |