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 <set> | 7 #include <set> |
8 | 8 |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
11 #include "base/hash.h" | 11 #include "base/hash.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/threading/sequenced_worker_pool.h" | 14 #include "base/threading/sequenced_worker_pool.h" |
15 #include "chrome/browser/media/desktop_media_list_observer.h" | 15 #include "chrome/browser/media/desktop_media_list_observer.h" |
| 16 #include "chrome/grit/generated_resources.h" |
16 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
17 #include "grit/generated_resources.h" | |
18 #include "media/base/video_util.h" | 18 #include "media/base/video_util.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 #include "ui/compositor/dip_util.h" | 20 #include "ui/compositor/dip_util.h" |
21 #include "ui/gfx/image/image.h" | 21 #include "ui/gfx/image/image.h" |
22 #include "ui/snapshot/snapshot.h" | 22 #include "ui/snapshot/snapshot.h" |
23 | 23 |
24 using content::BrowserThread; | 24 using content::BrowserThread; |
25 using content::DesktopMediaID; | 25 using content::DesktopMediaID; |
26 | 26 |
27 namespace { | 27 namespace { |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 if (!pending_window_capture_requests_) { | 244 if (!pending_window_capture_requests_) { |
245 // Once we've finished capturing all windows post a task for the next list | 245 // Once we've finished capturing all windows post a task for the next list |
246 // update. | 246 // update. |
247 BrowserThread::PostDelayedTask( | 247 BrowserThread::PostDelayedTask( |
248 BrowserThread::UI, FROM_HERE, | 248 BrowserThread::UI, FROM_HERE, |
249 base::Bind(&DesktopMediaListAsh::Refresh, | 249 base::Bind(&DesktopMediaListAsh::Refresh, |
250 weak_factory_.GetWeakPtr()), | 250 weak_factory_.GetWeakPtr()), |
251 update_period_); | 251 update_period_); |
252 } | 252 } |
253 } | 253 } |
OLD | NEW |