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

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: change int to size_t 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
« no previous file with comments | « ui/base/ime/input_method_ibus_unittest.cc ('k') | ui/base/win/tsf_text_store_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 virtual void ExtendSelectionAndDelete(size_t before, size_t after) = 0;
130 }; 134 };
131 135
132 } // namespace ui 136 } // namespace ui
133 137
134 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 138 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_ibus_unittest.cc ('k') | ui/base/win/tsf_text_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698