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

Unified Diff: ui/app_list/views/start_page_view.h

Issue 186483004: Add a skeleton Start Page to the experimental app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_change_experimental_animation
Patch Set: Created 6 years, 9 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: ui/app_list/views/start_page_view.h
diff --git a/ui/app_list/views/start_page_view.h b/ui/app_list/views/start_page_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..99f9c5cc6f08b16f385650beaf648656fe043e84
--- /dev/null
+++ b/ui/app_list/views/start_page_view.h
@@ -0,0 +1,49 @@
+// 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 UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_
+#define UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_
+
+#include "base/basictypes.h"
+#include "ui/views/controls/button/button.h"
+#include "ui/views/view.h"
+
+namespace content {
+class WebContents;
+}
+
+namespace views {
+class BoundsAnimator;
+}
+
+namespace app_list {
+
+class AppListMainView;
+
+// A view that contains buttons to switch the displayed view in the given
tapted 2014/03/10 02:41:54 This comment is not right.
calamity 2014/03/14 07:50:02 Done.
+// ContentsView.
+class StartPageView : public views::View,
tapted 2014/03/10 02:41:54 I'd go with SearchPageView (or something other tha
calamity 2014/03/14 07:50:02 I asked xiyuan@ and he said that the start page we
xiyuan 2014/03/14 17:00:54 StartPage UI is never finished (my fault) and thin
+ public views::ButtonListener {
+ public:
+ explicit StartPageView(AppListMainView* app_list_main_view,
+ content::WebContents* start_page_web_contents);
+ virtual ~StartPageView();
+
+ private:
+ // Overridden from views::View:
+ virtual void Layout() OVERRIDE;
+
+ // Overridden from views::ButtonListener:
+ virtual void ButtonPressed(views::Button* sender,
+ const ui::Event& event) OVERRIDE;
+
+ AppListMainView* app_list_main_view_; // Owned by views hierarchy.
+ views::View* instant_container_; // Owned by views hierarchy.
+
+ DISALLOW_COPY_AND_ASSIGN(StartPageView);
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_VIEWS_START_PAGE_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698