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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host.cc

Issue 348025: Fixes reloading after a background tab crashes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/renderer_host/render_widget_host.h" 5 #include "chrome/browser/renderer_host/render_widget_host.h"
6 6
7 #include "base/histogram.h" 7 #include "base/histogram.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/keyboard_codes.h" 9 #include "base/keyboard_codes.h"
10 #include "chrome/browser/renderer_host/backing_store.h" 10 #include "chrome/browser/renderer_host/backing_store.h"
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 // Clearing this flag causes us to re-create the renderer when recovering 529 // Clearing this flag causes us to re-create the renderer when recovering
530 // from a crashed renderer. 530 // from a crashed renderer.
531 renderer_initialized_ = false; 531 renderer_initialized_ = false;
532 532
533 // Must reset these to ensure that mouse move events work with a new renderer. 533 // Must reset these to ensure that mouse move events work with a new renderer.
534 mouse_move_pending_ = false; 534 mouse_move_pending_ = false;
535 next_mouse_move_.reset(); 535 next_mouse_move_.reset();
536 536
537 // Reset some fields in preparation for recovering from a crash. 537 // Reset some fields in preparation for recovering from a crash.
538 resize_ack_pending_ = false; 538 resize_ack_pending_ = false;
539 current_size_ = gfx::Size(); 539 in_flight_size_.SetSize(0, 0);
540 current_size_.SetSize(0, 0);
540 is_hidden_ = false; 541 is_hidden_ = false;
541 542
542 if (view_) { 543 if (view_) {
543 view_->RenderViewGone(); 544 view_->RenderViewGone();
544 view_ = NULL; // The View should be deleted by RenderViewGone. 545 view_ = NULL; // The View should be deleted by RenderViewGone.
545 } 546 }
546 547
547 BackingStoreManager::RemoveBackingStore(this); 548 BackingStoreManager::RemoveBackingStore(this);
548 } 549 }
549 550
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible)); 1042 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible));
1042 } 1043 }
1043 1044
1044 void RenderWidgetHost::Replace(const string16& word) { 1045 void RenderWidgetHost::Replace(const string16& word) {
1045 Send(new ViewMsg_Replace(routing_id_, word)); 1046 Send(new ViewMsg_Replace(routing_id_, word));
1046 } 1047 }
1047 1048
1048 void RenderWidgetHost::AdvanceToNextMisspelling() { 1049 void RenderWidgetHost::AdvanceToNextMisspelling() {
1049 Send(new ViewMsg_AdvanceToNextMisspelling(routing_id_)); 1050 Send(new ViewMsg_AdvanceToNextMisspelling(routing_id_));
1050 } 1051 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.h ('k') | chrome/browser/renderer_host/render_widget_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698