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

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

Issue 222783004: Move textual replacement to WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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/native_web_keyboard_event.h" 10 #include "content/public/browser/native_web_keyboard_event.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // never cache this pointer since it can become NULL if the renderer crashes, 235 // never cache this pointer since it can become NULL if the renderer crashes,
236 // instead you should always ask for it using the accessor. 236 // instead you should always ask for it using the accessor.
237 virtual RenderWidgetHostView* GetView() const = 0; 237 virtual RenderWidgetHostView* GetView() const = 0;
238 238
239 // Returns true if the renderer is loading, false if not. 239 // Returns true if the renderer is loading, false if not.
240 virtual bool IsLoading() const = 0; 240 virtual bool IsLoading() const = 0;
241 241
242 // Returns true if this is a RenderViewHost, false if not. 242 // Returns true if this is a RenderViewHost, false if not.
243 virtual bool IsRenderView() const = 0; 243 virtual bool IsRenderView() const = 0;
244 244
245 // Makes an IPC call to tell webkit to replace the currently selected word
246 // or a word around the cursor.
247 virtual void Replace(const base::string16& word) = 0;
248
249 // Makes an IPC call to tell webkit to replace the misspelling in the current
250 // selection.
251 virtual void ReplaceMisspelling(const base::string16& word) = 0;
252
253 // Called to notify the RenderWidget that the resize rect has changed without 245 // Called to notify the RenderWidget that the resize rect has changed without
254 // the size of the RenderWidget itself changing. 246 // the size of the RenderWidget itself changing.
255 virtual void ResizeRectChanged(const gfx::Rect& new_rect) = 0; 247 virtual void ResizeRectChanged(const gfx::Rect& new_rect) = 0;
256 248
257 // Restart the active hang monitor timeout. Clears all existing timeouts and 249 // Restart the active hang monitor timeout. Clears all existing timeouts and
258 // starts with a new one. This can be because the renderer has become 250 // starts with a new one. This can be because the renderer has become
259 // active, the tab is being hidden, or the user has chosen to wait some more 251 // active, the tab is being hidden, or the user has chosen to wait some more
260 // to give the tab a chance to become active and we don't want to display a 252 // to give the tab a chance to become active and we don't want to display a
261 // warning too soon. 253 // warning too soon.
262 virtual void RestartHangMonitorTimeout() = 0; 254 virtual void RestartHangMonitorTimeout() = 0;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // within content/. This method is necessary because 299 // within content/. This method is necessary because
308 // RenderWidgetHost is the root of a diamond inheritance pattern, so 300 // RenderWidgetHost is the root of a diamond inheritance pattern, so
309 // subclasses inherit it virtually, which removes our ability to 301 // subclasses inherit it virtually, which removes our ability to
310 // static_cast to the subclass. 302 // static_cast to the subclass.
311 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; 303 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0;
312 }; 304 };
313 305
314 } // namespace content 306 } // namespace content
315 307
316 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 308 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698