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

Side by Side Diff: chrome/browser/media/native_desktop_media_list.h

Issue 1828303003: Modify unit tests for NativeDesktopMediaList to cover aura window capture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/media/native_desktop_media_list.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_ 5 #ifndef CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_
6 #define CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_ 6 #define CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 #if defined(USE_AURA) 59 #if defined(USE_AURA)
60 // previous_aura_thumbnail_hashes_ holds thumbanil hash values of aura windows 60 // previous_aura_thumbnail_hashes_ holds thumbanil hash values of aura windows
61 // in the previous refresh. While new_aura_thumbnail_hashes_ has hash values 61 // in the previous refresh. While new_aura_thumbnail_hashes_ has hash values
62 // of the ongoing refresh. Those two maps are used to detect new thumbnails 62 // of the ongoing refresh. Those two maps are used to detect new thumbnails
63 // and changed thumbnails from the previous refresh. 63 // and changed thumbnails from the previous refresh.
64 ImageHashesMap previous_aura_thumbnail_hashes_; 64 ImageHashesMap previous_aura_thumbnail_hashes_;
65 ImageHashesMap new_aura_thumbnail_hashes_; 65 ImageHashesMap new_aura_thumbnail_hashes_;
66 66
67 int pending_aura_capture_requests_ = 0; 67 int pending_aura_capture_requests_ = 0;
68 bool pending_native_thumbnail_capture_ = true; 68 bool pending_native_thumbnail_capture_ = false;
69 #endif 69 #endif
70
71 base::WeakPtrFactory<NativeDesktopMediaList> weak_factory_; 70 base::WeakPtrFactory<NativeDesktopMediaList> weak_factory_;
72 71
73 DISALLOW_COPY_AND_ASSIGN(NativeDesktopMediaList); 72 DISALLOW_COPY_AND_ASSIGN(NativeDesktopMediaList);
74 }; 73 };
75 74
76 #endif // CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_ 75 #endif // CHROME_BROWSER_MEDIA_NATIVE_DESKTOP_MEDIA_LIST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/native_desktop_media_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698