| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // to create a preview image of the activity. Note that even if this function | 47 // to create a preview image of the activity. Note that even if this function |
| 48 // gets called, |GetOverviewModeImage()| could still return an empty image. | 48 // gets called, |GetOverviewModeImage()| could still return an empty image. |
| 49 virtual void CreateOverviewModeImage() = 0; | 49 virtual void CreateOverviewModeImage() = 0; |
| 50 | 50 |
| 51 // Returns an image which can be used to represent the activity in e.g. the | 51 // Returns an image which can be used to represent the activity in e.g. the |
| 52 // overview mode. The returned image can have no size if either a view exists | 52 // overview mode. The returned image can have no size if either a view exists |
| 53 // or the activity has not yet been loaded. In that case | 53 // or the activity has not yet been loaded. In that case |
| 54 // GetRepresentativeColor() should be used to clear the preview area. | 54 // GetRepresentativeColor() should be used to clear the preview area. |
| 55 // Note: We intentionally do not use a layer / view for this. | 55 // Note: We intentionally do not use a layer / view for this. |
| 56 virtual gfx::ImageSkia GetOverviewModeImage() = 0; | 56 virtual gfx::ImageSkia GetOverviewModeImage() = 0; |
| 57 |
| 58 // Prepares the contents view for overview. |
| 59 virtual void PrepareContentsForOverview() = 0; |
| 60 |
| 61 // Undoes any changes done by PrepareContentsForOverview(). |
| 62 virtual void ResetContentsView() = 0; |
| 57 }; | 63 }; |
| 58 | 64 |
| 59 } // namespace athena | 65 } // namespace athena |
| 60 | 66 |
| 61 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_ | 67 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_ |
| OLD | NEW |