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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTING_MIXI
N_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTING_MIXI
N_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTING_MIXI
N_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTING_MIXI
N_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // This method should be used after getting all the necessary notifications | 43 // This method should be used after getting all the necessary notifications |
44 // to wait for the actual load of animation. | 44 // to wait for the actual load of animation. |
45 void SynchronizeAnimationLoadWithCompositor(); | 45 void SynchronizeAnimationLoadWithCompositor(); |
46 | 46 |
47 // This method exists only because of the current implementation of | 47 // This method exists only because of the current implementation of |
48 // SynchronizeAnimationLoadWithCompositor. | 48 // SynchronizeAnimationLoadWithCompositor. |
49 void HandleAnimationLoad(); | 49 void HandleAnimationLoad(); |
50 | 50 |
51 // Required for current implementation of | 51 // Required for current implementation of |
52 // SynchronizeAnimationLoadWithCompositor() | 52 // SynchronizeAnimationLoadWithCompositor() |
53 base::OneShotTimer<ScreenshotTestingMixin> timer_; | 53 base::OneShotTimer timer_; |
54 base::Closure animation_waiter_quitter_; | 54 base::Closure animation_waiter_quitter_; |
55 | 55 |
56 // Is true if testing with screenshots is turned on with all proper switches. | 56 // Is true if testing with screenshots is turned on with all proper switches. |
57 bool enable_test_screenshots_; | 57 bool enable_test_screenshots_; |
58 | 58 |
59 // |screenshot_tester_ | does everything connected with taking, loading and | 59 // |screenshot_tester_ | does everything connected with taking, loading and |
60 // comparing screenshots | 60 // comparing screenshots |
61 ScreenshotTester screenshot_tester_; | 61 ScreenshotTester screenshot_tester_; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace chromeos | 64 } // namespace chromeos |
65 | 65 |
66 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTING_M
IXIN_H_ | 66 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENSHOT_TESTING_SCREENSHOT_TESTING_M
IXIN_H_ |
OLD | NEW |