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 "athena/athena_export.h" | 8 #include "athena/athena_export.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 // At this time the Activity can also be moved to a different place in the | 31 // At this time the Activity can also be moved to a different place in the |
32 // Activity history. | 32 // Activity history. |
33 virtual void Init() = 0; | 33 virtual void Init() = 0; |
34 | 34 |
35 // Returns a color most representative of this activity. | 35 // Returns a color most representative of this activity. |
36 virtual SkColor GetRepresentativeColor() const = 0; | 36 virtual SkColor GetRepresentativeColor() const = 0; |
37 | 37 |
38 // Returns a title for the activity. | 38 // Returns a title for the activity. |
39 virtual base::string16 GetTitle() const = 0; | 39 virtual base::string16 GetTitle() const = 0; |
40 | 40 |
| 41 // Returns an icon for the activity. |
| 42 virtual gfx::ImageSkia GetIcon() const = 0; |
| 43 |
41 // True if the activity wants to use Widget's frame, or false if the activity | 44 // True if the activity wants to use Widget's frame, or false if the activity |
42 // draws its own frame. | 45 // draws its own frame. |
43 virtual bool UsesFrame() const = 0; | 46 virtual bool UsesFrame() const = 0; |
44 | 47 |
45 // Returns the contents view which might be NULL if the activity is not | 48 // Returns the contents view which might be NULL if the activity is not |
46 // loaded. Note that the caller should not hold on to the view since it can | 49 // loaded. Note that the caller should not hold on to the view since it can |
47 // be deleted by the resource manager. | 50 // be deleted by the resource manager. |
48 virtual views::View* GetContentsView() = 0; | 51 virtual views::View* GetContentsView() = 0; |
49 | 52 |
50 // Creates a custom widget for the activity. Returns NULL to use default | 53 // Creates a custom widget for the activity. Returns NULL to use default |
(...skipping 15 matching lines...) Expand all Loading... |
66 // Prepares the contents view for overview. | 69 // Prepares the contents view for overview. |
67 virtual void PrepareContentsForOverview() = 0; | 70 virtual void PrepareContentsForOverview() = 0; |
68 | 71 |
69 // Undoes any changes done by PrepareContentsForOverview(). | 72 // Undoes any changes done by PrepareContentsForOverview(). |
70 virtual void ResetContentsView() = 0; | 73 virtual void ResetContentsView() = 0; |
71 }; | 74 }; |
72 | 75 |
73 } // namespace athena | 76 } // namespace athena |
74 | 77 |
75 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_ | 78 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_ |
OLD | NEW |