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

Unified Diff: athena/test/sample_activity_factory.cc

Issue 316323002: Introduces ActivityFactory for SampleActivity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« athena/main/athena_shell.cc ('K') | « athena/test/sample_activity_factory.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_factory.cc
diff --git a/athena/test/sample_activity_factory.cc b/athena/test/sample_activity_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0084ce6ffb4793f0df29ffe7c80a22a2bab5a02a
--- /dev/null
+++ b/athena/test/sample_activity_factory.cc
@@ -0,0 +1,33 @@
+// 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_factory.h"
+
+#include <string>
+
+#include "athena/test/sample_activity.h"
+#include "third_party/skia/include/core/SkColor.h"
+
+namespace athena {
+namespace test {
+
+namespace {
+const SkColor kDefaultColor = SK_ColorRED;
+const SkColor kDefaultContentColor = SK_ColorGREEN;
+const char kDefaultTitle[] = "Activity 1";
+}
+
+SampleActivityFactory::SampleActivityFactory() {}
+
+SampleActivityFactory::~SampleActivityFactory() {}
+
+Activity* SampleActivityFactory::CreateWebActivity(
+ content::BrowserContext* browser_context,
+ const GURL& url) {
+ return new SampleActivity(
+ kDefaultColor, kDefaultContentColor, std::string(kDefaultTitle));
+}
+
+} // namespace test
+} // namespace athena
« athena/main/athena_shell.cc ('K') | « athena/test/sample_activity_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698