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

Side by Side Diff: athena/content/app_activity_unittest.cc

Issue 587953002: [Athena: Cleanup] consolidate ChromeAppActivity and ShellAppActivity (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 unified diff | Download patch
« no previous file with comments | « athena/content/app_activity.cc ('k') | athena/content/chrome/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "athena/activity/public/activity_factory.h" 5 #include "athena/activity/public/activity_factory.h"
6 #include "athena/activity/public/activity_manager.h" 6 #include "athena/activity/public/activity_manager.h"
7 #include "athena/content/app_activity.h" 7 #include "athena/content/app_activity.h"
8 #include "athena/content/app_activity_registry.h" 8 #include "athena/content/app_activity_registry.h"
9 #include "athena/content/public/app_registry.h" 9 #include "athena/content/public/app_registry.h"
10 #include "athena/extensions/public/extensions_delegate.h" 10 #include "athena/extensions/public/extensions_delegate.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual bool IsVisible() OVERRIDE { 62 virtual bool IsVisible() OVERRIDE {
63 return true; 63 return true;
64 } 64 }
65 virtual ActivityMediaState GetMediaState() OVERRIDE { 65 virtual ActivityMediaState GetMediaState() OVERRIDE {
66 return Activity::ACTIVITY_MEDIA_STATE_NONE; 66 return Activity::ACTIVITY_MEDIA_STATE_NONE;
67 } 67 }
68 virtual aura::Window* GetWindow() OVERRIDE { 68 virtual aura::Window* GetWindow() OVERRIDE {
69 return view_->GetWidget()->GetNativeWindow(); 69 return view_->GetWidget()->GetNativeWindow();
70 } 70 }
71 71
72 // AppActivity:
73 virtual views::WebView* GetWebView() OVERRIDE { return NULL; }
74
75 // ActivityViewModel: 72 // ActivityViewModel:
76 virtual void Init() OVERRIDE {} 73 virtual void Init() OVERRIDE {}
77 virtual SkColor GetRepresentativeColor() const OVERRIDE { return 0; } 74 virtual SkColor GetRepresentativeColor() const OVERRIDE { return 0; }
78 virtual base::string16 GetTitle() const OVERRIDE { return title_; } 75 virtual base::string16 GetTitle() const OVERRIDE { return title_; }
79 virtual bool UsesFrame() const OVERRIDE { return true; } 76 virtual bool UsesFrame() const OVERRIDE { return true; }
80 virtual views::View* GetContentsView() OVERRIDE { return view_; } 77 virtual views::View* GetContentsView() OVERRIDE { return view_; }
81 virtual views::Widget* CreateWidget() OVERRIDE { return NULL; } 78 virtual views::Widget* CreateWidget() OVERRIDE { return NULL; }
82 virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE { 79 virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE {
83 return gfx::ImageSkia(); 80 return gfx::ImageSkia();
84 } 81 }
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 // However - the restart in this test framework does not really restart and 419 // However - the restart in this test framework does not really restart and
423 // all objects should be still there.. 420 // all objects should be still there..
424 EXPECT_EQ(1, AppRegistry::Get()->NumberOfApplications()); 421 EXPECT_EQ(1, AppRegistry::Get()->NumberOfApplications());
425 EXPECT_TRUE(app_activity_registry->unloaded_activity_proxy()); 422 EXPECT_TRUE(app_activity_registry->unloaded_activity_proxy());
426 Activity::Delete(app_activity_registry->unloaded_activity_proxy()); 423 Activity::Delete(app_activity_registry->unloaded_activity_proxy());
427 EXPECT_EQ(0, AppRegistry::Get()->NumberOfApplications()); 424 EXPECT_EQ(0, AppRegistry::Get()->NumberOfApplications());
428 } 425 }
429 426
430 } // namespace test 427 } // namespace test
431 } // namespace athena 428 } // namespace athena
OLDNEW
« no previous file with comments | « athena/content/app_activity.cc ('k') | athena/content/chrome/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698