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 #include "components/html_viewer/document_resource_waiter.h" | 5 #include "components/html_viewer/document_resource_waiter.h" |
6 | 6 |
7 #include "components/html_viewer/global_state.h" | 7 #include "components/html_viewer/global_state.h" |
8 #include "components/html_viewer/html_document.h" | 8 #include "components/html_viewer/html_document.h" |
9 #include "components/html_viewer/html_frame_tree_manager.h" | 9 #include "components/html_viewer/html_frame_tree_manager.h" |
10 #include "components/mus/public/cpp/view.h" | 10 #include "components/mus/public/cpp/view.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 bool loading) { | 179 bool loading) { |
180 // It is assumed we receive OnConnect() (which unbinds) before anything else. | 180 // It is assumed we receive OnConnect() (which unbinds) before anything else. |
181 NOTREACHED(); | 181 NOTREACHED(); |
182 } | 182 } |
183 | 183 |
184 void DocumentResourceWaiter::OnDispatchFrameLoadEvent(uint32_t frame_id) { | 184 void DocumentResourceWaiter::OnDispatchFrameLoadEvent(uint32_t frame_id) { |
185 // It is assumed we receive OnConnect() (which unbinds) before anything else. | 185 // It is assumed we receive OnConnect() (which unbinds) before anything else. |
186 NOTREACHED(); | 186 NOTREACHED(); |
187 } | 187 } |
188 | 188 |
| 189 void DocumentResourceWaiter::Find(int32_t request_id, |
| 190 const mojo::String& search_text, |
| 191 const FindCallback& callback) { |
| 192 // It is assumed we receive OnConnect() (which unbinds) before anything else. |
| 193 NOTREACHED(); |
| 194 } |
| 195 |
| 196 void DocumentResourceWaiter::StopFinding(bool clear_selection) { |
| 197 // It is assumed we receive OnConnect() (which unbinds) before anything else. |
| 198 NOTREACHED(); |
| 199 } |
| 200 |
| 201 void DocumentResourceWaiter::ScopeStringMatches(int32_t request_id, |
| 202 const mojo::String& search_test, |
| 203 bool reset) { |
| 204 // It is assumed we receive OnConnect() (which unbinds) before anything else. |
| 205 NOTREACHED(); |
| 206 } |
| 207 |
| 208 void DocumentResourceWaiter::CancelPendingScopingEffort() { |
| 209 // It is assumed we receive OnConnect() (which unbinds) before anything else. |
| 210 NOTREACHED(); |
| 211 } |
| 212 |
189 void DocumentResourceWaiter::OnViewViewportMetricsChanged( | 213 void DocumentResourceWaiter::OnViewViewportMetricsChanged( |
190 mus::View* view, | 214 mus::View* view, |
191 const mojo::ViewportMetrics& old_metrics, | 215 const mojo::ViewportMetrics& old_metrics, |
192 const mojo::ViewportMetrics& new_metrics) { | 216 const mojo::ViewportMetrics& new_metrics) { |
193 UpdateIsReady(); | 217 UpdateIsReady(); |
194 } | 218 } |
195 | 219 |
196 void DocumentResourceWaiter::OnViewDestroyed(mus::View* view) { | 220 void DocumentResourceWaiter::OnViewDestroyed(mus::View* view) { |
197 root_->RemoveObserver(this); | 221 root_->RemoveObserver(this); |
198 root_ = nullptr; | 222 root_ = nullptr; |
199 } | 223 } |
200 | 224 |
201 void DocumentResourceWaiter::OnHTMLFrameTreeManagerChangeIdAdvanced() { | 225 void DocumentResourceWaiter::OnHTMLFrameTreeManagerChangeIdAdvanced() { |
202 UpdateIsReady(); | 226 UpdateIsReady(); |
203 } | 227 } |
204 | 228 |
205 void DocumentResourceWaiter::OnHTMLFrameTreeManagerDestroyed() { | 229 void DocumentResourceWaiter::OnHTMLFrameTreeManagerDestroyed() { |
206 document_->Destroy(); // This destroys us. | 230 document_->Destroy(); // This destroys us. |
207 } | 231 } |
208 | 232 |
209 } // namespace html_viewer | 233 } // namespace html_viewer |
OLD | NEW |