OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |