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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MAIN_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 AppListViewDelegate* delegate_; // Owned by parent view (AppListView). 117 AppListViewDelegate* delegate_; // Owned by parent view (AppListView).
118 AppListModel* model_; // Unowned; ownership is handled by |delegate_|. 118 AppListModel* model_; // Unowned; ownership is handled by |delegate_|.
119 119
120 // Created by AppListView. Owned by views hierarchy. 120 // Created by AppListView. Owned by views hierarchy.
121 SearchBoxView* search_box_view_; 121 SearchBoxView* search_box_view_;
122 ContentsView* contents_view_; // Owned by views hierarchy. 122 ContentsView* contents_view_; // Owned by views hierarchy.
123 123
124 // A timer that fires when maximum allowed time to wait for icon loading has 124 // A timer that fires when maximum allowed time to wait for icon loading has
125 // passed. 125 // passed.
126 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_; 126 base::OneShotTimer icon_loading_wait_timer_;
127 127
128 ScopedVector<IconLoader> pending_icon_loaders_; 128 ScopedVector<IconLoader> pending_icon_loaders_;
129 129
130 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; 130 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 132 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
133 }; 133 };
134 134
135 } // namespace app_list 135 } // namespace app_list
136 136
137 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 137 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_item_view.h ('k') | ui/app_list/views/app_list_main_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698