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

Side by Side Diff: third_party/liblouis/nacl_wrapper/liblouis_instance.h

Issue 589133002: Make undefined Unicode characters show up in a nicer way in braille. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moretables
Patch Set: Fix typo. Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 Google Inc. 1 // Copyright 2013 Google Inc.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not 3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of 4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at 5 // the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Posts an error response to JavaScript, with the message ID of the call 54 // Posts an error response to JavaScript, with the message ID of the call
55 // which caused it. 55 // which caused it.
56 void PostError(const std::string& error, const std::string& in_reply_to); 56 void PostError(const std::string& error, const std::string& in_reply_to);
57 57
58 // Parses and executes a table check command. 58 // Parses and executes a table check command.
59 void HandleCheckTable(const Json::Value& message, 59 void HandleCheckTable(const Json::Value& message,
60 const std::string& message_id); 60 const std::string& message_id);
61 61
62 // Called to check a table on a background thread. 62 // Called to check a table on a background thread.
63 void CheckTableInBackground(int32_t result, const std::string& table_name, 63 void CheckTableInBackground(int32_t result, const std::string& table_names,
64 const std::string& message_id); 64 const std::string& message_id);
65 65
66 // Parses and executes a translation command. 66 // Parses and executes a translation command.
67 void HandleTranslate(const Json::Value& message, 67 void HandleTranslate(const Json::Value& message,
68 const std::string& message_id); 68 const std::string& message_id);
69 69
70 // Called to translate text on a background thread. 70 // Called to translate text on a background thread.
71 void TranslateInBackground(int32_t result, const TranslationParams& params, 71 void TranslateInBackground(int32_t result, const TranslationParams& params,
72 const std::string& message_id); 72 const std::string& message_id);
73 73
74 // Parses and executes a back translation command. 74 // Parses and executes a back translation command.
75 void HandleBackTranslate(const Json::Value& message, 75 void HandleBackTranslate(const Json::Value& message,
76 const std::string& message_id); 76 const std::string& message_id);
77 77
78 // Called to back-translate text on a background thread. 78 // Called to back-translate text on a background thread.
79 void BackTranslateInBackground(int32_t result, 79 void BackTranslateInBackground(int32_t result,
80 const std::string& table_name, const std::vector<unsigned char>& cells, 80 const std::string& table_names, const std::vector<unsigned char>& cells,
81 const std::string& message_id); 81 const std::string& message_id);
82 82
83 LibLouisWrapper liblouis_; 83 LibLouisWrapper liblouis_;
84 pp::SimpleThread liblouis_thread_; 84 pp::SimpleThread liblouis_thread_;
85 pp::CompletionCallbackFactory<LibLouisInstance> cc_factory_; 85 pp::CompletionCallbackFactory<LibLouisInstance> cc_factory_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(LibLouisInstance); 87 DISALLOW_COPY_AND_ASSIGN(LibLouisInstance);
88 }; 88 };
89 89
90 } // namespace liblouis_nacl 90 } // namespace liblouis_nacl
91 91
92 #endif // LIBLOUIS_NACL_LIBLOUIS_INSTANCE_H_ 92 #endif // LIBLOUIS_NACL_LIBLOUIS_INSTANCE_H_
OLDNEW
« no previous file with comments | « third_party/liblouis/liblouis_nacl.gyp ('k') | third_party/liblouis/nacl_wrapper/liblouis_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698