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

Unified Diff: athena/screen/background_controller.h

Issue 287163009: [Athena] minimum impl to add screen/background and test windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/screen/DEPS ('k') | athena/screen/background_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/screen/background_controller.h
diff --git a/athena/screen/background_controller.h b/athena/screen/background_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..cdc0d358fb2dbe372207599d1d3c1545fca2d41f
--- /dev/null
+++ b/athena/screen/background_controller.h
@@ -0,0 +1,36 @@
+// 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.
+
+#ifndef ATHENA_SCREEN_BACKGROUND_CONTROLLER_H_
+#define ATHENA_SCREEN_BACKGROUND_CONTROLLER_H_
+
+#include "base/macros.h"
+
+namespace aura {
+class Window;
+}
+
+namespace gfx {
+class ImageSkia;
+}
+
+namespace athena {
+class BackgroundView;
+
+// Controls background image switching.
+class BackgroundController {
+ public:
+ explicit BackgroundController(aura::Window* container);
+ ~BackgroundController();
+
+ void SetImage(const gfx::ImageSkia& image);
+
+ private:
+ BackgroundView* background_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(BackgroundController);
+};
+}
+
+#endif // ATHENA_SCREEN_BACKGROUND_CONTROLLER_H_
« no previous file with comments | « athena/screen/DEPS ('k') | athena/screen/background_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698