Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: components/html_viewer/document_resource_waiter.cc

Issue 1371773003: mandoline: Add find in page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: General patch cleanup. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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::OnFind(int32_t request_id,
190 const mojo::String& search_text) {
191 NOTREACHED();
192 }
193
194 void DocumentResourceWaiter::OnStopFinding() {
195 NOTREACHED();
196 }
197
189 void DocumentResourceWaiter::OnViewViewportMetricsChanged( 198 void DocumentResourceWaiter::OnViewViewportMetricsChanged(
190 mus::View* view, 199 mus::View* view,
191 const mojo::ViewportMetrics& old_metrics, 200 const mojo::ViewportMetrics& old_metrics,
192 const mojo::ViewportMetrics& new_metrics) { 201 const mojo::ViewportMetrics& new_metrics) {
193 UpdateIsReady(); 202 UpdateIsReady();
194 } 203 }
195 204
196 void DocumentResourceWaiter::OnViewDestroyed(mus::View* view) { 205 void DocumentResourceWaiter::OnViewDestroyed(mus::View* view) {
197 root_->RemoveObserver(this); 206 root_->RemoveObserver(this);
198 root_ = nullptr; 207 root_ = nullptr;
199 } 208 }
200 209
201 void DocumentResourceWaiter::OnHTMLFrameTreeManagerChangeIdAdvanced() { 210 void DocumentResourceWaiter::OnHTMLFrameTreeManagerChangeIdAdvanced() {
202 UpdateIsReady(); 211 UpdateIsReady();
203 } 212 }
204 213
205 void DocumentResourceWaiter::OnHTMLFrameTreeManagerDestroyed() { 214 void DocumentResourceWaiter::OnHTMLFrameTreeManagerDestroyed() {
206 document_->Destroy(); // This destroys us. 215 document_->Destroy(); // This destroys us.
207 } 216 }
208 217
209 } // namespace html_viewer 218 } // namespace html_viewer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698