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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 | 870 |
871 // TODO(darin): do we need to do something else if our backing store is not | 871 // TODO(darin): do we need to do something else if our backing store is not |
872 // the same size as the advertised view? maybe we just assume there is a | 872 // the same size as the advertised view? maybe we just assume there is a |
873 // full paint on its way? | 873 // full paint on its way? |
874 BackingStore* backing_store = BackingStoreManager::Lookup(this); | 874 BackingStore* backing_store = BackingStoreManager::Lookup(this); |
875 if (!backing_store || (backing_store->size() != view_size)) | 875 if (!backing_store || (backing_store->size() != view_size)) |
876 return; | 876 return; |
877 backing_store->ScrollRect(process_->process().handle(), bitmap, bitmap_rect, | 877 backing_store->ScrollRect(process_->process().handle(), bitmap, bitmap_rect, |
878 dx, dy, clip_rect, view_size); | 878 dx, dy, clip_rect, view_size); |
879 } | 879 } |
| 880 |
| 881 void RenderWidgetHost::ToggleSpellPanel(bool is_currently_visible) { |
| 882 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible)); |
| 883 } |
| 884 |
| 885 void RenderWidgetHost::ReplaceWord(const std::wstring& word) { |
| 886 Send(new ViewMsg_Replace(routing_id_, word)); |
| 887 } |
| 888 |
| 889 void RenderWidgetHost::AdvanceToNextMisspelling() { |
| 890 Send(new ViewMsg_AdvanceToNextMisspelling(routing_id_)); |
| 891 } |
OLD | NEW |