OLD | NEW |
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_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 2100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2111 BackingStore* backing_store = BackingStoreManager::Lookup(this); | 2111 BackingStore* backing_store = BackingStoreManager::Lookup(this); |
2112 if (!backing_store || (backing_store->size() != view_size)) | 2112 if (!backing_store || (backing_store->size() != view_size)) |
2113 return; | 2113 return; |
2114 backing_store->ScrollBackingStore(delta, clip_rect, view_size); | 2114 backing_store->ScrollBackingStore(delta, clip_rect, view_size); |
2115 } | 2115 } |
2116 | 2116 |
2117 void RenderWidgetHostImpl::Replace(const string16& word) { | 2117 void RenderWidgetHostImpl::Replace(const string16& word) { |
2118 Send(new ViewMsg_Replace(routing_id_, word)); | 2118 Send(new ViewMsg_Replace(routing_id_, word)); |
2119 } | 2119 } |
2120 | 2120 |
| 2121 void RenderWidgetHostImpl::ReplaceMisspelling(const string16& word) { |
| 2122 Send(new ViewMsg_ReplaceMisspelling(routing_id_, word)); |
| 2123 } |
| 2124 |
2121 void RenderWidgetHostImpl::SetIgnoreInputEvents(bool ignore_input_events) { | 2125 void RenderWidgetHostImpl::SetIgnoreInputEvents(bool ignore_input_events) { |
2122 ignore_input_events_ = ignore_input_events; | 2126 ignore_input_events_ = ignore_input_events; |
2123 } | 2127 } |
2124 | 2128 |
2125 bool RenderWidgetHostImpl::KeyPressListenersHandleEvent( | 2129 bool RenderWidgetHostImpl::KeyPressListenersHandleEvent( |
2126 const NativeWebKeyboardEvent& event) { | 2130 const NativeWebKeyboardEvent& event) { |
2127 if (event.skip_in_browser || event.type != WebKeyboardEvent::RawKeyDown) | 2131 if (event.skip_in_browser || event.type != WebKeyboardEvent::RawKeyDown) |
2128 return false; | 2132 return false; |
2129 | 2133 |
2130 for (std::list<KeyboardListener*>::iterator it = keyboard_listeners_.begin(); | 2134 for (std::list<KeyboardListener*>::iterator it = keyboard_listeners_.begin(); |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2391 return; | 2395 return; |
2392 | 2396 |
2393 OnRenderAutoResized(new_size); | 2397 OnRenderAutoResized(new_size); |
2394 } | 2398 } |
2395 | 2399 |
2396 void RenderWidgetHostImpl::DetachDelegate() { | 2400 void RenderWidgetHostImpl::DetachDelegate() { |
2397 delegate_ = NULL; | 2401 delegate_ = NULL; |
2398 } | 2402 } |
2399 | 2403 |
2400 } // namespace content | 2404 } // namespace content |
OLD | NEW |