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

Side by Side Diff: ui/base/ime/text_input_client.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 UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 5 #ifndef UI_BASE_IME_TEXT_INPUT_CLIENT_H_
6 #define UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 6 #define UI_BASE_IME_TEXT_INPUT_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Called whenever current keyboard layout or input method is changed, 120 // Called whenever current keyboard layout or input method is changed,
121 // especially the change of input locale and text direction. 121 // especially the change of input locale and text direction.
122 virtual void OnInputMethodChanged() = 0; 122 virtual void OnInputMethodChanged() = 0;
123 123
124 // Called whenever the user requests to change the text direction and layout 124 // Called whenever the user requests to change the text direction and layout
125 // alignment of the current text box. It’s for supporting ctrl-shift on 125 // alignment of the current text box. It’s for supporting ctrl-shift on
126 // Windows. 126 // Windows.
127 // Returns false if the operation is not supported. 127 // Returns false if the operation is not supported.
128 virtual bool ChangeTextDirectionAndLayoutAlignment( 128 virtual bool ChangeTextDirectionAndLayoutAlignment(
129 base::i18n::TextDirection direction) = 0; 129 base::i18n::TextDirection direction) = 0;
130
131 // Deletes the current selection plus the specified number of characters
132 // before and after the selection or caret.
133 // |before| and |after| can't be negative.
sky 2012/09/14 23:16:26 remove comment once you make size_t
horo 2012/09/14 23:50:38 Done.
134 virtual void ExtendSelectionAndDelete(int before, int after) = 0;
130 }; 135 };
131 136
132 } // namespace ui 137 } // namespace ui
133 138
134 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 139 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698