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

Side by Side Diff: load.cc

Issue 6880171: Add two libcros interfaces for handwriting: SendHandwritingStrokes and CancelHandwriting. (Closed) Base URL: ssh://gitrw.chromium.org:9222/cros.git@master
Patch Set: review Created 9 years, 8 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
« chromeos_input_method.cc ('K') | « chromeos_input_method.cc ('k') | no next file » | 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 OS Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium OS 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 #include <cstdio> 5 #include <cstdio>
6 #include <dlfcn.h> 6 #include <dlfcn.h>
7 #include <string.h> 7 #include <string.h>
8 #include <utility>
Zachary Kuznia 2011/04/27 09:45:46 I don't think you need this here.
Yusuke Sato 2011/04/27 10:10:33 Done.
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "chromeos_brightness.h" // NOLINT 12 #include "chromeos_brightness.h" // NOLINT
12 #include "chromeos_cros_api.h" // NOLINT 13 #include "chromeos_cros_api.h" // NOLINT
13 #include "chromeos_cryptohome.h" // NOLINT 14 #include "chromeos_cryptohome.h" // NOLINT
14 #include "chromeos_imageburn.h" //NOLINT 15 #include "chromeos_imageburn.h" //NOLINT
15 #include "chromeos_input_method.h" // NOLINT 16 #include "chromeos_input_method.h" // NOLINT
16 #include "chromeos_input_method_ui.h" // NOLINT 17 #include "chromeos_input_method_ui.h" // NOLINT
17 #include "chromeos_libcros_service.h" // NOLINT 18 #include "chromeos_libcros_service.h" // NOLINT
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 bool, InputMethodStatusConnection*, const char*); 148 bool, InputMethodStatusConnection*, const char*);
148 DECL_FUNC_3(SetImePropertyActivated, 149 DECL_FUNC_3(SetImePropertyActivated,
149 void, InputMethodStatusConnection*, const char*, bool); 150 void, InputMethodStatusConnection*, const char*, bool);
150 DECL_FUNC_4(SetImeConfig, 151 DECL_FUNC_4(SetImeConfig,
151 bool, 152 bool,
152 InputMethodStatusConnection*, 153 InputMethodStatusConnection*,
153 const char*, 154 const char*,
154 const char*, 155 const char*,
155 const ImeConfigValue&); 156 const ImeConfigValue&);
156 DECL_FUNC_1(GetKeyboardOverlayId, std::string, const std::string&); 157 DECL_FUNC_1(GetKeyboardOverlayId, std::string, const std::string&);
158 DECL_FUNC_2(SendHandwritingStrokes,
159 void,
160 InputMethodStatusConnection*,
161 const chromeos::HandwritingStrokes&);
162 DECL_FUNC_2(CancelHandwriting, void, InputMethodStatusConnection*, int);
157 DECL_FUNC_2(MonitorInputMethodUiStatus, 163 DECL_FUNC_2(MonitorInputMethodUiStatus,
158 InputMethodUiStatusConnection*, 164 InputMethodUiStatusConnection*,
159 const InputMethodUiStatusMonitorFunctions&, 165 const InputMethodUiStatusMonitorFunctions&,
160 void*); 166 void*);
161 DECL_FUNC_1(DisconnectInputMethodUiStatus, 167 DECL_FUNC_1(DisconnectInputMethodUiStatus,
162 void, 168 void,
163 InputMethodUiStatusConnection*); 169 InputMethodUiStatusConnection*);
164 DECL_FUNC_4(NotifyCandidateClicked, void, 170 DECL_FUNC_4(NotifyCandidateClicked, void,
165 InputMethodUiStatusConnection*, int, int, int); 171 InputMethodUiStatusConnection*, int, int, int);
166 DECL_FUNC_1(NotifyCursorUp, void, 172 DECL_FUNC_1(NotifyCursorUp, void,
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 INIT_FUNC(DisconnectResume); 503 INIT_FUNC(DisconnectResume);
498 504
499 // Input methods 505 // Input methods
500 INIT_FUNC(MonitorInputMethodStatus); 506 INIT_FUNC(MonitorInputMethodStatus);
501 INIT_FUNC(StopInputMethodProcess); 507 INIT_FUNC(StopInputMethodProcess);
502 INIT_FUNC(GetSupportedInputMethodDescriptors); 508 INIT_FUNC(GetSupportedInputMethodDescriptors);
503 INIT_FUNC(ChangeInputMethod); 509 INIT_FUNC(ChangeInputMethod);
504 INIT_FUNC(SetImePropertyActivated); 510 INIT_FUNC(SetImePropertyActivated);
505 INIT_FUNC(SetImeConfig); 511 INIT_FUNC(SetImeConfig);
506 INIT_FUNC(GetKeyboardOverlayId); 512 INIT_FUNC(GetKeyboardOverlayId);
513 INIT_FUNC(SendHandwritingStrokes);
514 INIT_FUNC(CancelHandwriting);
507 INIT_FUNC(MonitorInputMethodUiStatus); 515 INIT_FUNC(MonitorInputMethodUiStatus);
508 INIT_FUNC(DisconnectInputMethodUiStatus); 516 INIT_FUNC(DisconnectInputMethodUiStatus);
509 INIT_FUNC(NotifyCandidateClicked); 517 INIT_FUNC(NotifyCandidateClicked);
510 INIT_FUNC(NotifyCursorUp); 518 INIT_FUNC(NotifyCursorUp);
511 INIT_FUNC(NotifyCursorDown); 519 INIT_FUNC(NotifyCursorDown);
512 INIT_FUNC(NotifyPageUp); 520 INIT_FUNC(NotifyPageUp);
513 INIT_FUNC(NotifyPageDown); 521 INIT_FUNC(NotifyPageDown);
514 INIT_FUNC(MonitorInputMethodConnection); 522 INIT_FUNC(MonitorInputMethodConnection);
515 523
516 // Mount 524 // Mount
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 INIT_FUNC(NotifyNetworkProxyResolved); 725 INIT_FUNC(NotifyNetworkProxyResolved);
718 726
719 return error_string.empty(); 727 return error_string.empty();
720 } 728 }
721 729
722 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func) { 730 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func) {
723 addHistogram = func; 731 addHistogram = func;
724 } 732 }
725 733
726 } // namespace chromeos 734 } // namespace chromeos
OLDNEW
« chromeos_input_method.cc ('K') | « chromeos_input_method.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698