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

Unified Diff: ash/app_list/app_list_model_view.h

Issue 9479031: aura: Implement new app list mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 8 years, 10 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 | « ash/app_list/app_list_model.cc ('k') | ash/app_list/app_list_model_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/app_list/app_list_model_view.h
diff --git a/ash/app_list/app_list_model_view.h b/ash/app_list/app_list_model_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..be034d2a55119c1208f2014c57a0752bdf04b736
--- /dev/null
+++ b/ash/app_list/app_list_model_view.h
@@ -0,0 +1,56 @@
+// Copyright (c) 2011 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 ASH_APP_LIST_APP_LIST_MODEL_VIEW_H_
+#define ASH_APP_LIST_APP_LIST_MODEL_VIEW_H_
+#pragma once
+
+#include <string>
+#include <vector>
+
+#include "ash/ash_export.h"
+#include "ui/base/models/list_model_observer.h"
+#include "ui/views/controls/button/button.h"
+#include "ui/views/view.h"
+
+namespace views {
+class BoundsAnimator;
+}
+
+namespace ash {
+
+class AppListModel;
+
+// AppListModelView displays the UI for an AppListModel.
+class ASH_EXPORT AppListModelView : public views::View,
+ public ui::ListModelObserver {
+ public:
+ AppListModelView(AppListModel* model,
+ views::ButtonListener* listener);
+ virtual ~AppListModelView();
+
+ private:
+ // Updates from model.
+ void Update();
+
+ // Sets focused tile by index.
+ void SetFocusedTileByIndex(int index);
+
+ // Overridden from views::View:
+ virtual void Layout() OVERRIDE;
+
+ // Overridden from ListModelObserver:
+ virtual void ListItemsAdded(int start, int count) OVERRIDE;
+ virtual void ListItemsRemoved(int start, int count) OVERRIDE;
+ virtual void ListItemsChanged(int start, int count) OVERRIDE;
+
+ AppListModel* model_; // Owned by parent AppListView.
+ views::ButtonListener* listener_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListModelView);
+};
+
+} // namespace ash
+
+#endif // ASH_APP_LIST_APP_LIST_MODEL_VIEW_H_
« no previous file with comments | « ash/app_list/app_list_model.cc ('k') | ash/app_list/app_list_model_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698