OLD | NEW |
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 #include "chrome/browser/media/desktop_media_list_ash.h" | 5 #include "chrome/browser/media/desktop_media_list_ash.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <set> | 9 #include <set> |
8 | 10 |
9 #include "ash/shell.h" | 11 #include "ash/shell.h" |
10 #include "ash/shell_window_ids.h" | 12 #include "ash/shell_window_ids.h" |
11 #include "base/hash.h" | 13 #include "base/hash.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
14 #include "base/threading/sequenced_worker_pool.h" | 16 #include "base/threading/sequenced_worker_pool.h" |
15 #include "chrome/browser/media/desktop_media_list_observer.h" | 17 #include "chrome/browser/media/desktop_media_list_observer.h" |
16 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 if (!pending_window_capture_requests_) { | 247 if (!pending_window_capture_requests_) { |
246 // Once we've finished capturing all windows post a task for the next list | 248 // Once we've finished capturing all windows post a task for the next list |
247 // update. | 249 // update. |
248 BrowserThread::PostDelayedTask( | 250 BrowserThread::PostDelayedTask( |
249 BrowserThread::UI, FROM_HERE, | 251 BrowserThread::UI, FROM_HERE, |
250 base::Bind(&DesktopMediaListAsh::Refresh, | 252 base::Bind(&DesktopMediaListAsh::Refresh, |
251 weak_factory_.GetWeakPtr()), | 253 weak_factory_.GetWeakPtr()), |
252 update_period_); | 254 update_period_); |
253 } | 255 } |
254 } | 256 } |
OLD | NEW |