Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3015)

Unified Diff: athena/test/sample_activity.cc

Issue 358003002: Additions to Activities to allow resource management (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « athena/test/sample_activity.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/test/sample_activity.cc
diff --git a/athena/test/sample_activity.cc b/athena/test/sample_activity.cc
index d4f8ad95cbb0ef05668d836a0b77e76ebdd332f5..6c4c06486c909c1e9be71a5f80edd106c4a38b51 100644
--- a/athena/test/sample_activity.cc
+++ b/athena/test/sample_activity.cc
@@ -16,7 +16,8 @@ SampleActivity::SampleActivity(SkColor color,
: color_(color),
contents_color_(contents_color),
title_(title),
- contents_view_(NULL) {
+ contents_view_(NULL),
+ current_state_(ACTIVITY_UNLOADED) {
}
SampleActivity::~SampleActivity() {
@@ -26,6 +27,22 @@ athena::ActivityViewModel* SampleActivity::GetActivityViewModel() {
return this;
}
+void SampleActivity::SetCurrentState(Activity::ActivityState state) {
+ current_state_ = state;
+}
+
+Activity::ActivityState SampleActivity::GetCurrentState() {
+ return current_state_;
+}
+
+bool SampleActivity::IsVisible() {
+ return contents_view_ && contents_view_->IsDrawn();
+}
+
+Activity::ActivityMediaState SampleActivity::GetMediaState() {
+ return Activity::ACTIVITY_MEDIA_STATE_NONE;
+}
+
void SampleActivity::Init() {
}
@@ -50,5 +67,12 @@ views::View* SampleActivity::GetContentsView() {
return contents_view_;
}
+void SampleActivity::CreateOverviewModeImage() {
+}
+
+gfx::ImageSkia SampleActivity::GetOverviewModeImage() {
+ return gfx::ImageSkia();
+}
+
} // namespace test
} // namespace athena
« no previous file with comments | « athena/test/sample_activity.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698