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

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: style fix; changed the function name following zork's suggestion 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 | « 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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool, InputMethodStatusConnection*, const char*); 146 bool, InputMethodStatusConnection*, const char*);
147 DECL_FUNC_3(SetImePropertyActivated, 147 DECL_FUNC_3(SetImePropertyActivated,
148 void, InputMethodStatusConnection*, const char*, bool); 148 void, InputMethodStatusConnection*, const char*, bool);
149 DECL_FUNC_4(SetImeConfig, 149 DECL_FUNC_4(SetImeConfig,
150 bool, 150 bool,
151 InputMethodStatusConnection*, 151 InputMethodStatusConnection*,
152 const char*, 152 const char*,
153 const char*, 153 const char*,
154 const ImeConfigValue&); 154 const ImeConfigValue&);
155 DECL_FUNC_1(GetKeyboardOverlayId, std::string, const std::string&); 155 DECL_FUNC_1(GetKeyboardOverlayId, std::string, const std::string&);
156 DECL_FUNC_2(SendHandwritingStroke,
157 void,
158 InputMethodStatusConnection*,
159 const chromeos::HandwritingStroke&);
160 DECL_FUNC_2(CancelHandwriting, void, InputMethodStatusConnection*, int);
156 DECL_FUNC_2(MonitorInputMethodUiStatus, 161 DECL_FUNC_2(MonitorInputMethodUiStatus,
157 InputMethodUiStatusConnection*, 162 InputMethodUiStatusConnection*,
158 const InputMethodUiStatusMonitorFunctions&, 163 const InputMethodUiStatusMonitorFunctions&,
159 void*); 164 void*);
160 DECL_FUNC_1(DisconnectInputMethodUiStatus, 165 DECL_FUNC_1(DisconnectInputMethodUiStatus,
161 void, 166 void,
162 InputMethodUiStatusConnection*); 167 InputMethodUiStatusConnection*);
163 DECL_FUNC_4(NotifyCandidateClicked, void, 168 DECL_FUNC_4(NotifyCandidateClicked, void,
164 InputMethodUiStatusConnection*, int, int, int); 169 InputMethodUiStatusConnection*, int, int, int);
165 DECL_FUNC_1(NotifyCursorUp, void, 170 DECL_FUNC_1(NotifyCursorUp, void,
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 INIT_FUNC(DisconnectResume); 495 INIT_FUNC(DisconnectResume);
491 496
492 // Input methods 497 // Input methods
493 INIT_FUNC(MonitorInputMethodStatus); 498 INIT_FUNC(MonitorInputMethodStatus);
494 INIT_FUNC(StopInputMethodProcess); 499 INIT_FUNC(StopInputMethodProcess);
495 INIT_FUNC(GetSupportedInputMethodDescriptors); 500 INIT_FUNC(GetSupportedInputMethodDescriptors);
496 INIT_FUNC(ChangeInputMethod); 501 INIT_FUNC(ChangeInputMethod);
497 INIT_FUNC(SetImePropertyActivated); 502 INIT_FUNC(SetImePropertyActivated);
498 INIT_FUNC(SetImeConfig); 503 INIT_FUNC(SetImeConfig);
499 INIT_FUNC(GetKeyboardOverlayId); 504 INIT_FUNC(GetKeyboardOverlayId);
505 INIT_FUNC(SendHandwritingStroke);
506 INIT_FUNC(CancelHandwriting);
500 INIT_FUNC(MonitorInputMethodUiStatus); 507 INIT_FUNC(MonitorInputMethodUiStatus);
501 INIT_FUNC(DisconnectInputMethodUiStatus); 508 INIT_FUNC(DisconnectInputMethodUiStatus);
502 INIT_FUNC(NotifyCandidateClicked); 509 INIT_FUNC(NotifyCandidateClicked);
503 INIT_FUNC(NotifyCursorUp); 510 INIT_FUNC(NotifyCursorUp);
504 INIT_FUNC(NotifyCursorDown); 511 INIT_FUNC(NotifyCursorDown);
505 INIT_FUNC(NotifyPageUp); 512 INIT_FUNC(NotifyPageUp);
506 INIT_FUNC(NotifyPageDown); 513 INIT_FUNC(NotifyPageDown);
507 INIT_FUNC(MonitorInputMethodConnection); 514 INIT_FUNC(MonitorInputMethodConnection);
508 515
509 // Mount 516 // Mount
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 INIT_FUNC(NotifyNetworkProxyResolved); 711 INIT_FUNC(NotifyNetworkProxyResolved);
705 712
706 return error_string.empty(); 713 return error_string.empty();
707 } 714 }
708 715
709 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func) { 716 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func) {
710 addHistogram = func; 717 addHistogram = func;
711 } 718 }
712 719
713 } // namespace chromeos 720 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos_input_method.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698