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