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

Side by Side Diff: ui/app_list/views/app_list_view.h

Issue 23072036: Adds an integration test for uninstalling app list search results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit indenting Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 21 matching lines...) Expand all
32 public: 32 public:
33 class Observer { 33 class Observer {
34 public: 34 public:
35 virtual void OnActivationChanged(views::Widget* widget, bool active) = 0; 35 virtual void OnActivationChanged(views::Widget* widget, bool active) = 0;
36 }; 36 };
37 37
38 // Takes ownership of |delegate|. 38 // Takes ownership of |delegate|.
39 explicit AppListView(AppListViewDelegate* delegate); 39 explicit AppListView(AppListViewDelegate* delegate);
40 virtual ~AppListView(); 40 virtual ~AppListView();
41 41
42 AppListModel* model() { return model_.get(); }
43
42 // Initializes the widget. 44 // Initializes the widget.
43 void InitAsBubble(gfx::NativeView parent, 45 void InitAsBubble(gfx::NativeView parent,
44 PaginationModel* pagination_model, 46 PaginationModel* pagination_model,
45 views::View* anchor, 47 views::View* anchor,
46 const gfx::Point& anchor_point, 48 const gfx::Point& anchor_point,
47 views::BubbleBorder::Arrow arrow, 49 views::BubbleBorder::Arrow arrow,
48 bool border_accepts_events); 50 bool border_accepts_events);
49 51
50 void SetBubbleArrow(views::BubbleBorder::Arrow arrow); 52 void SetBubbleArrow(views::BubbleBorder::Arrow arrow);
51 53
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 SigninView* signin_view_; 121 SigninView* signin_view_;
120 122
121 ObserverList<Observer> observers_; 123 ObserverList<Observer> observers_;
122 124
123 DISALLOW_COPY_AND_ASSIGN(AppListView); 125 DISALLOW_COPY_AND_ASSIGN(AppListView);
124 }; 126 };
125 127
126 } // namespace app_list 128 } // namespace app_list
127 129
128 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 130 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698