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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 1600953003: Move find-in-page code from RenderView to RenderFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments by nasko@, git cl format. Created 4 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 } 562 }
563 563
564 void RenderViewHostImpl::ClosePageIgnoringUnloadEvents() { 564 void RenderViewHostImpl::ClosePageIgnoringUnloadEvents() {
565 GetWidget()->StopHangMonitorTimeout(); 565 GetWidget()->StopHangMonitorTimeout();
566 is_waiting_for_close_ack_ = false; 566 is_waiting_for_close_ack_ = false;
567 567
568 sudden_termination_allowed_ = true; 568 sudden_termination_allowed_ = true;
569 delegate_->Close(this); 569 delegate_->Close(this);
570 } 570 }
571 571
572 #if defined(OS_ANDROID)
573 void RenderViewHostImpl::ActivateNearestFindResult(int request_id,
574 float x,
575 float y) {
576 Send(new InputMsg_ActivateNearestFindResult(GetRoutingID(),
577 request_id, x, y));
578 }
579
580 void RenderViewHostImpl::RequestFindMatchRects(int current_version) {
581 Send(new ViewMsg_FindMatchRects(GetRoutingID(), current_version));
582 }
583 #endif
584
585 void RenderViewHostImpl::RenderProcessReady(RenderProcessHost* host) { 572 void RenderViewHostImpl::RenderProcessReady(RenderProcessHost* host) {
586 if (render_view_ready_on_process_launch_) { 573 if (render_view_ready_on_process_launch_) {
587 render_view_ready_on_process_launch_ = false; 574 render_view_ready_on_process_launch_ = false;
588 RenderViewReady(); 575 RenderViewReady();
589 } 576 }
590 } 577 }
591 578
592 void RenderViewHostImpl::RenderProcessExited(RenderProcessHost* host, 579 void RenderViewHostImpl::RenderProcessExited(RenderProcessHost* host,
593 base::TerminationStatus status, 580 base::TerminationStatus status,
594 int exit_code) { 581 int exit_code) {
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 } else { 1374 } else {
1388 render_view_ready_on_process_launch_ = true; 1375 render_view_ready_on_process_launch_ = true;
1389 } 1376 }
1390 } 1377 }
1391 1378
1392 void RenderViewHostImpl::RenderViewReady() { 1379 void RenderViewHostImpl::RenderViewReady() {
1393 delegate_->RenderViewReady(this); 1380 delegate_->RenderViewReady(this);
1394 } 1381 }
1395 1382
1396 } // namespace content 1383 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698