skia2/tools/sk_app
Jim Van Verth 2782b2872b Fix drag events in Mac viewer.
Rather than depend on the Cocoa event system we intercept the events
in our main loop and send them to the appropriate sk_app::Window. A
hashmap that maps from Cocoa windowNumbers to an sk_app::Window is
added to make this possible.

We continue to send the event on through the Cocoa system to catch
system level events -- e.g., window close and drag events. We also
continue to catch key events in an NSView to keep the app from beeping
annoyingly because it thinks it's capturing events outside its focus.
Finally we ensure that move events are always enabled for the window
so that imgui knows that the cursor is over it.

Bug: skia:8737
Change-Id: Id49df51f68942fbf51634d6484291df862074864
Reviewed-on: https://skia-review.googlesource.com/c/191574
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2019-02-13 19:26:39 +00:00
..
android Privately include our version of vulkan header file in all our src files. 2018-11-26 15:15:44 +00:00
ios test,tools: whitespace changes for clang-format 2018-09-19 17:50:51 +00:00
mac Fix drag events in Mac viewer. 2019-02-13 19:26:39 +00:00
unix Privately include our version of vulkan header file in all our src files. 2018-11-26 15:15:44 +00:00
win more extra semis 2019-01-04 15:35:14 +00:00
Application.h Remove SampleApp and convert HelloWorld to sk_app 2017-11-21 18:37:19 +00:00
CommandSet.cpp sed s/drawSimpleText/drawString/ 2019-01-08 19:50:09 +00:00
CommandSet.h Remove SampleApp and convert HelloWorld to sk_app 2017-11-21 18:37:19 +00:00
DisplayParams.h Add pixel geometry and dft selection to viewer app. 2018-04-16 22:46:50 +00:00
GLWindowContext.cpp Remove some linear-blending sRGB logic from sk_app 2018-07-09 15:22:17 +00:00
GLWindowContext.h Remove legacy GrContext factories function and supporting code/types. 2018-03-23 21:12:50 +00:00
MetalWindowContext.h Add Metal context to Viewer. 2019-02-08 21:26:52 +00:00
MetalWindowContext.mm Add Metal context to Viewer. 2019-02-08 21:26:52 +00:00
RasterWindowContext.h Remove legacy GrContext factories function and supporting code/types. 2018-03-23 21:12:50 +00:00
VulkanWindowContext.cpp Privately include our version of vulkan header file in all our src files. 2018-11-26 15:15:44 +00:00
VulkanWindowContext.h Privately include our version of vulkan header file in all our src files. 2018-11-26 15:15:44 +00:00
Window.cpp Switch back to non-Retina display resolution. 2019-02-06 16:53:02 +00:00
Window.h Add Metal context to Viewer. 2019-02-08 21:26:52 +00:00
WindowContext.h Add pixel geometry and dft selection to viewer app. 2018-04-16 22:46:50 +00:00