Nicholas Nethercote
0f4ec1c554
Bug 1293596 (part 8) - Make nsIWidget::EnableDragDrop() infallible. r=jimm.
...
Its return value is only checked in one low-value assertion.
The patch also does the following.
- Removes the Android and GTK overloadings of EnableDragDrop(), which are
identical to the nsBaseWidget one.
- Streamlines the Windows implementation: fixes the indentation and takes
advantage of infallible |new|.
2016-08-22 09:16:50 +10:00
Nicholas Nethercote
ab7ae3b80d
Bug 1293596 (part 7) - Make nsIWidget::Destroy infallible. r=karlt.
2016-08-10 10:04:11 +10:00
Nicholas Nethercote
628ec722f3
Bug 1293596 (part 6) - Make nsIWidget::SetSizeMode() infallible. r=mstange,baku.
...
The only implementation of SetSizeMode() that can fail is the nsCocoaWindow
one, on an Objective C exception, which is unlikely and can be swallowed.
This allows some nsGlobalWindow functions to become infallible as well.
2016-08-22 09:15:49 +10:00
Nicholas Nethercote
c2cd6516c6
Bug 1293596 (part 5) - Tweak nsIWidget::MakeFullScreen{,WithNativeTransition}(). r=mstange.
...
They don't need to be NS_IMETHOD.
The patch also gives nsBaseWidget an InfallibleMakeFullScreen() function, which
avoids the need for some checks.
2016-08-19 09:27:28 +10:00
Nicholas Nethercote
f245c9eabc
Bug 1293596 (part 3) - Remove GetNonClientMargins. r=mstange.
...
It's dead code -- the only use is a recursive call within
nsWindow::GetNonClientMargins().
2016-08-19 09:03:13 +10:00
Nicholas Nethercote
8b8bd02a31
Bug 1293596 (part 2) - Rework nsIWidget bounds getters. r=mstange.
...
This patch makes GetBounds(), GetScreenBounds() and GetClientBounds() more
obviously infallible, like existing functions such as GetNaturalBounds() and
GetClientSize(). This results in clearer behaviour in nsCocoaWindow.mm if
Objective C exceptions occur. Along the way, the patch removes some useless
failure checks for these functions.
The patch also removes the NS_IMETHOD from GetRestoredBounds and makes that
function MOZ_MUST_USE.
2016-08-19 09:03:04 +10:00
Nicholas Nethercote
eb4f9a274e
Bug 1293603 (part 3) - Remove erroneous NS_METHOD uses in widget/. r=erahm.
...
All these occurrences are for methods declared with NS_IMETHOD, and so they
should be NS_IMETHODIMP instead of NS_METHOD.
2016-08-09 14:03:13 +10:00
Yura Zenevich
abb4eebf15
Bug 527003 - separating XPCOM parts from nsAccessibilityService. Removing a11y service in favour of using nsAccessibilityService directly. Adding support for a11y service shutdown. r=surkov
...
MozReview-Commit-ID: KKeywNi3fQb
2016-08-08 20:51:39 -04:00
Carsten "Tomcat" Book
52c300009e
Backed out changeset 02d76f158f3d (bug 1259571) for talos xperf regressions
2016-08-08 11:53:51 +02:00
Sotaro Ikeda
b1f37d42eb
Bug 1259571 - Try tearing-free drawing with GDI r=dvander,mattwoodrow
2016-08-07 23:54:12 -07:00
Kartikaya Gupta
86f137f6be
Bug 1289435 - Extract a helper function to dispatch MultiTouchInput to APZ if applicable and then to Gecko. r=mstange
...
This also modifies the windows widget code to use this new helper function, as
it avoids an unnecessary round-trip where a MultiTouchInput gets converted to
a WidgetTouchEvent (in nsWindow.cpp) and then back to a MultiTouchInput (in
APZCTreeManager.cpp)
MozReview-Commit-ID: 1WGbfINTW6c
2016-08-03 12:06:58 -04:00
Jeff Muizelaar
24788822e8
Bug 1289236. Remove ResizeTransparentWindow. r=dvander
...
We can just recreate the surface when needed.
2016-07-29 09:29:35 -04:00
David Anderson
8f1b55629b
Add DeviceManagerD3D11 as a wrapper around gfxWindowsPlatform. (bug 1282364 part 1, r=mattwoodrow)
2016-07-26 12:50:30 -07:00
David Anderson
90d4a57c72
Implement vsync notification for remote compositors. (bug 1285625 part 3, r=mchang)
2016-07-19 11:56:07 -07:00
Bob Owen
87003f6f32
Bug 1252877 Part 2: On Windows capture an image for windowed plugins to be displayed during APZ scroll. r=jimm, r=mattwoodrow
...
MozReview-Commit-ID: ElE0GD3tLah
2016-07-18 09:54:02 +01:00
Jonathan Kew
7112c7dae3
Bug 1270954 - When Win10 Anniversary Update APIs are available, enable automatic scaling of the non-client area when a window is on a secondary display with different DPI. r=emk, a=kwierso
2016-07-14 17:46:26 +01:00
Kartikaya Gupta
5f924577bb
Bug 1256339 - Fix up handling for touch-derived contextmenu events on desktop. r=mconley,jimm
...
This patch stops the widget code from passing along touch-derived contextmenu
events straight from Windows to Gecko, and instead lets the APZ gesture
detection code handle it. This allows the contextmenu event to be prevented
according to web standards, e.g. if the touchstart event is cancelled.
This changes to browser.js will affect both Linux and Windows, but the behaviour
implemented is in line with native Windows touch behaviour. We may want to
add an alternate codepath for Linux to better simulate "native" Linux behavior,
if there is such a thing for touch-derived contextmenu.
MozReview-Commit-ID: 18qzK15ic8E
2016-07-05 13:24:54 -04:00
Carsten "Tomcat" Book
dcf7915a78
Merge mozilla-central to autoland
2016-07-02 11:16:11 +02:00
David Anderson
add6c95120
Extract a delegate interface out of WinCompositorWidget. (bug 1281998 part 6, r=jimm)
2016-07-01 01:15:16 -07:00
David Anderson
c70cd6b6e2
Move CompositorWidget construction out of nsIWidget. (bug 1281998 part 5, r=jimm)
2016-07-01 01:15:16 -07:00
David Anderson
020480eae5
Move CompositorWidget ownership from nsWindow to CompositorSession. (bug 1281998 part 4, r=jimm)
2016-07-01 01:15:16 -07:00
David Anderson
19ade82818
Rename CompositorWidgetProxy files to CompositorWidget. (bug 1281998 part 2, r=jimm)
2016-07-01 01:15:16 -07:00
David Anderson
c3322e664b
Allow creating WinCompositorWidgetProxy without an nsWindow. (bug 1281998 part 1, r=jimm)
2016-07-01 01:15:15 -07:00
Bill McCloskey
48fe44d618
Bug 1282153 - Remove retaining outparam to GetLayerManager (r=dvander)
2016-06-30 14:30:30 -07:00
Carsten "Tomcat" Book
da443a18ab
Merge mozilla-central to autoland
2016-07-01 11:20:25 +02:00
Phil Ringnalda
89deea28e2
Back out 7 changesets (bug 1281998) for Windows Marionette crashes
...
Backed out changeset d806fac2c856 (bug 1281998)
Backed out changeset b8d4fedfd7eb (bug 1281998)
Backed out changeset a72929c0c3ec (bug 1281998)
Backed out changeset 74198f88fa37 (bug 1281998)
Backed out changeset 54a0e73f6906 (bug 1281998)
Backed out changeset 99d1da1293b7 (bug 1281998)
Backed out changeset a5a9585754b1 (bug 1281998)
2016-06-29 19:35:24 -07:00
David Anderson
eb66f8ed62
Extract a delegate interface out of WinCompositorWidget. (bug 1281998 part 6, r=jimm)
2016-06-29 16:47:23 -04:00
David Anderson
27793b9f88
Move CompositorWidget construction out of nsIWidget. (bug 1281998 part 5, r=jimm)
2016-06-29 16:47:22 -04:00
David Anderson
54d6f14645
Move CompositorWidget ownership from nsWindow to CompositorSession. (bug 1281998 part 4, r=jimm)
2016-06-29 16:47:22 -04:00
David Anderson
4a6d8ea9f0
Rename CompositorWidgetProxy files to CompositorWidget. (bug 1281998 part 2, r=jimm)
2016-06-29 16:47:22 -04:00
David Anderson
15be9e7cec
Allow creating WinCompositorWidgetProxy without an nsWindow. (bug 1281998 part 1, r=jimm)
2016-06-29 16:47:22 -04:00
eyim
9937bfdcb9
Bug 1277314 - Add ogl compositing feature in gfxplatform r=BenWa,dvander
...
MozReview-Commit-ID: HMfvXtKV0Yk
2016-06-20 12:29:47 -04:00
Jan Varga
e6e5ce2cf2
Bug 1246828 - Part 4: Rename profile-before-change2 to profile-before-change-qm and profile-before-change3 to profile-before-change-telemetry; r=asuth
2016-06-15 11:49:04 +01:00
Jan Varga
bf3158df91
Bug 1246828 - Part 1: Add an additional notification profile-before-change3 and update telemetry sending code to use it; r=asuth
2016-06-15 11:48:39 +01:00
Kartikaya Gupta
a9661c3844
Bug 1278268 - Ensure that no-op mousemove synthesizations on Windows still fire a mousemove event. r=jimm
...
MozReview-Commit-ID: EXZtvqy1BLu
2016-06-09 09:06:58 -04:00
Neil Deakin
43865e47a8
Bug 1174798, propagate keyboard indicator state down to child processes, r=smaug
2016-06-09 07:59:31 -04:00
Neil Deakin
e28f0cc7ec
Bug 1276120, hide popups when a parent window is being minimized, handles the case where the window is minimized via a keyboard shortcut, r=jmathies
2016-06-03 13:59:34 -04:00
Mason Chang
bd1e0556c4
Bug 1211647. Use ::ShowWindow instead of ::ShowWindowPos for toplevel windows widgets that can't take focus. r=jimm
2016-05-26 16:34:21 -07:00
David Anderson
2f136d2412
Hide top-level CompositorBridgeParents behind a new API. (bug 1272472 part 4, r=mattwoodrow,kats,gwagner)
2016-05-17 22:33:22 -07:00
kshitija
0f41e418d1
Bug 1259666 - Part 3- change displayPanFeedback to mDisplayPanFeedback - r=masayuki
...
MozReview-Commit-ID: LWOiakDEEx7
2016-05-14 18:03:50 -07:00
kshitija
c23b4d7abb
Bug 1259666 - Part 2 - Change panDirection to mPanDirection - r=masayuki
...
MozReview-Commit-ID: JVLB0Z6JUFc
2016-04-29 03:34:46 -07:00
Masayuki Nakano
94e8c148d6
Bug 1259661 part.9 Rename WidgetMouseEvent::clickCount to WidgetMouseEvent::mClickCount r=smaug
...
MozReview-Commit-ID: 5tC8UqcfLek
2016-05-10 23:29:14 +09:00
Masayuki Nakano
14247f7bba
Bug 1259661 part.6 Rename WidgetMouseEvent::exit to WidgetMouseEvent::mExitFrom r=smaug
...
MozReview-Commit-ID: FHUaUOE5eIB
2016-05-12 11:42:08 +09:00
Kyle Huey
b972c94d0f
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
David Anderson
5c97dfa1ca
Move transparency handling to WinCompositorWigetProxy. (bug 1265975 part 4, r=jimm)
2016-05-04 22:00:14 -07:00
David Anderson
0e3805c3bd
Move the WM_SETTEXT present lock to CompositorWidgetProxy. (bug 1265975 part 3, r=jimm)
2016-05-04 22:00:13 -07:00
David Anderson
26178bae1e
Add WinCompositorWidgetProxy. (bug 1265975 part 1, r=jimm)
2016-05-04 22:00:13 -07:00
Carsten "Tomcat" Book
aadd508ffe
Backed out changeset 85ce8cb0639a (bug 1268313)
2016-04-29 14:21:16 +02:00
David Anderson
d21a9823d4
Introduce gfxConfig, a manager for graphics feature settings. (bug 1254899 part 3, r=milan)
2016-04-28 21:52:54 -07:00
Kyle Huey
e62a0823c9
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00