OLD | NEW |
---|---|
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_PREDICTION_SERVICE_IMPL_H_ | 5 #ifndef SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_ |
6 #define SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_ | 6 #define SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_ |
7 | 7 |
8 #include "mojo/services/prediction/public/interfaces/prediction.mojom.h" | 8 #include "mojo/services/prediction/public/interfaces/prediction.mojom.h" |
9 | 9 |
10 class ProximityInfoService; | |
APW
2015/07/23 20:11:28
Its weird that this is outside of the prediction n
riajiang
2015/07/31 02:13:04
Deleted and still compiles :)
| |
11 | |
10 namespace prediction { | 12 namespace prediction { |
11 | 13 |
14 class TouchPositionCorrection; | |
15 | |
12 class PredictionServiceImpl : public PredictionService { | 16 class PredictionServiceImpl : public PredictionService { |
13 public: | 17 public: |
14 explicit PredictionServiceImpl( | 18 explicit PredictionServiceImpl( |
15 mojo::InterfaceRequest<PredictionService> request); | 19 mojo::InterfaceRequest<PredictionService> request); |
16 ~PredictionServiceImpl() override; | 20 ~PredictionServiceImpl() override; |
17 | 21 |
18 // PredictionService implementation | 22 // PredictionService implementation |
19 void SetSettings(SettingsPtr settings) override; | |
20 | |
21 void GetPredictionList(PredictionInfoPtr prediction_info, | 23 void GetPredictionList(PredictionInfoPtr prediction_info, |
22 const GetPredictionListCallback& callback) override; | 24 const GetPredictionListCallback& callback) override; |
23 | 25 |
24 private: | 26 private: |
25 Settings stored_settings_; | |
26 mojo::StrongBinding<PredictionService> strong_binding_; | 27 mojo::StrongBinding<PredictionService> strong_binding_; |
27 | 28 |
29 TouchPositionCorrection* touch_position_correction; | |
30 ProximityInfoService* proximity_settings; | |
31 DictionaryService* dictionary_service; | |
APW
2015/07/23 20:11:28
These don't need to be pointers - please make them
riajiang
2015/07/31 02:13:04
Done.
| |
32 | |
28 DISALLOW_COPY_AND_ASSIGN(PredictionServiceImpl); | 33 DISALLOW_COPY_AND_ASSIGN(PredictionServiceImpl); |
29 }; | 34 }; |
30 | 35 |
31 class PredictionServiceDelegate | 36 class PredictionServiceDelegate |
32 : public mojo::ApplicationDelegate, | 37 : public mojo::ApplicationDelegate, |
33 public mojo::InterfaceFactory<PredictionService> { | 38 public mojo::InterfaceFactory<PredictionService> { |
34 public: | 39 public: |
35 PredictionServiceDelegate(); | 40 PredictionServiceDelegate(); |
36 ~PredictionServiceDelegate() override; | 41 ~PredictionServiceDelegate() override; |
37 | 42 |
38 // mojo::ApplicationDelegate implementation | 43 // mojo::ApplicationDelegate implementation |
39 bool ConfigureIncomingConnection( | 44 bool ConfigureIncomingConnection( |
40 mojo::ApplicationConnection* connection) override; | 45 mojo::ApplicationConnection* connection) override; |
41 | 46 |
42 // mojo::InterfaceRequest<PredictionService> implementation | 47 // mojo::InterfaceRequest<PredictionService> implementation |
43 void Create(mojo::ApplicationConnection* connection, | 48 void Create(mojo::ApplicationConnection* connection, |
44 mojo::InterfaceRequest<PredictionService> request) override; | 49 mojo::InterfaceRequest<PredictionService> request) override; |
45 }; | 50 }; |
46 | 51 |
47 } // namespace prediction | 52 } // namespace prediction |
48 | 53 |
49 #endif // SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_ | 54 #endif // SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_ |
OLD | NEW |