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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 10928199: Add ExtendSelectionAndDelete() method to ui::TextInputClient. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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
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_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
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(int before, int after);
Seigo Nonaka 2012/09/14 04:21:03 |before| and |after| can be negative? Please add d
horo 2012/09/14 04:34:50 Done.
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698