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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 void ImeConfirmComposition(const string16& text, | 288 void ImeConfirmComposition(const string16& text, |
289 const ui::Range& replacement_range); | 289 const ui::Range& replacement_range); |
290 | 290 |
291 // Finishes an ongoing composition with the composition text set by last | 291 // Finishes an ongoing composition with the composition text set by last |
292 // SetComposition() call. | 292 // SetComposition() call. |
293 void ImeConfirmComposition(); | 293 void ImeConfirmComposition(); |
294 | 294 |
295 // Cancels an ongoing composition. | 295 // Cancels an ongoing composition. |
296 void ImeCancelComposition(); | 296 void ImeCancelComposition(); |
297 | 297 |
| 298 // Deletes the current selection plus the specified number of characters |
| 299 // before and after the selection or caret. |
| 300 void ExtendSelectionAndDelete(size_t before, size_t after); |
| 301 |
298 // This is for derived classes to give us access to the resizer rect. | 302 // This is for derived classes to give us access to the resizer rect. |
299 // And to also expose it to the RenderWidgetHostView. | 303 // And to also expose it to the RenderWidgetHostView. |
300 virtual gfx::Rect GetRootWindowResizerRect() const; | 304 virtual gfx::Rect GetRootWindowResizerRect() const; |
301 | 305 |
302 bool ignore_input_events() const { | 306 bool ignore_input_events() const { |
303 return ignore_input_events_; | 307 return ignore_input_events_; |
304 } | 308 } |
305 | 309 |
306 // Activate deferred plugin handles. | 310 // Activate deferred plugin handles. |
307 void ActivateDeferredPluginHandles(); | 311 void ActivateDeferredPluginHandles(); |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 809 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
806 | 810 |
807 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 811 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
808 | 812 |
809 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 813 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
810 }; | 814 }; |
811 | 815 |
812 } // namespace content | 816 } // namespace content |
813 | 817 |
814 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 818 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |