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

Unified Diff: athena/home/bottom_home_view.h

Issue 397343003: Introduce centered view and bottom view for home card. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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/bottom_home_view.h
diff --git a/athena/home/bottom_home_view.h b/athena/home/bottom_home_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..b88b04aab1ea20723bb318b026cca5f7e39a80bb
--- /dev/null
+++ b/athena/home/bottom_home_view.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_HOME_BOTTOM_HOME_VIEW_H_
+#define ATHENA_HOME_BOTTOM_HOME_VIEW_H_
+
+#include "ui/app_list/views/search_box_view_delegate.h"
+#include "ui/views/view.h"
+
+namespace app_list {
+class AppListViewDelegate;
+}
+
+namespace athena {
+
+// The view of 'VISIBLE_BOTTOM' state of home card, which occupies
+// smaller area and provides limited functionalities.
+class BottomHomeView : public views::View,
+ public app_list::SearchBoxViewDelegate {
+ public:
+ explicit BottomHomeView(app_list::AppListViewDelegate* delegate);
+ virtual ~BottomHomeView();
+
+ private:
+ // Overridden from app_list::SearchBoxViewDelegate:
+ virtual void QueryChanged(app_list::SearchBoxView* sender) OVERRIDE;
+
+ app_list::AppListViewDelegate* view_delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(BottomHomeView);
+};
+
+} // namespace athena
+
+#endif // ATHENA_HOME_BOTTOM_HOME_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698