Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / Examples / ChangeLog
1 2014-12-03  Ada Chan  <adachan@apple.com>
2
3         Add a sample plugin to demonstrate the mute plugin API.
4         https://bugs.webkit.org/show_bug.cgi?id=139231
5
6         Reviewed by Anders Carlsson.
7
8         * NetscapeMuteAPIPlugin/AudioPlayer.h: Added.
9         * NetscapeMuteAPIPlugin/AudioPlayer.mm: Added.
10         (-[AudioPlayer initWithURL:]):
11         (-[AudioPlayer dealloc]):
12         (-[AudioPlayer isReadyToPlay]):
13         (-[AudioPlayer isPlaying]):
14         (-[AudioPlayer setPlaying:]):
15         (-[AudioPlayer isMuted]):
16         (-[AudioPlayer setMuted:]):
17         (-[AudioPlayer observeValueForKeyPath:ofObject:change:context:]):
18         * NetscapeMuteAPIPlugin/English.lproj/InfoPlist.strings: Added.
19         * NetscapeMuteAPIPlugin/Info.plist: Added.
20         * NetscapeMuteAPIPlugin/MenuHandler.h: Added.
21         * NetscapeMuteAPIPlugin/MenuHandler.m: Added.
22         (-[MenuHandler _play:]):
23         (-[MenuHandler _pause:]):
24         (-[MenuHandler validateUserInterfaceItem:]):
25         (-[MenuHandler initWithAudioPlayer:]):
26         (-[MenuHandler dealloc]):
27         (-[MenuHandler menu]):
28         * NetscapeMuteAPIPlugin/NetscapeMuteAPIPlugin.xcodeproj/project.pbxproj: Added.
29         * NetscapeMuteAPIPlugin/main.m: Added.
30         (-[PluginObject initWithNPP:audioURL:]):
31         (-[PluginObject dealloc]):
32         (-[PluginObject menuHandler]):
33         (-[PluginObject isPlayingAudio]):
34         (-[PluginObject isMuted]):
35         (-[PluginObject setMuted:]):
36         (-[PluginObject readyStateDidChangeForAudioPlayer:]):
37         (-[PluginObject mutedStateDidChangeForAudioPlayer:]):
38         (-[PluginObject playStateDidChangeForAudioPlayer:]):
39         (-[PluginObject _invalidateDisplayString]):
40         (NP_Initialize):
41         (NP_GetEntryPoints):
42         (NP_Shutdown):
43         (NPP_New):
44         (NPP_Destroy):
45         (NPP_SetWindow):
46         (NPP_NewStream):
47         (NPP_DestroyStream):
48         (NPP_WriteReady):
49         (NPP_Write):
50         (NPP_StreamAsFile):
51         (NPP_Print):
52         (handleDraw):
53         (invalidatePlugin):
54         (handleMouseEvent):
55         (NPP_HandleEvent):
56         (NPP_URLNotify):
57         (NPP_GetValue):
58         (NPP_SetValue):
59         * NetscapeMuteAPIPlugin/test.html: Added.
60
61 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
62
63         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
64         https://bugs.webkit.org/show_bug.cgi?id=130276
65         <rdar://problem/16266927>
66
67         Reviewed by Simon Fraser.
68
69         * NetscapeCocoaPlugin/MenuHandler.h:
70         * NetscapeCocoaPlugin/MenuHandler.m:
71         * NetscapeCocoaPlugin/main.m:
72         * NetscapeCoreAnimationPlugin/main.m:
73         * NetscapeInputMethodPlugin/main.m:
74
75 2011-03-17  Jeff Miller  <jeffm@apple.com>
76
77         Use a consistent set of file patterns in the svn:ignore property for all .xcodeproj directories, specifically:
78         
79         *.mode*
80         *.pbxuser
81         *.perspective*
82         project.xcworkspace
83         xcuserdata
84
85         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj: Modified property svn:ignore.
86         * NetscapeCoreAnimationMoviePlugin/NetscapeCoreAnimationMoviePlugin.xcodeproj: Modified property svn:ignore.
87         * NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj: Modified property svn:ignore.
88         * NetscapeInputMethodPlugin/NetscapeInputMethodPlugin.xcodeproj: Modified property svn:ignore.
89
90 2011-01-17  Dan Bernstein  <mitz@apple.com>
91
92         Rubber-stamped by Mark Rowe.
93
94         Update xcodeproj svn:ignore to include xcuserdata.
95
96         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj: Modified property svn:ignore.
97         * NetscapeCoreAnimationMoviePlugin/NetscapeCoreAnimationMoviePlugin.xcodeproj: Modified property svn:ignore.
98         * NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj: Modified property svn:ignore.
99         * NetscapeInputMethodPlugin/NetscapeInputMethodPlugin.xcodeproj: Modified property svn:ignore.
100
101 2010-11-03  Darin Adler  <darin@apple.com>
102
103         Updated Xcode projects by opening them with Xcode 3.2.4.
104         Updated svn:ignore for Xcode projects.
105
106         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj: Added property svn:ignore.
107         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj: Updated with Xcode 3.2.4.
108         * NetscapeCoreAnimationMoviePlugin/NetscapeCoreAnimationMoviePlugin.xcodeproj: Added property svn:ignore.
109         * NetscapeCoreAnimationMoviePlugin/NetscapeCoreAnimationMoviePlugin.xcodeproj/project.pbxproj:
110         * NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj: Added property svn:ignore.
111         * NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj/project.pbxproj:
112         * NetscapeInputMethodPlugin/NetscapeInputMethodPlugin.xcodeproj: Added property svn:ignore.
113         * NetscapeInputMethodPlugin/NetscapeInputMethodPlugin.xcodeproj/project.pbxproj: Updated with Xcode 3.2.4.
114
115 2010-06-16  Anders Carlsson  <andersca@apple.com>
116
117         Fix build.
118
119         * NetscapeCoreAnimationMoviePlugin/main.m:
120         (NPP_New):
121         (NPP_WriteReady):
122         (NPP_Write):
123         (NPP_HandleEvent):
124
125 2010-06-10  Anders Carlsson  <andersca@apple.com>
126
127         Fix build.
128
129         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj:
130         * NetscapeCocoaPlugin/main.m:
131         (NPP_New):
132         (NPP_NewStream):
133         (NPP_WriteReady):
134         (NPP_Write):
135         (NPP_HandleEvent):
136
137 2010-03-02  Anders Carlsson  <andersca@apple.com>
138
139         Reviewed by Kevin Decker.
140
141         NPWindow is now null in the Cocoa event model.
142
143         * NetscapeInputMethodPlugin/main.m:
144         (handleDraw):
145         (NPP_HandleEvent):
146
147 2009-07-10  Adam Roben  <aroben@apple.com>
148
149         Sort all our Xcode projects
150
151         Accomplished using sort-Xcode-project-file.
152
153         Requested by Dave Kilzer.
154
155         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj:
156         * NetscapeCoreAnimationMoviePlugin/NetscapeCoreAnimationMoviePlugin.xcodeproj/project.pbxproj:
157         * NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj/project.pbxproj:
158
159 2009-06-15  Anders Carlsson  <andersca@apple.com>
160
161         Reviewed by Kevin Decker.
162
163         Add Core Animation movie plug-in example.
164         
165         * NetscapeCoreAnimationMoviePlugin: Added.
166         * NetscapeCoreAnimationMoviePlugin/English.lproj: Added.
167         * NetscapeCoreAnimationMoviePlugin/English.lproj/InfoPlist.strings: Added.
168         * NetscapeCoreAnimationMoviePlugin/Info.plist: Added.
169         * NetscapeCoreAnimationMoviePlugin/MovieControllerLayer.h: Added.
170         * NetscapeCoreAnimationMoviePlugin/MovieControllerLayer.m: Added.
171         (createImageNamed):
172         (-[MovieControllerLayer init]):
173         (-[MovieControllerLayer dealloc]):
174         (-[MovieControllerLayer _playPauseButtonRect]):
175         (-[MovieControllerLayer _sliderRect]):
176         (-[MovieControllerLayer _sliderThumbRect]):
177         (-[MovieControllerLayer _innerSliderRect]):
178         (-[MovieControllerLayer _drawPlayPauseButtonInContext:]):
179         (-[MovieControllerLayer _drawSliderInContext:]):
180         (-[MovieControllerLayer drawInContext:]):
181         (-[MovieControllerLayer _currentTime]):
182         (-[MovieControllerLayer _duration]):
183         (-[MovieControllerLayer _isPlaying]):
184         (-[MovieControllerLayer _updateTime:]):
185         (-[MovieControllerLayer _rateDidChange:]):
186         (-[MovieControllerLayer _timeDidChange:]):
187         (-[MovieControllerLayer actionForKey:]):
188         (-[MovieControllerLayer setMovie:]):
189         (-[MovieControllerLayer _setNewTimeForThumbCenterX:]):
190         (-[MovieControllerLayer handleMouseDown:]):
191         (-[MovieControllerLayer handleMouseUp:]):
192         (-[MovieControllerLayer handleMouseDragged:]):
193         * NetscapeCoreAnimationMoviePlugin/NetscapeCoreAnimationMoviePlugin.xcodeproj: Added.
194         * NetscapeCoreAnimationMoviePlugin/NetscapeCoreAnimationMoviePlugin.xcodeproj/project.pbxproj: Added.
195         * NetscapeCoreAnimationMoviePlugin/Pause.tiff: Added.
196         * NetscapeCoreAnimationMoviePlugin/Play.tiff: Added.
197         * NetscapeCoreAnimationMoviePlugin/SliderTrackCenter.tiff: Added.
198         * NetscapeCoreAnimationMoviePlugin/SliderTrackLeft.tiff: Added.
199         * NetscapeCoreAnimationMoviePlugin/SliderTrackRight.tiff: Added.
200         * NetscapeCoreAnimationMoviePlugin/Thumb.tiff: Added.
201         * NetscapeCoreAnimationMoviePlugin/main.m: Added.
202         (NP_Initialize):
203         (NP_GetEntryPoints):
204         (NP_Shutdown):
205         (NPP_New):
206         (NPP_Destroy):
207         (NPP_SetWindow):
208         (NPP_NewStream):
209         (NPP_DestroyStream):
210         (NPP_WriteReady):
211         (NPP_Write):
212         (NPP_StreamAsFile):
213         (NPP_Print):
214         (handleMouseDown):
215         (togglePlayPause):
216         (handleMouseUp):
217         (handleMouseDragged):
218         (handleMouseEntered):
219         (handleMouseExited):
220         (handleKeyDown):
221         (handleScrollEvent):
222         (NPP_HandleEvent):
223         (NPP_URLNotify):
224         (NPP_GetValue):
225         (NPP_SetValue):
226         * NetscapeCoreAnimationMoviePlugin/test.html: Added.
227
228 2009-04-27  Anders Carlsson  <andersca@apple.com>
229
230         Reviewed by Adam Roben.
231
232         Update the example plug-in for new changes to the Cocoa event model.
233         
234         * NetscapeCocoaPlugin/main.m:
235         (handleDraw):
236         (handleMouseEvent):
237         (NPP_HandleEvent):
238
239 2009-03-13  Anders Carlsson  <andersca@apple.com>
240
241         Reviewed by Kevin Decker.
242
243         Update to match new API.
244         
245         * NetscapeInputMethodPlugin/main.m:
246         (NPP_New):
247         (NPP_Destroy):
248         (NPP_SetWindow):
249         (handleDraw):
250         (invalidatePlugin):
251         (handleFocusChanged):
252         (handleMouseMoved):
253         (handleMouseDown):
254         (handleTextFieldKeyDown):
255         (handleTextInput):
256         (NPP_HandleEvent):
257         (NPP_URLNotify):
258         (NPP_GetValue):
259         (NPP_SetValue):
260
261 2008-12-12  Anders Carlsson  <andersca@apple.com>
262
263         Reviewed by Darin Adler.
264
265         There's no need to hold on to the QCComposition. Also, toggle between a gold and silver compass 
266         when a mouse button is pressed.
267         
268         * NetscapeCoreAnimationPlugin/Composition.qtz:
269         * NetscapeCoreAnimationPlugin/main.m:
270         (NPP_Destroy):
271         (handleMouseClick):
272         (NPP_GetValue):
273
274 2008-12-12  Anders Carlsson  <andersca@apple.com>
275
276         Revert some accidentally committed changes.
277         
278         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj:
279         * NetscapeCocoaPlugin/main.m:
280         (handleDraw):
281         (handleMouseEvent):
282         (NPP_HandleEvent):
283
284 2008-12-12  Anders Carlsson  <andersca@apple.com>
285
286         Reviewed by Kevin Decker.
287
288         Add a sample Core Animation NPAPI plug-in.
289         
290         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj:
291         * NetscapeCocoaPlugin/main.m:
292         (handleDraw):
293         (handleMouseEvent):
294         (NPP_HandleEvent):
295         * NetscapeCoreAnimationPlugin: Added.
296         * NetscapeCoreAnimationPlugin/Composition.qtz: Added.
297         * NetscapeCoreAnimationPlugin/English.lproj: Added.
298         * NetscapeCoreAnimationPlugin/English.lproj/InfoPlist.strings: Added.
299         * NetscapeCoreAnimationPlugin/Info.plist: Added.
300         * NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj: Added.
301         * NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj/project.pbxproj: Added.
302         * NetscapeCoreAnimationPlugin/main.m: Added.
303         (NP_Initialize):
304         (NP_GetEntryPoints):
305         (NP_Shutdown):
306         (NPP_New):
307         (NPP_Destroy):
308         (NPP_SetWindow):
309         (NPP_NewStream):
310         (NPP_DestroyStream):
311         (NPP_WriteReady):
312         (NPP_Write):
313         (NPP_StreamAsFile):
314         (NPP_Print):
315         (handleMouseClick):
316         (NPP_HandleEvent):
317         (NPP_URLNotify):
318         (NPP_GetValue):
319         (NPP_SetValue):
320         * NetscapeCoreAnimationPlugin/test.html: Added.
321
322 2008-12-08  David Kilzer  <ddkilzer@apple.com>
323
324         Bug 22555: Sort "children" sections in Xcode project files
325
326         <https://bugs.webkit.org/show_bug.cgi?id=22555>
327
328         Reviewed by Eric Seidel.
329
330         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj: Sorted.
331
332 2008-08-20  Josh Aas  <joshmoz@gmail.com>
333
334         Reviewed and landed by Anders.
335
336         <rdar://problem/6163636> 
337         rename NPCocoaEvent's "event" struct to "data" (20446)
338
339         * NetscapeCocoaPlugin/main.m:
340         (handleMouseEvent):
341         (handleKeyboardEvent):
342         (NPP_HandleEvent):
343
344 2008-05-22  Josh Aas  <joshmoz@gmail.com>
345
346         Reviewed by Anders.
347
348         Use correct enum.
349         
350         * NetscapeCocoaPlugin/main.m:
351         (NPP_New):
352         * NetscapeInputMethodPlugin/main.m:
353         (NPP_New):
354
355 2008-05-12  Anders Carlsson  <andersca@apple.com>
356
357         Reviewed by Alexey.
358
359         Add input method test plug-in.
360         
361         * NetscapeInputMethodPlugin: Added.
362         * NetscapeInputMethodPlugin/English.lproj: Added.
363         * NetscapeInputMethodPlugin/English.lproj/InfoPlist.strings: Added.
364         * NetscapeInputMethodPlugin/Info.plist: Added.
365         * NetscapeInputMethodPlugin/NetscapeInputMethodPlugin.xcodeproj: Added.
366         * NetscapeInputMethodPlugin/NetscapeInputMethodPlugin.xcodeproj/project.pbxproj: Added.
367         * NetscapeInputMethodPlugin/main.m: Added.
368         (NP_Initialize):
369         (NP_GetEntryPoints):
370         (NP_Shutdown):
371         (NPP_New):
372         (NPP_Destroy):
373         (NPP_SetWindow):
374         (NPP_NewStream):
375         (NPP_DestroyStream):
376         (NPP_WriteReady):
377         (NPP_Write):
378         (NPP_StreamAsFile):
379         (NPP_Print):
380         (handleDraw):
381         (invalidatePlugin):
382         (handleFocusChanged):
383         (handleMouseMoved):
384         (handleMouseDown):
385         (NPP_HandleEvent):
386         (NPP_URLNotify):
387         (selectionRange):
388         (NPP_InsertText):
389         (NPP_DoCommandBySelector):
390         (markedTextAttributes):
391         (NPP_SetMarkedText):
392         (NPP_UnmarkText):
393         (NPP_HasMarkedText):
394         (NPP_AttributedSubstringFromRange):
395         (NPP_MarkedRange):
396         (NPP_SelectedRange):
397         (NPP_FirstRectForCharacterRange):
398         (pluginTextInputFuncs):
399         (NPP_GetValue):
400         (NPP_SetValue):
401         * NetscapeInputMethodPlugin/test.html: Added.
402
403 2008-05-06  Anders Carlsson  <andersca@apple.com>
404
405         Reviewed by Mitz.
406
407         Add NPN_PopUpContextMenu example.
408         
409         * NetscapeCocoaPlugin/MenuHandler.h: Added.
410         * NetscapeCocoaPlugin/MenuHandler.m: Added.
411         (-[MenuHandler _openURL:]):
412         (-[MenuHandler _disabledItem:]):
413         (-[MenuHandler validateUserInterfaceItem:]):
414         (-[MenuHandler initWithBrowserFuncs:instance:]):
415         (-[MenuHandler dealloc]):
416         (-[MenuHandler menu]):
417         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj:
418         * NetscapeCocoaPlugin/main.m:
419         (NPP_Destroy):
420         (handleMouseEvent):
421
422 2008-05-06  Anders Carlsson  <andersca@apple.com>
423
424         Reviewed by Jon, Tim and Mark.
425
426         Add a sample NPAPI plugin that uses the Cocoa event model.
427
428         * .: Added.
429         * ChangeLog: Added.
430         * NetscapeCocoaPlugin: Added.
431         * NetscapeCocoaPlugin/English.lproj: Added.
432         * NetscapeCocoaPlugin/English.lproj/InfoPlist.strings: Added.
433         * NetscapeCocoaPlugin/Info.plist: Added.
434         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj: Added.
435         * NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj: Added.
436         * NetscapeCocoaPlugin/main.m: Added.
437         (NP_Initialize):
438         (NP_GetEntryPoints):
439         (NP_Shutdown):
440         (NPP_New):
441         (NPP_Destroy):
442         (NPP_SetWindow):
443         (NPP_NewStream):
444         (NPP_DestroyStream):
445         (NPP_WriteReady):
446         (NPP_Write):
447         (NPP_StreamAsFile):
448         (NPP_Print):
449         (handleDraw):
450         (eventType):
451         (invalidatePlugin):
452         (handleMouseEvent):
453         (handleKeyboardEvent):
454         (NPP_HandleEvent):
455         (NPP_URLNotify):
456         (NPP_GetValue):
457         (NPP_SetValue):
458         * NetscapeCocoaPlugin/test.html: Added.