Gijs Kruitbosch
c99a32f42e
Bug 1219215 - part 0: fix context menu code to take window dragging region into account, r=jimm
2016-01-18 14:30:44 +00:00
Kartikaya Gupta
aa24bb85e0
Bug 1242690 - Squash together DispatchAPZAwareEvent and DispatchInputEvent. r=dvander
2016-01-29 16:31:15 -05:00
Jeff Muizelaar
f75357dfc4
Bug 1243636. Switch to gfx::CriticalSection
2016-01-27 23:30:25 -05:00
Masayuki Nakano
9813840a47
Bug 1153156 part.3 Don't allow to override system scroll speed if the wheel event causes too fast scroll r=smaug+jimm
2016-01-27 15:09:13 +09:00
Masayuki Nakano
46c65f22ee
Bug 1153156 part.2 Make WidgetWheelEvent store if overriding system scroll speed is allowed and it shouldn't be allowed if scroll speed isn't system default settings on Windows r=smaug+jimm
2016-01-27 15:09:13 +09:00
Masayuki Nakano
f54e28790a
Bug 1153156 part.1 Move nsBaseWidget::OverrideSystemMouseScrollSpeed() to WidgetWheelEvent r=smaug, sr=smaug
2016-01-27 15:09:13 +09:00
Bob Owen
2ee239aba8
Bug 1242616: Add break in nsWindow.cpp WM_GETOBJECT handling. r=tbsaunde
2016-01-26 10:03:07 +00:00
Sylvestre Ledru
1f07806bda
Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan
2016-01-22 16:58:49 +01:00
Masayuki Nakano
286093051c
Bug 1052947 Allow users to disable 4th button and/or 5th button of mouse on Windows r=smaug+jimm
2016-01-20 19:56:37 +09:00
Xidorn Quan
0578c6d592
Bug 1238536 part 1 - Do not automatically exit fullscreen if restored from minimized state. r=jimm
2016-01-20 09:56:52 +11:00
Nicholas Nethercote
da19ce6e70
Bug 1239589 - Change nsBaseWidget::mBounds to a LayoutDeviceIntRect. r=kats.
...
This patch removes dozens of ToUnknown/FromUnknown conversions and doesn't add
any new ones, which is nice. It also removes UntypedDevPixelsToCocoaPoints(),
which is no longer needed.
2015-11-22 20:32:29 -08:00
Bas Schouten
b40d718cf1
Bug 1239743: Do not allow windows to be resized to sizes above the maximum texture size. We don't know how to draw to these anyway. r=jimm
2016-01-14 21:17:13 +01:00
Ryan VanderMeulen
b967a91934
Bug 1239683 - Replace NS_UNCONSTRAINEDSIZE with NS_MAXSIZE in windows/nsWindow.cpp. r=mats
2016-01-14 14:46:29 -05:00
Ryan VanderMeulen
25dae1d7ee
Bug 1239683 - Add nsIFrame.h include to windows/nsWindow.cpp to fix --disable-accessibility bustage. r=jfkthame
2016-01-14 11:41:29 -05:00
Jonathan Kew
6b7eb7f804
Bug 890156 - patch 9 - Adjustment to non-client margin at top of maximized window on secondary display. r=emk
2015-12-03 16:50:59 +00:00
Jonathan Kew
b6e25dda33
Bug 890156 - patch 4 - Update widget/windows code for per-monitor DPI support. r=emk
2015-12-04 16:59:14 +00:00
Jonathan Kew
492e14ee2f
Bug 890156 - patch 3 - Remove gfxWindowsPlatform::GetDPIScale and replace it with methods in WinUtils, ready for per-monitor DPI support. r=emk
2015-12-02 15:09:29 +00:00
Jonathan Kew
d74daaf3aa
Bug 890156 - patch 0.2 - Remove the (unused) aRect parameter from nsBaseWidget::BaseCreate. r=kats
2016-01-13 07:32:55 +00:00
Jonathan Kew
441914872b
Bug 890156 - patch 0.1 - Switch from 'display pixels' to 'desktop pixels' terminology in widget code. r=kats
2015-11-25 19:11:58 +00:00
Kartikaya Gupta
94388c9868
Bug 1234838 - Update the windows backwards time skew fix code to use a PostMessage rather than a gecko NS_DispatchToMainThread. r=karlt
2016-01-12 11:53:55 -05:00
Nicholas Nethercote
f16ab43ac3
Bug 1209812 (part 6) - Convert all gfxImageFormat values to SurfaceFormat equivalents. r=jrmuizel.
...
This patch:
- Makes the following substitutions (plus necessary namespace qualifiers:
gfxImageFormat::ARGB32 --> SurfaceFormat::A8R8G8B8_UINT32
gfxImageFormat::RGB24 --> SurfaceFormat::X8R8G8B8_UINT32
gfxImageFormat::A8 --> SurfaceFormat::A8
gfxImageFormat::RGB16_565 --> SurfaceFormat::R5G6B5_UINT16
gfxImageFormat::Unknown --> SurfaceFormat::UNKNOWN
- Changes gfxImageFormat to be a typedef to gfx::SurfaceFormat. This will be
removed soon.
- Removes gfxCairoFormatToImageFormat() and gfxImageFormatToCairoFormat() and
replace calls to them with CairoFormatToGfxFormat() and
GfxFormatToCairoFormat().
- Removes ParamTraits<gfxImageFormat>.
- Add namespace qualifiers to SurfaceFormat instances where necessary.
2016-01-07 20:57:38 -08:00
Chris H-C
b8d35a910e
Bug 1235821 - Don't track mouseleave when capturing mouse. r=jimm
...
Since, in Windows, the tabbar overlays the "nonclient" area, TrackMouseEvent
will report a WM_MOUSELEAVE when you move your mouse when dragging a tab.
So, suspend mouseleave tracking when capturing and resume when we end capture.
A nice effect of TrackMouseEvent is that it'll immediately post a WM_MOUSELEAVE
if called when the mouse is outside the client area, so when capture ends, we
are either over the client area and tracking resumes or we aren't and we get
an immediate WM_MOUSELEAVE.
2016-01-06 10:48:00 -05:00
Makoto Kato
5e49cc7809
Bug 1208944 - Part 10-b. Call DefaultProc When CompositionEvent isn't handled correctly by plugin. r=masayuki
2015-12-29 22:57:38 +09:00
Makoto Kato
fca5f2b18c
Bug 1208944 - Part 10-a. Call CallWindowProc when WidgetPluginEvent isn't handled by plugin. r=masayuki
2015-12-29 22:57:38 +09:00
Makoto Kato
1c11b1945f
Bug 1208944 - Part 9. Hook IMM32 APIs on plugin process. r=masayuki
2015-12-29 22:57:38 +09:00
Sebastian Hengst
e8bb1c660e
Backed out 15 changesets (bug 1208944) for failing tests M(2,5) on OSX. r=backout
...
Backed out changeset c29de223de2f (bug 1208944)
Backed out changeset 3d99da255be1 (bug 1209844)
Backed out changeset 3c915942af38 (bug 1209844)
Backed out changeset 759b425b5503 (bug 1208944)
Backed out changeset bf73cf8f0fda (bug 1208944)
Backed out changeset 0e337d912b7d (bug 1208944)
Backed out changeset 31c47f2980b5 (bug 1208944)
Backed out changeset 3e0d70a6e809 (bug 1208944)
Backed out changeset 7685dcb63e5f (bug 1208944)
Backed out changeset 3c2b9372dd36 (bug 1208944)
Backed out changeset 18160d306493 (bug 1208944)
Backed out changeset 4974e397b655 (bug 1208944)
Backed out changeset fde7e439844d (bug 1208944)
Backed out changeset 4213a355fbdc (bug 1208944)
Backed out changeset 33cfddbbf5f2 (bug 1208944)
2015-12-29 17:42:02 +01:00
Makoto Kato
700c4607c4
Bug 1208944 - Part 10-b. Call DefaultProc When CompositionEvent isn't handled correctly by plugin. r=masayuki
2015-12-29 22:57:38 +09:00
Makoto Kato
4da7dd7612
Bug 1208944 - Part 10-a. Call CallWindowProc when WidgetPluginEvent isn't handled by plugin. r=masayuki
2015-12-29 22:57:38 +09:00
Makoto Kato
1ecd04e712
Bug 1208944 - Part 9. Hook IMM32 APIs on plugin process. r=masayuki
2015-12-29 22:57:38 +09:00
Shakthi Wijeratne
8ffaf10bac
Bug 1232669 - Fixed typo MOOUSEMOVE in nsWindow r=chutten
2015-12-20 20:09:32 -08:00
Kartikaya Gupta
1ed67b5b63
Bug 1222190 - Implement GetTimeAsyncForPossibleBackwardsSkew for windows to fix backwards skew on hibernation. r=birtles
2015-12-21 09:38:17 -05:00
Masayuki Nakano
4f019fe44a
Bug 1179632 part.2 WidgetCompositionEvent should store NativeIMEContext which caused the event and PuppetWidget should store it for GetNativeIMEContext() r=smaug, sr=smaug
2015-12-11 15:15:57 +09:00
Masayuki Nakano
21a40a0391
Bug 1179632 part.1 native IME context should not be stored in InputContext but should be able to retrieve with nsIWidget::GetNativeData() r=smaug
2015-12-11 15:15:57 +09:00
Nicholas Nethercote
ae857e0e63
Bug 1229665 - Convert widget clip regions to LayoutDevicePixels. r=botond.
2015-12-02 14:32:55 -08:00
Nicholas Nethercote
14171842ac
Bug 1229237 (part 5) - Make Update{Opaque,WindowDragging}Region() take a LayoutDeviceIntRegion. r=botond.
2015-11-25 21:42:59 -08:00
Nicholas Nethercote
451bb9fef8
Bug 1229237 (part 4) - Make ThemeGeometry::mRect a LayoutDeviceIntRect. r=botond.
2015-11-22 20:32:29 -08:00
Nicholas Nethercote
6f043f6b6e
Bug 1229237 (part 3) - Make nsIWidget::Invalidate() take a LayoutDeviceIntRect. r=botond.
2015-11-16 21:18:31 -08:00
Nicholas Nethercote
8da819977a
Bug 1229237 (part 1) - Make nsIWidget::{Create,CreateChildren}() take a LayoutDeviceIntRect. r=botond.
2015-11-16 00:35:18 -08:00
Nicholas Nethercote
b3312ed385
Bug 1228125 (part 1) - Remove nsIWidget::GetBoundsUntyped(). r=botond.
...
This requires adding a new overloading of LayoutDevicePixel::ToAppUnits and a
new PixelCastJustification: LayoutDeviceIsParentLayerForRCDRSF.
2015-11-25 20:32:47 -08:00
Chris H-C
fdd7e32ba8
Bug 506815 - Replace MouseTrailer with TrackMouseEvent. r=jimm
...
MouseTrailer, using a 200ms timer, was used to track whether a pointer was
still present over a window.
Windows has, since Windows 2000, offered to do this for us via an API called
TrackMouseEvent. (It'll also give us hover timings and non-client area versions
if we want)
I'm all for having Windows do the work for us, and it'll save us from waking up
the main thread five times a second.
2015-11-20 07:42:00 +01:00
Matt Brubeck
bb13ab3d32
Bug 431620 - Remove unused function GetToggledKeyState [r=roc]
2015-11-16 16:06:41 -08:00
Nicholas Nethercote
c265db3570
Bug 1224482 (part 3) - Replace GetClientOffsetUntyped() with GetClientOffset(). r=kats.
...
The patch also changes nsMenuPopupFrame::mLastClientOffset to
LayoutDeviceIntPoint.
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
3dfaddf77b
Bug 1224482 (part 1) - Tweak typed/untyped versions of Get{,Client,Screen}Bounds(). r=kats.
...
In nsIWidget, GetBoundsUntyped(), GetClientBoundsUntyped() and
GetScreenBoundsUntyped() are currently the primary implementations, and the
untyped versions are defined on top of them. This patch flips that around.
2015-11-12 16:04:52 -08:00
Nicholas Nethercote
1a5af22d9a
Bug 1224403 (part 9) - Remove GetRestoredBoundsUntyped(). r=kats.
...
The typed version can be used everywhere without difficulty.
2015-11-12 05:43:01 -08:00
Nicholas Nethercote
76cc8f39f7
Bug 1224403 (part 5) - Make OnDefaultButtonLoaded() return/take a LayoutDeviceIntMargin. r=kats.
2015-11-12 04:34:29 -08:00
Nicholas Nethercote
d8b6eda36b
Bug 1224403 (part 4) - Make {Get,Set}NonClientMargins() return/take a LayoutDeviceIntMargin. r=kats.
...
This required adding {To,From}UnknownMargin().
2015-11-11 23:05:04 -08:00
Nicholas Nethercote
ecf3a02b22
Bug 1224403 (part 2) - Split GetClientOffset() into typed and untyped versions. r=kats.
2015-11-11 19:56:06 -08:00
Nicholas Nethercote
6b72094044
Bug 1224403 (part 1) - Make Configuration::mBounds a LayoutDeviceIntRect. r=kats.
2015-11-10 16:27:26 -08:00
Botond Ballo
60a5318264
Bug 1222661 - Replace FromUntyped(obj) calls with FromUnknown*(obj). r=nical
2015-11-09 18:22:25 -05:00
Nicholas Nethercote
c3c2a5bf71
Bug 1223310 (part 2) - Use LayoutDeviceIntRect for bounds-related functions in nsIWidget. r=kats.
...
The patch renames the existing functions (GetBounds(), GetClientBounds(), etc)
by adding an |Untyped| suffix. It then adds typed equivalents, and uses those
typed equivalents in all the call sites where it's easy to do so. The trickier
remaining call sites are converted to use the Untyped-suffix version.
2015-11-09 21:37:32 -08:00