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

Side by Side Diff: components/web_view/frame_apptest.cc

Issue 1371773003: mandoline: Add find in page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT to fix patch failure. 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/web_view/frame.h" 5 #include "components/web_view/frame.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 if (!on_loading_state_changed_callback_.is_null()) 160 if (!on_loading_state_changed_callback_.is_null())
161 on_loading_state_changed_callback_.Run(); 161 on_loading_state_changed_callback_.Run();
162 } 162 }
163 void OnDispatchFrameLoadEvent(uint32_t frame_id) override { 163 void OnDispatchFrameLoadEvent(uint32_t frame_id) override {
164 last_dispatch_load_event_frame_id_ = frame_id; 164 last_dispatch_load_event_frame_id_ = frame_id;
165 165
166 if (!on_dispatch_load_event_callback_.is_null()) 166 if (!on_dispatch_load_event_callback_.is_null())
167 on_dispatch_load_event_callback_.Run(); 167 on_dispatch_load_event_callback_.Run();
168 } 168 }
169 void Find(int32_t request_id, const mojo::String& search_text,
170 const FindCallback& callback) override {}
171 void StopFinding(bool clear_selection) override {}
172 void ScopeStringMatches(int32_t request_id, const mojo::String& search_test,
173 bool reset) override {}
174 void CancelPendingScopingEffort() override {}
169 175
170 private: 176 private:
171 struct LoadingStateChangedNotification { 177 struct LoadingStateChangedNotification {
172 LoadingStateChangedNotification() : frame_id(0), loading(false) {} 178 LoadingStateChangedNotification() : frame_id(0), loading(false) {}
173 ~LoadingStateChangedNotification() {} 179 ~LoadingStateChangedNotification() {}
174 180
175 uint32_t frame_id; 181 uint32_t frame_id;
176 bool loading; 182 bool loading;
177 }; 183 };
178 184
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 child_view_and_frame->server_frame()->DispatchLoadEventToParent(); 520 child_view_and_frame->server_frame()->DispatchLoadEventToParent();
515 521
516 run_loop.Run(); 522 run_loop.Run();
517 523
518 uint32_t frame_id = root_view_and_frame() 524 uint32_t frame_id = root_view_and_frame()
519 ->test_frame_client() 525 ->test_frame_client()
520 ->last_dispatch_load_event_frame_id(); 526 ->last_dispatch_load_event_frame_id();
521 EXPECT_EQ(child_frame_id, frame_id); 527 EXPECT_EQ(child_frame_id, frame_id);
522 } 528 }
523 } // namespace web_view 529 } // namespace web_view
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698