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::HighlightFindResults( |
| 202 int32_t request_id, |
| 203 const mojo::String& search_test, |
| 204 bool reset) { |
| 205 // It is assumed we receive OnConnect() (which unbinds) before anything else. |
| 206 NOTREACHED(); |
| 207 } |
| 208 |
| 209 void DocumentResourceWaiter::StopHighlightingFindResults() { |
| 210 // It is assumed we receive OnConnect() (which unbinds) before anything else. |
| 211 NOTREACHED(); |
| 212 } |
| 213 |
189 void DocumentResourceWaiter::OnViewViewportMetricsChanged( | 214 void DocumentResourceWaiter::OnViewViewportMetricsChanged( |
190 mus::View* view, | 215 mus::View* view, |
191 const mojo::ViewportMetrics& old_metrics, | 216 const mojo::ViewportMetrics& old_metrics, |
192 const mojo::ViewportMetrics& new_metrics) { | 217 const mojo::ViewportMetrics& new_metrics) { |
193 UpdateIsReady(); | 218 UpdateIsReady(); |
194 } | 219 } |
195 | 220 |
196 void DocumentResourceWaiter::OnViewDestroyed(mus::View* view) { | 221 void DocumentResourceWaiter::OnViewDestroyed(mus::View* view) { |
197 root_->RemoveObserver(this); | 222 root_->RemoveObserver(this); |
198 root_ = nullptr; | 223 root_ = nullptr; |
199 } | 224 } |
200 | 225 |
201 void DocumentResourceWaiter::OnHTMLFrameTreeManagerChangeIdAdvanced() { | 226 void DocumentResourceWaiter::OnHTMLFrameTreeManagerChangeIdAdvanced() { |
202 UpdateIsReady(); | 227 UpdateIsReady(); |
203 } | 228 } |
204 | 229 |
205 void DocumentResourceWaiter::OnHTMLFrameTreeManagerDestroyed() { | 230 void DocumentResourceWaiter::OnHTMLFrameTreeManagerDestroyed() { |
206 document_->Destroy(); // This destroys us. | 231 document_->Destroy(); // This destroys us. |
207 } | 232 } |
208 | 233 |
209 } // namespace html_viewer | 234 } // namespace html_viewer |
OLD | NEW |