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

Unified Diff: athena/test/sample_activity.cc

Issue 617043002: Moving athena/test to athena/test/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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') | athena/test/sample_activity_factory.h » ('j') | 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
deleted file mode 100644
index 754a2eb47530c1a6790df9f2008b23792caf3d8b..0000000000000000000000000000000000000000
--- a/athena/test/sample_activity.cc
+++ /dev/null
@@ -1,100 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "athena/test/sample_activity.h"
-
-#include "ui/gfx/image/image_skia.h"
-#include "ui/views/background.h"
-#include "ui/views/view.h"
-#include "ui/views/widget/widget.h"
-
-namespace athena {
-namespace test {
-
-SampleActivity::SampleActivity(SkColor color,
- SkColor contents_color,
- const base::string16& title)
- : color_(color),
- contents_color_(contents_color),
- title_(title),
- contents_view_(NULL),
- current_state_(ACTIVITY_UNLOADED) {
-}
-
-SampleActivity::~SampleActivity() {
-}
-
-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;
-}
-
-aura::Window* SampleActivity::GetWindow() {
- return !contents_view_ ? NULL
- : contents_view_->GetWidget()->GetNativeWindow();
-}
-
-content::WebContents* SampleActivity::GetWebContents() {
- return NULL;
-}
-
-void SampleActivity::Init() {
-}
-
-SkColor SampleActivity::GetRepresentativeColor() const {
- return color_;
-}
-
-base::string16 SampleActivity::GetTitle() const {
- return title_;
-}
-
-gfx::ImageSkia SampleActivity::GetIcon() const {
- return gfx::ImageSkia();
-}
-
-bool SampleActivity::UsesFrame() const {
- return true;
-}
-
-views::View* SampleActivity::GetContentsView() {
- if (!contents_view_) {
- contents_view_ = new views::View;
- contents_view_->set_background(
- views::Background::CreateSolidBackground(contents_color_));
- }
- return contents_view_;
-}
-
-views::Widget* SampleActivity::CreateWidget() {
- return NULL;
-}
-
-gfx::ImageSkia SampleActivity::GetOverviewModeImage() {
- return gfx::ImageSkia();
-}
-
-void SampleActivity::PrepareContentsForOverview() {
-}
-
-void SampleActivity::ResetContentsView() {
-}
-
-} // namespace test
-} // namespace athena
« no previous file with comments | « athena/test/sample_activity.h ('k') | athena/test/sample_activity_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698