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

Side by Side Diff: ui/base/ime/linux/linux_input_method_context.h

Issue 45963003: Move test-only ContextFactory implementations out of production targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix moar windows Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_LINUX_LINUX_INPUT_METHOD_CONTEXT_H_ 5 #ifndef UI_BASE_IME_LINUX_LINUX_INPUT_METHOD_CONTEXT_H_
6 #define UI_BASE_IME_LINUX_LINUX_INPUT_METHOD_CONTEXT_H_ 6 #define UI_BASE_IME_LINUX_LINUX_INPUT_METHOD_CONTEXT_H_
7 7
8 #include "base/event_types.h" 8 #include "base/event_types.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "ui/base/ime/text_input_type.h" 11 #include "ui/base/ime/text_input_type.h"
12 #include "ui/base/ui_export.h" 12 #include "ui/base/ui_export.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 class Rect; 15 class Rect;
16 } 16 }
17 17
18 namespace ui { 18 namespace ui {
19 19
20 struct CompositionText; 20 class CompositionText;
jamesr 2013/10/30 00:30:40 ditto
21 21
22 // An interface of input method context for input method frameworks on 22 // An interface of input method context for input method frameworks on
23 // GNU/Linux and likes. 23 // GNU/Linux and likes.
24 class UI_EXPORT LinuxInputMethodContext { 24 class UI_EXPORT LinuxInputMethodContext {
25 public: 25 public:
26 virtual ~LinuxInputMethodContext() {} 26 virtual ~LinuxInputMethodContext() {}
27 27
28 // Dispatches the key event to an underlying IME. Returns true if the key 28 // Dispatches the key event to an underlying IME. Returns true if the key
29 // event is handled, otherwise false. A client must set the text input type 29 // event is handled, otherwise false. A client must set the text input type
30 // before dispatching a key event. 30 // before dispatching a key event.
(...skipping 29 matching lines...) Expand all
60 // cleared. 60 // cleared.
61 virtual void OnPreeditEnd() = 0; 61 virtual void OnPreeditEnd() = 0;
62 62
63 // Prepares things for a new composition session. 63 // Prepares things for a new composition session.
64 virtual void OnPreeditStart() = 0; 64 virtual void OnPreeditStart() = 0;
65 }; 65 };
66 66
67 } // namespace ui 67 } // namespace ui
68 68
69 #endif // UI_BASE_IME_LINUX_LINUX_INPUT_METHOD_CONTEXT_H_ 69 #endif // UI_BASE_IME_LINUX_LINUX_INPUT_METHOD_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698