| 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 "ash/common/shell_window_ids.h" |
| 7 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 8 #include "ash/shell_window_ids.h" | |
| 9 #include "chrome/grit/generated_resources.h" | 9 #include "chrome/grit/generated_resources.h" |
| 10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 11 #include "media/base/video_util.h" | 11 #include "media/base/video_util.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/gfx/image/image.h" | 13 #include "ui/gfx/image/image.h" |
| 14 #include "ui/snapshot/snapshot.h" | 14 #include "ui/snapshot/snapshot.h" |
| 15 | 15 |
| 16 using content::BrowserThread; | 16 using content::BrowserThread; |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 --pending_window_capture_requests_; | 129 --pending_window_capture_requests_; |
| 130 DCHECK_GE(pending_window_capture_requests_, 0); | 130 DCHECK_GE(pending_window_capture_requests_, 0); |
| 131 | 131 |
| 132 if (!pending_window_capture_requests_) { | 132 if (!pending_window_capture_requests_) { |
| 133 // Once we've finished capturing all windows post a task for the next list | 133 // Once we've finished capturing all windows post a task for the next list |
| 134 // update. | 134 // update. |
| 135 ScheduleNextRefresh(); | 135 ScheduleNextRefresh(); |
| 136 } | 136 } |
| 137 } | 137 } |
| OLD | NEW |