| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual void DidCommitProvisionalLoad(Frame* frame) = 0; | 72 virtual void DidCommitProvisionalLoad(Frame* frame) = 0; |
| 73 | 73 |
| 74 // Invoked when the frame has changed its own URL. | 74 // Invoked when the frame has changed its own URL. |
| 75 virtual void DidNavigateLocally(Frame* source, const GURL& url) = 0; | 75 virtual void DidNavigateLocally(Frame* source, const GURL& url) = 0; |
| 76 | 76 |
| 77 // Notification of various frame state changes. Generally only useful for | 77 // Notification of various frame state changes. Generally only useful for |
| 78 // tests. | 78 // tests. |
| 79 virtual void DidCreateFrame(Frame* frame); | 79 virtual void DidCreateFrame(Frame* frame); |
| 80 virtual void DidDestroyFrame(Frame* frame); | 80 virtual void DidDestroyFrame(Frame* frame); |
| 81 | 81 |
| 82 // Invoked when the View embedded in a Frame premuturely stops rendering | 82 // Invoked when the Window embedded in a Frame premuturely stops rendering |
| 83 // to |frame|'s View. This could mean any of the following: | 83 // to |frame|'s Window. This could mean any of the following: |
| 84 // . The app crashed. | 84 // . The app crashed. |
| 85 // . There is no app that renders the url. | 85 // . There is no app that renders the url. |
| 86 // . The app is still alive, but is shutting down. | 86 // . The app is still alive, but is shutting down. |
| 87 // Frame does nothing in response to this, but the delegate may wish to take | 87 // Frame does nothing in response to this, but the delegate may wish to take |
| 88 // action. | 88 // action. |
| 89 virtual void OnWindowEmbeddedInFrameDisconnected(Frame* frame); | 89 virtual void OnWindowEmbeddedInFrameDisconnected(Frame* frame); |
| 90 | 90 |
| 91 // Reports the current find state back to our owner. | 91 // Reports the current find state back to our owner. |
| 92 virtual void OnFindInFrameCountUpdated(int32_t request_id, | 92 virtual void OnFindInFrameCountUpdated(int32_t request_id, |
| 93 Frame* frame, | 93 Frame* frame, |
| 94 int32_t count, | 94 int32_t count, |
| 95 bool final_update); | 95 bool final_update); |
| 96 virtual void OnFindInPageSelectionUpdated(int32_t request_id, | 96 virtual void OnFindInPageSelectionUpdated(int32_t request_id, |
| 97 Frame* frame, | 97 Frame* frame, |
| 98 int32_t active_match_ordinal); | 98 int32_t active_match_ordinal); |
| 99 | 99 |
| 100 protected: | 100 protected: |
| 101 virtual ~FrameTreeDelegate() {} | 101 virtual ~FrameTreeDelegate() {} |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace web_view | 104 } // namespace web_view |
| 105 | 105 |
| 106 #endif // COMPONENTS_WEB_VIEW_FRAME_TREE_DELEGATE_H_ | 106 #endif // COMPONENTS_WEB_VIEW_FRAME_TREE_DELEGATE_H_ |
| OLD | NEW |