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

Side by Side Diff: views/ime/text_input_client.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/ime/mock_input_method.h ('k') | views/layer_property_setter.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_TEXT_INPUT_CLIENT_H_ 5 #ifndef VIEWS_IME_TEXT_INPUT_CLIENT_H_
6 #define VIEWS_IME_TEXT_INPUT_CLIENT_H_ 6 #define VIEWS_IME_TEXT_INPUT_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "ui/base/ime/composition_text.h" 14 #include "ui/base/ime/composition_text.h"
15 #include "ui/base/ime/text_input_type.h" 15 #include "ui/base/ime/text_input_type.h"
16 #include "ui/base/range/range.h" 16 #include "ui/base/range/range.h"
17 #include "views/views_api.h" 17 #include "views/views_export.h"
18 18
19 namespace gfx { 19 namespace gfx {
20 class Rect; 20 class Rect;
21 } 21 }
22 22
23 namespace views { 23 namespace views {
24 24
25 class View; 25 class View;
26 26
27 // An interface implemented by a View that needs text input support. 27 // An interface implemented by a View that needs text input support.
28 class VIEWS_API TextInputClient { 28 class VIEWS_EXPORT TextInputClient {
29 public: 29 public:
30 virtual ~TextInputClient() {} 30 virtual ~TextInputClient() {}
31 31
32 // Input method result ------------------------------------------------------- 32 // Input method result -------------------------------------------------------
33 33
34 // Sets composition text and attributes. If there is composition text already, 34 // Sets composition text and attributes. If there is composition text already,
35 // it’ll be replaced by the new one. Otherwise, current selection will be 35 // it’ll be replaced by the new one. Otherwise, current selection will be
36 // replaced. If there is no selection, the composition text will be inserted 36 // replaced. If there is no selection, the composition text will be inserted
37 // at the insertion point. 37 // at the insertion point.
38 virtual void SetCompositionText(const ui::CompositionText& composition) = 0; 38 virtual void SetCompositionText(const ui::CompositionText& composition) = 0;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual bool ChangeTextDirectionAndLayoutAlignment( 118 virtual bool ChangeTextDirectionAndLayoutAlignment(
119 base::i18n::TextDirection direction) = 0; 119 base::i18n::TextDirection direction) = 0;
120 120
121 // Gets the View object who owns this TextInputClient instance. 121 // Gets the View object who owns this TextInputClient instance.
122 virtual View* GetOwnerViewOfTextInputClient() = 0; 122 virtual View* GetOwnerViewOfTextInputClient() = 0;
123 }; 123 };
124 124
125 } // namespace views 125 } // namespace views
126 126
127 #endif // VIEWS_IME_TEXT_INPUT_CLIENT_H_ 127 #endif // VIEWS_IME_TEXT_INPUT_CLIENT_H_
OLDNEW
« no previous file with comments | « views/ime/mock_input_method.h ('k') | views/layer_property_setter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698