OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_ | 5 #ifndef ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_ |
6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_ | 6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_ |
7 | 7 |
8 #include <string> | |
9 | |
10 #include "athena/athena_export.h" | 8 #include "athena/athena_export.h" |
| 9 #include "base/strings/string16.h" |
11 | 10 |
12 typedef unsigned int SkColor; | 11 typedef unsigned int SkColor; |
13 | 12 |
14 namespace views { | 13 namespace views { |
15 class View; | 14 class View; |
16 } | 15 } |
17 | 16 |
18 namespace athena { | 17 namespace athena { |
19 | 18 |
20 class ATHENA_EXPORT ActivityViewModel { | 19 class ATHENA_EXPORT ActivityViewModel { |
21 public: | 20 public: |
22 virtual ~ActivityViewModel() {} | 21 virtual ~ActivityViewModel() {} |
23 | 22 |
24 // Returns a color most representative of this activity. | 23 // Returns a color most representative of this activity. |
25 virtual SkColor GetRepresentativeColor() = 0; | 24 virtual SkColor GetRepresentativeColor() = 0; |
26 | 25 |
27 // Returns a title for the activity. | 26 // Returns a title for the activity. |
28 virtual std::string GetTitle() = 0; | 27 virtual base::string16 GetTitle() = 0; |
29 | 28 |
30 // Returns the contents view. | 29 // Returns the contents view. |
31 virtual views::View* GetContentsView() = 0; | 30 virtual views::View* GetContentsView() = 0; |
32 }; | 31 }; |
33 | 32 |
34 } // namespace athena | 33 } // namespace athena |
35 | 34 |
36 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_ | 35 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_ |
OLD | NEW |