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

Unified Diff: ash/app_list/app_list_item_group_view.h

Issue 9559005: aura: Implement app list M19 mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use a better way to get ceiling 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_item_group_model.cc ('k') | ash/app_list/app_list_item_group_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_item_group_view.h
diff --git a/ash/app_list/app_list_item_group_view.h b/ash/app_list/app_list_item_group_view.h
deleted file mode 100644
index 834fb5966a4768b6713f5863b072c0dd15369028..0000000000000000000000000000000000000000
--- a/ash/app_list/app_list_item_group_view.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// 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_ITEM_GROUP_VIEW_H_
-#define ASH_APP_LIST_APP_LIST_ITEM_GROUP_VIEW_H_
-#pragma once
-
-#include "ash/ash_export.h"
-#include "ui/base/models/list_model_observer.h"
-#include "ui/views/view.h"
-
-namespace ash {
-
-class AppListItemGroupModel;
-class AppListItemViewListener;
-
-// AppListItemGroupView displays its children tiles in a grid.
-class ASH_EXPORT AppListItemGroupView
- : public views::View,
- public ui::ListModelObserver {
- public:
- AppListItemGroupView(AppListItemGroupModel* model,
- AppListItemViewListener* listener);
- virtual ~AppListItemGroupView();
-
- // Sets tiles per row.
- void SetTilesPerRow(int tiles_per_row);
-
- // Gets currently focused tile.
- views::View* GetFocusedTile();
-
- // Updates tiles page when a tile gets focus.
- void UpdateFocusedTile(views::View* tile);
-
- private:
- // Updates from model.
- void Update();
-
- // Sets focused tile by index.
- void SetFocusedTileByIndex(int index);
-
- // Overridden from views::View:
- virtual bool OnKeyPressed(const views::KeyEvent& event) 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;
-
- AppListItemGroupModel* model_;
- AppListItemViewListener* listener_;
-
- // Tiles per row.
- int tiles_per_row_;
-
- // Index of focused tile view.
- int focused_index_;
-
- DISALLOW_COPY_AND_ASSIGN(AppListItemGroupView);
-};
-
-} // namespace ash
-
-#endif // ASH_APP_LIST_APP_LIST_ITEM_GROUP_VIEW_H_
« no previous file with comments | « ash/app_list/app_list_item_group_model.cc ('k') | ash/app_list/app_list_item_group_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698