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

Side by Side Diff: win8/metro_driver/ime/text_service_delegate.h

Issue 119733002: Add base:: to string16s in win8/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 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
« no previous file with comments | « win8/metro_driver/ime/text_service.cc ('k') | win8/metro_driver/ime/text_store.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 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 WIN8_METRO_DRIVER_IME_TEXT_SERVICE_DELEGATE_H_ 5 #ifndef WIN8_METRO_DRIVER_IME_TEXT_SERVICE_DELEGATE_H_
6 #define WIN8_METRO_DRIVER_IME_TEXT_SERVICE_DELEGATE_H_ 6 #define WIN8_METRO_DRIVER_IME_TEXT_SERVICE_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 12
13 namespace metro_viewer { 13 namespace metro_viewer {
14 struct UnderlineInfo; 14 struct UnderlineInfo;
15 } 15 }
16 16
17 namespace metro_driver { 17 namespace metro_driver {
18 18
19 // A delegate which works together with virtual text service. 19 // A delegate which works together with virtual text service.
20 // Objects that implement this delegate will receive notifications from a 20 // Objects that implement this delegate will receive notifications from a
21 // virtual text service whenever an IME updates the composition or commits text. 21 // virtual text service whenever an IME updates the composition or commits text.
22 class TextServiceDelegate { 22 class TextServiceDelegate {
23 public: 23 public:
24 virtual ~TextServiceDelegate() {} 24 virtual ~TextServiceDelegate() {}
25 25
26 // Called when on-going composition is updated. An empty |text| represents 26 // Called when on-going composition is updated. An empty |text| represents
27 // that the composition is canceled. 27 // that the composition is canceled.
28 virtual void OnCompositionChanged( 28 virtual void OnCompositionChanged(
29 const string16& text, 29 const base::string16& text,
30 int32 selection_start, 30 int32 selection_start,
31 int32 selection_end, 31 int32 selection_end,
32 const std::vector<metro_viewer::UnderlineInfo>& underlines) = 0; 32 const std::vector<metro_viewer::UnderlineInfo>& underlines) = 0;
33 33
34 // Called when |text| is committed. 34 // Called when |text| is committed.
35 virtual void OnTextCommitted(const string16& text) = 0; 35 virtual void OnTextCommitted(const base::string16& text) = 0;
36 }; 36 };
37 37
38 } // namespace metro_driver 38 } // namespace metro_driver
39 39
40 #endif // WIN8_METRO_DRIVER_IME_TEXT_SERVICE_DELEGATE_H_ 40 #endif // WIN8_METRO_DRIVER_IME_TEXT_SERVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « win8/metro_driver/ime/text_service.cc ('k') | win8/metro_driver/ime/text_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698