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

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

Issue 12038037: Replace the misspelled range within a selection to correct spelling. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698