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

Unified Diff: athena/home/minimized_home.h

Issue 394043002: athena: Add a minimized state for the home-card. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self-nits 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
Index: athena/home/minimized_home.h
diff --git a/athena/home/minimized_home.h b/athena/home/minimized_home.h
new file mode 100644
index 0000000000000000000000000000000000000000..755a3c8ab59f502e4de75c346f0209064d18a61b
--- /dev/null
+++ b/athena/home/minimized_home.h
@@ -0,0 +1,32 @@
+// 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_HOME_MINIMIZED_HOME_H_
+#define ATHENA_HOME_MINIMIZED_HOME_H_
+
+namespace aura {
+class Window;
+}
+
+namespace views {
+class Widget;
+}
+
+namespace athena {
+
+class MinimizedHomeDragDelegate {
+ public:
+ virtual ~MinimizedHomeDragDelegate() {}
+
+ virtual void OnDragUpCompleted() = 0;
+};
+
+// Note that |delegate| is guaranteed to be alive as long as the returned widget
+// is alive.
+views::Widget* CreateMinimizedHome(aura::Window* container,
+ MinimizedHomeDragDelegate* delegate);
+
+} // namespace athena
+
+#endif // ATHENA_HOME_MINIMIZED_HOME_H_

Powered by Google App Engine
This is Rietveld 408576698