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 // |before| and |after| can't be negative. | |
301 void ExtendSelectionAndDelete(int before, int after); | |
sky
2012/09/14 16:14:11
This is a weird method, why not DeleteRange(const
horo
2012/09/14 16:29:19
Because of the asynchronous IPC between the browse
| |
302 | |
298 // This is for derived classes to give us access to the resizer rect. | 303 // This is for derived classes to give us access to the resizer rect. |
299 // And to also expose it to the RenderWidgetHostView. | 304 // And to also expose it to the RenderWidgetHostView. |
300 virtual gfx::Rect GetRootWindowResizerRect() const; | 305 virtual gfx::Rect GetRootWindowResizerRect() const; |
301 | 306 |
302 bool ignore_input_events() const { | 307 bool ignore_input_events() const { |
303 return ignore_input_events_; | 308 return ignore_input_events_; |
304 } | 309 } |
305 | 310 |
306 // Activate deferred plugin handles. | 311 // Activate deferred plugin handles. |
307 void ActivateDeferredPluginHandles(); | 312 void ActivateDeferredPluginHandles(); |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
805 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 810 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
806 | 811 |
807 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 812 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
808 | 813 |
809 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 814 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
810 }; | 815 }; |
811 | 816 |
812 } // namespace content | 817 } // namespace content |
813 | 818 |
814 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 819 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |