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 /* | 5 /* |
6 * Copyright (C) 2010 Google Inc. All rights reserved. | 6 * Copyright (C) 2010 Google Inc. All rights reserved. |
7 * Copyright (C) 2012 Apple Inc. | 7 * Copyright (C) 2012 Apple Inc. |
8 * | 8 * |
9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
10 * modification, are permitted provided that the following conditions are | 10 * modification, are permitted provided that the following conditions are |
(...skipping 15 matching lines...) Expand all Loading... |
26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
27 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 27 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
28 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 28 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
29 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 29 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
34 */ | 34 */ |
35 | 35 |
| 36 #import <AppKit/AppKit.h> |
36 #import <AvailabilityMacros.h> | 37 #import <AvailabilityMacros.h> |
37 #import <AppKit/AppKit.h> | |
38 #include <signal.h> | 38 #include <signal.h> |
39 #include <stdio.h> | 39 #include <stdio.h> |
40 #include <stdlib.h> | 40 #include <stdlib.h> |
41 | 41 |
42 // This is a simple helper app that changes the color sync profile to the | 42 // This is a simple helper app that changes the color sync profile to the |
43 // generic profile and back when done. This program is managed by the layout | 43 // generic profile and back when done. This program is managed by the layout |
44 // test script, so it can do the job for multiple DumpRenderTree while they are | 44 // test script, so it can do the job for multiple DumpRenderTree while they are |
45 // running layout tests. | 45 // running layout tests. |
46 | 46 |
47 namespace { | 47 namespace { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 254 |
255 // Wait for any key (or signal). | 255 // Wait for any key (or signal). |
256 getchar(); | 256 getchar(); |
257 | 257 |
258 // Restore the profile. | 258 // Restore the profile. |
259 RestoreUserColorProfile(); | 259 RestoreUserColorProfile(); |
260 | 260 |
261 [pool release]; | 261 [pool release]; |
262 return 0; | 262 return 0; |
263 } | 263 } |
OLD | NEW |