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 #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 Loading... |
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 Loading... |
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_ |
OLD | NEW |