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

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

Issue 281383012: Add app_list_demo, a standalone executable for testing the app list UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment, resolve namespace Created 6 years, 6 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
« no previous file with comments | « ui/app_list/views/app_list_demo.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.h" 8 #include "base/callback.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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Set a callback to be called the next time any app list paints. 109 // Set a callback to be called the next time any app list paints.
110 void SetNextPaintCallback(const base::Closure& callback); 110 void SetNextPaintCallback(const base::Closure& callback);
111 111
112 #if defined(OS_WIN) 112 #if defined(OS_WIN)
113 HWND GetHWND() const; 113 HWND GetHWND() const;
114 #endif 114 #endif
115 115
116 AppListMainView* app_list_main_view() { return app_list_main_view_; } 116 AppListMainView* app_list_main_view() { return app_list_main_view_; }
117 117
118 private: 118 private:
119 friend class test::AppListViewTestApi; 119 friend class ::test::AppListViewTestApi;
120 120
121 void InitAsBubbleInternal(gfx::NativeView parent, 121 void InitAsBubbleInternal(gfx::NativeView parent,
122 PaginationModel* pagination_model, 122 PaginationModel* pagination_model,
123 views::BubbleBorder::Arrow arrow, 123 views::BubbleBorder::Arrow arrow,
124 bool border_accepts_events, 124 bool border_accepts_events,
125 const gfx::Vector2d& anchor_offset); 125 const gfx::Vector2d& anchor_offset);
126 126
127 // Overridden from views::BubbleDelegateView: 127 // Overridden from views::BubbleDelegateView:
128 virtual void OnBeforeBubbleWidgetInit( 128 virtual void OnBeforeBubbleWidgetInit(
129 views::Widget::InitParams* params, 129 views::Widget::InitParams* params,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 // For UMA and testing. If non-null, triggered when the app list is painted. 169 // For UMA and testing. If non-null, triggered when the app list is painted.
170 base::Closure next_paint_callback_; 170 base::Closure next_paint_callback_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(AppListView); 172 DISALLOW_COPY_AND_ASSIGN(AppListView);
173 }; 173 };
174 174
175 } // namespace app_list 175 } // namespace app_list
176 176
177 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 177 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_demo.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698