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

Side by Side Diff: content/public/browser/render_widget_host.h

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/common/view_messages.h ('k') | content/renderer/render_view_impl.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 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/keyboard_listener.h" 10 #include "content/public/browser/keyboard_listener.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // and doesn't put the results into the backing store. 237 // and doesn't put the results into the backing store.
238 virtual void PaintAtSize(TransportDIB::Handle dib_handle, 238 virtual void PaintAtSize(TransportDIB::Handle dib_handle,
239 int tag, 239 int tag,
240 const gfx::Size& page_size, 240 const gfx::Size& page_size,
241 const gfx::Size& desired_size) = 0; 241 const gfx::Size& desired_size) = 0;
242 242
243 // Makes an IPC call to tell webkit to replace the currently selected word 243 // Makes an IPC call to tell webkit to replace the currently selected word
244 // or a word around the cursor. 244 // or a word around the cursor.
245 virtual void Replace(const string16& word) = 0; 245 virtual void Replace(const string16& word) = 0;
246 246
247 // Makes an IPC call to tell webkit to replace the misspelling in the current
248 // selection.
249 virtual void ReplaceMisspelling(const string16& word) = 0;
250
247 // Called to notify the RenderWidget that the resize rect has changed without 251 // Called to notify the RenderWidget that the resize rect has changed without
248 // the size of the RenderWidget itself changing. 252 // the size of the RenderWidget itself changing.
249 virtual void ResizeRectChanged(const gfx::Rect& new_rect) = 0; 253 virtual void ResizeRectChanged(const gfx::Rect& new_rect) = 0;
250 254
251 // Restart the active hang monitor timeout. Clears all existing timeouts and 255 // Restart the active hang monitor timeout. Clears all existing timeouts and
252 // starts with a new one. This can be because the renderer has become 256 // starts with a new one. This can be because the renderer has become
253 // active, the tab is being hidden, or the user has chosen to wait some more 257 // active, the tab is being hidden, or the user has chosen to wait some more
254 // to give the tab a chance to become active and we don't want to display a 258 // to give the tab a chance to become active and we don't want to display a
255 // warning too soon. 259 // warning too soon.
256 virtual void RestartHangMonitorTimeout() = 0; 260 virtual void RestartHangMonitorTimeout() = 0;
(...skipping 23 matching lines...) Expand all
280 // within content/. This method is necessary because 284 // within content/. This method is necessary because
281 // RenderWidgetHost is the root of a diamond inheritance pattern, so 285 // RenderWidgetHost is the root of a diamond inheritance pattern, so
282 // subclasses inherit it virtually, which removes our ability to 286 // subclasses inherit it virtually, which removes our ability to
283 // static_cast to the subclass. 287 // static_cast to the subclass.
284 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; 288 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0;
285 }; 289 };
286 290
287 } // namespace content 291 } // namespace content
288 292
289 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 293 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698