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

Side by Side Diff: views/ime/input_method.h

Issue 7550038: Rename VIEWS_API to VIEWS_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « views/focus/view_storage.h ('k') | views/ime/input_method_base.h » ('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) 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 VIEWS_IME_INPUT_METHOD_H_ 5 #ifndef VIEWS_IME_INPUT_METHOD_H_
6 #define VIEWS_IME_INPUT_METHOD_H_ 6 #define VIEWS_IME_INPUT_METHOD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "ui/base/ime/text_input_type.h" 13 #include "ui/base/ime/text_input_type.h"
14 #include "views/views_api.h" 14 #include "views/views_export.h"
15 15
16 namespace views { 16 namespace views {
17 17
18 namespace internal { 18 namespace internal {
19 class InputMethodDelegate; 19 class InputMethodDelegate;
20 } // namespace internal 20 } // namespace internal
21 21
22 class KeyEvent; 22 class KeyEvent;
23 class TextInputClient; 23 class TextInputClient;
24 class View; 24 class View;
25 class Widget; 25 class Widget;
26 26
27 // An interface implemented by an object that encapsulates a native input method 27 // An interface implemented by an object that encapsulates a native input method
28 // service provided by the underlying operation system. 28 // service provided by the underlying operation system.
29 // Because on most systems, the system input method service is bound to 29 // Because on most systems, the system input method service is bound to
30 // individual native window. On Windows, its HWND, on Linux/Gtk, its GdkWindow. 30 // individual native window. On Windows, its HWND, on Linux/Gtk, its GdkWindow.
31 // And in Views control system, only the top-level NativeWidget has a native 31 // And in Views control system, only the top-level NativeWidget has a native
32 // window that can get keyboard focus. So this API is designed to be bound to 32 // window that can get keyboard focus. So this API is designed to be bound to
33 // the top-level NativeWidget. 33 // the top-level NativeWidget.
34 class VIEWS_API InputMethod { 34 class VIEWS_EXPORT InputMethod {
35 public: 35 public:
36 virtual ~InputMethod() {} 36 virtual ~InputMethod() {}
37 37
38 // Sets the delegate used by this InputMethod instance. It should only be 38 // Sets the delegate used by this InputMethod instance. It should only be
39 // called by the internal NativeWidget or testing code. 39 // called by the internal NativeWidget or testing code.
40 virtual void set_delegate(internal::InputMethodDelegate* delegate) = 0; 40 virtual void set_delegate(internal::InputMethodDelegate* delegate) = 0;
41 41
42 // Initialize the InputMethod object and attach it to the given |widget|. 42 // Initialize the InputMethod object and attach it to the given |widget|.
43 // The |widget| must already be initialized. 43 // The |widget| must already be initialized.
44 virtual void Init(Widget* widget) = 0; 44 virtual void Init(Widget* widget) = 0;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Gets the text input type of the focused text input client. Returns 101 // Gets the text input type of the focused text input client. Returns
102 // ui::TEXT_INPUT_TYPE_NONE if there is no focused text input client. 102 // ui::TEXT_INPUT_TYPE_NONE if there is no focused text input client.
103 virtual ui::TextInputType GetTextInputType() const = 0; 103 virtual ui::TextInputType GetTextInputType() const = 0;
104 104
105 // TODO(suzhe): Support mouse/touch event. 105 // TODO(suzhe): Support mouse/touch event.
106 }; 106 };
107 107
108 } // namespace views 108 } // namespace views
109 109
110 #endif // VIEWS_IME_INPUT_METHOD_H_ 110 #endif // VIEWS_IME_INPUT_METHOD_H_
OLDNEW
« no previous file with comments | « views/focus/view_storage.h ('k') | views/ime/input_method_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698