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

Side by Side Diff: chrome/browser/chromeos/cros/input_method_library.h

Issue 6905053: Add 2 Extension APIs for handwriting: experimental.input.sendHandritingStroke and cancelHandWriting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 9 years, 7 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 | « no previous file | chrome/browser/chromeos/cros/input_method_library.cc » ('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 CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Controls whether the IME process is stopped when all non-default preload 120 // Controls whether the IME process is stopped when all non-default preload
121 // engines are removed. 121 // engines are removed.
122 virtual void SetEnableAutoImeShutdown(bool enable) = 0; 122 virtual void SetEnableAutoImeShutdown(bool enable) = 0;
123 123
124 // Sends a handwriting stroke to libcros. See chromeos::SendHandwritingStroke 124 // Sends a handwriting stroke to libcros. See chromeos::SendHandwritingStroke
125 // for details. 125 // for details.
126 virtual void SendHandwritingStroke(const HandwritingStroke& stroke) = 0; 126 virtual void SendHandwritingStroke(const HandwritingStroke& stroke) = 0;
127 127
128 // Clears last N handwriting strokes in libcros. See 128 // Clears last N handwriting strokes in libcros. See
129 // chromeos::CancelHandwriting for details. 129 // chromeos::CancelHandwriting for details.
130 virtual void CancelHandwriting(int n_strokes) = 0; 130 virtual void CancelHandwritingStrokes(int stroke_count) = 0;
131 131
132 virtual InputMethodDescriptor previous_input_method() const = 0; 132 virtual InputMethodDescriptor previous_input_method() const = 0;
133 virtual InputMethodDescriptor current_input_method() const = 0; 133 virtual InputMethodDescriptor current_input_method() const = 0;
134 134
135 virtual const ImePropertyList& current_ime_properties() const = 0; 135 virtual const ImePropertyList& current_ime_properties() const = 0;
136 136
137 // Factory function, creates a new instance and returns ownership. 137 // Factory function, creates a new instance and returns ownership.
138 // For normal usage, access the singleton via CrosLibrary::Get(). 138 // For normal usage, access the singleton via CrosLibrary::Get().
139 static InputMethodLibrary* GetImpl(bool stub); 139 static InputMethodLibrary* GetImpl(bool stub);
140 }; 140 };
141 141
142 } // namespace chromeos 142 } // namespace chromeos
143 143
144 #endif // CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_ 144 #endif // CHROME_BROWSER_CHROMEOS_CROS_INPUT_METHOD_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/input_method_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698