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