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

Side by Side Diff: services/prediction/dictionary_service.h

Issue 2088563002: Enable Wextra and Wno-unused-parameters in default cflags (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | services/prediction/dictionary_service.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SERVICES_PREDICTION_DICTIONARY_SERVICE_H_ 5 #ifndef SERVICES_PREDICTION_DICTIONARY_SERVICE_H_
6 #define SERVICES_PREDICTION_DICTIONARY_SERVICE_H_ 6 #define SERVICES_PREDICTION_DICTIONARY_SERVICE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "mojo/services/prediction/interfaces/prediction.mojom.h" 10 #include "mojo/services/prediction/interfaces/prediction.mojom.h"
(...skipping 13 matching lines...) Expand all
24 DictionaryService(); 24 DictionaryService();
25 ~DictionaryService(); 25 ~DictionaryService();
26 26
27 mojo::Array<mojo::String> GetDictionarySuggestion( 27 mojo::Array<mojo::String> GetDictionarySuggestion(
28 PredictionInfoPtr prediction_info, 28 PredictionInfoPtr prediction_info,
29 latinime::ProximityInfo* proximity_info); 29 latinime::ProximityInfo* proximity_info);
30 30
31 private: 31 private:
32 void CreatDictFromEmbeddedDataIfNotExist(const std::string path); 32 void CreatDictFromEmbeddedDataIfNotExist(const std::string path);
33 33
34 latinime::Dictionary* const OpenDictionary(const std::string path, 34 latinime::Dictionary* OpenDictionary(const std::string path,
35 const int start_offset, 35 const int start_offset,
36 const int size, 36 const int size,
37 const bool is_updatable); 37 const bool is_updatable);
38 38
39 latinime::PrevWordsInfo ProcessPrevWord( 39 latinime::PrevWordsInfo ProcessPrevWord(
40 mojo::Array<PrevWordInfoPtr>& prev_words); 40 mojo::Array<PrevWordInfoPtr>& prev_words);
41 41
42 int max_suggestion_size_; 42 int max_suggestion_size_;
43 scoped_ptr<latinime::Dictionary> default_dictionary_; 43 scoped_ptr<latinime::Dictionary> default_dictionary_;
44 scoped_ptr<latinime::DicTraverseSession> default_session_; 44 scoped_ptr<latinime::DicTraverseSession> default_session_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(DictionaryService); 46 DISALLOW_COPY_AND_ASSIGN(DictionaryService);
47 }; 47 };
48 48
49 } // namespace prediction 49 } // namespace prediction
50 50
51 #endif // SERVICES_PREDICTION_DICTIONARY_SERVICE_H_ 51 #endif // SERVICES_PREDICTION_DICTIONARY_SERVICE_H_
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | services/prediction/dictionary_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698