OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/ui/app_list/app_list_shower_views.h" | 5 #include "chrome/browser/ui/app_list/app_list_shower_views.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "chrome/browser/apps/scoped_keep_alive.h" |
9 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/app_list/app_list_shower_delegate.h" | 11 #include "chrome/browser/ui/app_list/app_list_shower_delegate.h" |
11 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" | 12 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" |
12 #include "chrome/browser/ui/app_list/scoped_keep_alive.h" | |
13 #include "ui/app_list/views/app_list_view.h" | 13 #include "ui/app_list/views/app_list_view.h" |
14 #include "ui/gfx/geometry/point.h" | 14 #include "ui/gfx/geometry/point.h" |
15 #include "ui/gfx/screen.h" | 15 #include "ui/gfx/screen.h" |
16 | 16 |
17 AppListShower::AppListShower(AppListShowerDelegate* delegate) | 17 AppListShower::AppListShower(AppListShowerDelegate* delegate) |
18 : delegate_(delegate), | 18 : delegate_(delegate), |
19 profile_(NULL), | 19 profile_(NULL), |
20 app_list_(NULL), | 20 app_list_(NULL), |
21 window_icon_updated_(false) { | 21 window_icon_updated_(false) { |
22 } | 22 } |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 FROM_HERE, | 134 FROM_HERE, |
135 base::Bind(&AppListShower::ResetKeepAlive, base::Unretained(this))); | 135 base::Bind(&AppListShower::ResetKeepAlive, base::Unretained(this))); |
136 return; | 136 return; |
137 } | 137 } |
138 ResetKeepAlive(); | 138 ResetKeepAlive(); |
139 } | 139 } |
140 | 140 |
141 void AppListShower::ResetKeepAlive() { | 141 void AppListShower::ResetKeepAlive() { |
142 keep_alive_.reset(); | 142 keep_alive_.reset(); |
143 } | 143 } |
OLD | NEW |