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

Side by Side Diff: ui/base/ime/text_input_client.h

Issue 8576005: IME (input method editor) support for Aura, part 3 of 3: Use ui::InputMethod in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: aura_win fix Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // This method will be called whenever a char is generated by the keyboard, 53 // This method will be called whenever a char is generated by the keyboard,
54 // even if the current text input type is TEXT_INPUT_TYPE_NONE. 54 // even if the current text input type is TEXT_INPUT_TYPE_NONE.
55 virtual void InsertChar(char16 ch, int flags) = 0; 55 virtual void InsertChar(char16 ch, int flags) = 0;
56 56
57 // Input context information ------------------------------------------------- 57 // Input context information -------------------------------------------------
58 58
59 // Returns current text input type. It could be changed and even becomes 59 // Returns current text input type. It could be changed and even becomes
60 // TEXT_INPUT_TYPE_NONE at runtime. 60 // TEXT_INPUT_TYPE_NONE at runtime.
61 virtual ui::TextInputType GetTextInputType() const = 0; 61 virtual ui::TextInputType GetTextInputType() const = 0;
62 62
63 // Returns current caret (insertion point) bounds relative to the View’s 63 // Returns current caret (insertion point) bounds relative to the screen
James Su 2011/11/24 03:57:03 If we unify this method to return rect in screen c
Yusuke Sato 2011/11/28 06:29:40 Thanks. Added TODO. On 2011/11/24 03:57:03, James
64 // coordinates. If there is selection, then the selection bounds will be 64 // coordinates. If there is selection, then the selection bounds will be
65 // returned. 65 // returned.
66 virtual gfx::Rect GetCaretBounds() = 0; 66 virtual gfx::Rect GetCaretBounds() = 0;
67 67
68 // Returns true if there is composition text. 68 // Returns true if there is composition text.
69 virtual bool HasCompositionText() = 0; 69 virtual bool HasCompositionText() = 0;
70 70
71 // Document content operations ---------------------------------------------- 71 // Document content operations ----------------------------------------------
72 72
73 // Retrieves the UTF-16 based character range containing accessibled text in 73 // Retrieves the UTF-16 based character range containing accessibled text in
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // alignment of the current text box. It’s for supporting ctrl-shift on 110 // alignment of the current text box. It’s for supporting ctrl-shift on
111 // Windows. 111 // Windows.
112 // Returns false if the operation is not supported. 112 // Returns false if the operation is not supported.
113 virtual bool ChangeTextDirectionAndLayoutAlignment( 113 virtual bool ChangeTextDirectionAndLayoutAlignment(
114 base::i18n::TextDirection direction) = 0; 114 base::i18n::TextDirection direction) = 0;
115 }; 115 };
116 116
117 } // namespace ui 117 } // namespace ui
118 118
119 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ 119 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698