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/native_desktop_media_list.h" | 5 #include "chrome/browser/media/native_desktop_media_list.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 #include <string.h> |
| 10 |
7 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/macros.h" |
8 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
9 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
10 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
11 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
12 #include "chrome/browser/media/desktop_media_list_observer.h" | 17 #include "chrome/browser/media/desktop_media_list_observer.h" |
13 #include "content/public/test/test_browser_thread.h" | 18 #include "content/public/test/test_browser_thread.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 21 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
17 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" | 22 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 // Swap the two windows. | 350 // Swap the two windows. |
346 webrtc::WindowCapturer::Window temp = list[0]; | 351 webrtc::WindowCapturer::Window temp = list[0]; |
347 list[0] = list[1]; | 352 list[0] = list[1]; |
348 list[1] = temp; | 353 list[1] = temp; |
349 window_capturer_->SetWindowList(list); | 354 window_capturer_->SetWindowList(list); |
350 | 355 |
351 message_loop_.Run(); | 356 message_loop_.Run(); |
352 } | 357 } |
353 | 358 |
354 } // namespace | 359 } // namespace |
OLD | NEW |