| Index: ash/app_list/app_list_view.h
|
| ===================================================================
|
| --- ash/app_list/app_list_view.h (revision 135932)
|
| +++ ash/app_list/app_list_view.h (working copy)
|
| @@ -1,78 +0,0 @@
|
| -// Copyright (c) 2012 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_VIEW_H_
|
| -#define ASH_APP_LIST_APP_LIST_VIEW_H_
|
| -#pragma once
|
| -
|
| -#include "base/memory/scoped_ptr.h"
|
| -#include "ui/views/bubble/bubble_delegate.h"
|
| -#include "ui/views/controls/button/button.h"
|
| -
|
| -namespace views {
|
| -class View;
|
| -}
|
| -
|
| -namespace ash {
|
| -
|
| -class AppListBubbleBorder;
|
| -class AppListModel;
|
| -class AppListModelView;
|
| -class AppListViewDelegate;
|
| -class PaginationModel;
|
| -
|
| -// AppListView is the top-level view and controller of app list UI. It creates
|
| -// and hosts a AppListModelView and passes AppListModel to it for display.
|
| -class AppListView : public views::BubbleDelegateView,
|
| - public views::ButtonListener {
|
| - public:
|
| - // Takes ownership of |delegate|.
|
| - explicit AppListView(AppListViewDelegate* delegate);
|
| - virtual ~AppListView();
|
| -
|
| - void AnimateShow(int duration_ms);
|
| - void AnimateHide(int duration_ms);
|
| -
|
| - void Close();
|
| - void UpdateBounds();
|
| -
|
| - private:
|
| - // Initializes the window.
|
| - void InitAsFullscreenWidget();
|
| - void InitAsBubble();
|
| -
|
| - // Updates model using query text in search box.
|
| - void UpdateModel();
|
| -
|
| - // Overridden from views::WidgetDelegateView:
|
| - virtual views::View* GetInitiallyFocusedView() OVERRIDE;
|
| -
|
| - // Overridden from views::View:
|
| - virtual void Layout() OVERRIDE;
|
| - virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE;
|
| - virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
|
| -
|
| - // Overridden from views::ButtonListener:
|
| - virtual void ButtonPressed(views::Button* sender,
|
| - const views::Event& event) OVERRIDE;
|
| -
|
| - // Overridden from views::BubbleDelegate:
|
| - virtual gfx::Rect GetBubbleBounds() OVERRIDE;
|
| -
|
| - scoped_ptr<AppListModel> model_;
|
| - scoped_ptr<AppListViewDelegate> delegate_;
|
| -
|
| - // PaginationModel for model view and page switcher.
|
| - scoped_ptr<PaginationModel> pagination_model_;
|
| -
|
| - bool bubble_style_;
|
| - AppListBubbleBorder* bubble_border_; // Owned by views hierarchy.
|
| - AppListModelView* model_view_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(AppListView);
|
| -};
|
| -
|
| -} // namespace ash
|
| -
|
| -#endif // ASH_APP_LIST_APP_LIST_VIEW_H_
|
|
|