| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/login/screenshot_testing/screenshot_testing_mi
xin.h" | 5 #include "chrome/browser/chromeos/login/screenshot_testing/screenshot_testing_mi
xin.h" |
| 6 | 6 |
| 7 #include "base/run_loop.h" |
| 7 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
| 9 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 10 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
| 11 #include "content/public/browser/notification_types.h" | 12 #include "content/public/browser/notification_types.h" |
| 12 #include "ui/compositor/compositor_switches.h" | 13 #include "ui/compositor/compositor_switches.h" |
| 13 | 14 |
| 14 namespace chromeos { | 15 namespace chromeos { |
| 15 | 16 |
| 16 ScreenshotTestingMixin::ScreenshotTestingMixin() | 17 ScreenshotTestingMixin::ScreenshotTestingMixin() |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 waiter.Run(); | 58 waiter.Run(); |
| 58 } | 59 } |
| 59 | 60 |
| 60 void ScreenshotTestingMixin::HandleAnimationLoad() { | 61 void ScreenshotTestingMixin::HandleAnimationLoad() { |
| 61 timer_.Stop(); | 62 timer_.Stop(); |
| 62 content::BrowserThread::PostTask( | 63 content::BrowserThread::PostTask( |
| 63 content::BrowserThread::UI, FROM_HERE, animation_waiter_quitter_); | 64 content::BrowserThread::UI, FROM_HERE, animation_waiter_quitter_); |
| 64 } | 65 } |
| 65 | 66 |
| 66 } // namespace chromeos | 67 } // namespace chromeos |
| OLD | NEW |