OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #import "platform/KillRing.h" | 26 #import "platform/KillRing.h" |
27 | 27 |
28 namespace blink { | 28 namespace blink { |
29 | 29 |
30 extern "C" { | 30 extern "C" { |
31 | 31 |
32 // Kill ring calls. Would be better to use NSKillRing.h, but that's not availabl
e as API or SPI. | 32 // Kill ring calls. Would be better to use NSKillRing.h, but that's not |
| 33 // available as API or SPI. |
33 | 34 |
34 void _NSInitializeKillRing(); | 35 void _NSInitializeKillRing(); |
35 void _NSAppendToKillRing(NSString*); | 36 void _NSAppendToKillRing(NSString*); |
36 void _NSPrependToKillRing(NSString*); | 37 void _NSPrependToKillRing(NSString*); |
37 NSString* _NSYankFromKillRing(); | 38 NSString* _NSYankFromKillRing(); |
38 void _NSNewKillRingSequence(); | 39 void _NSNewKillRingSequence(); |
39 void _NSSetKillRingToYankedState(); | 40 void _NSSetKillRingToYankedState(); |
40 } | 41 } |
41 | 42 |
42 static void initializeKillRingIfNeeded() { | 43 static void initializeKillRingIfNeeded() { |
(...skipping 23 matching lines...) Expand all Loading... |
66 initializeKillRingIfNeeded(); | 67 initializeKillRingIfNeeded(); |
67 _NSNewKillRingSequence(); | 68 _NSNewKillRingSequence(); |
68 } | 69 } |
69 | 70 |
70 void KillRing::setToYankedState() { | 71 void KillRing::setToYankedState() { |
71 initializeKillRingIfNeeded(); | 72 initializeKillRingIfNeeded(); |
72 _NSSetKillRingToYankedState(); | 73 _NSSetKillRingToYankedState(); |
73 } | 74 } |
74 | 75 |
75 } // namespace blink | 76 } // namespace blink |
OLD | NEW |