Kyle Huey
7579799b01
Bug 1266595: Replace Chromium Task with Runnable. r=froydnj
2016-04-27 17:06:05 -07:00
Masayuki Nakano
b332dc9ff4
Bug 1257759 part.5 PluginInstanceChild should post received native key event to chrome process if the key combination may be a shortcut key r=jimm
...
When PluginInstanceChild receives native key events, it should post the events to the chrome process first for checking if the key combination is reserved. However, posting all key events to the chrome process may make damage to the performance of text input. Therefore, this patch starts to post a key event whose key combination may be a shortcut key. However, for avoiding to shuffle the event order, it posts following key events until all posted key events are handled by the chrome process.
For receiving response from widget, this patch defines nsIKeyEventInPluginCallback. It's specified by nsIWidget::OnWindowedPluginKeyEvent() for ensuring the caller will receive the reply. Basically, the caller of nsIWidget::OnWindowedPluginKeyEvent() should reply to the child process. However, if the widget is a PuppetWidget, it cannot return the result synchronously. Therefore, PuppetWidget::OnWindowedPluginKeyEvent() returns NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY and stores the callback to mKeyEventInPluginCallbacks. Then, TabParent::HandledWindowedPluginKeyEvent() will call PuppetWidget::HandledWindowedPluginKeyEvent().
MozReview-Commit-ID: G6brOU26NwQ
--HG--
extra : rebase_source : 8140456de278956d2d594e85c7b397ae366b4962
2016-04-19 20:09:37 +09:00
Kartikaya Gupta
71e578529e
Bug 1264161 - Ensure we null out APZ pointers to the widget when it gets destroyed. r=botond
...
MozReview-Commit-ID: HccKXqU3Z6H
2016-04-22 16:01:30 -04:00
Carsten "Tomcat" Book
777dd1d6c4
Backed out changeset b8372d58243b (bug 1264365) for android test bustage on a CLOSED TREE
...
--HG--
extra : amend_source : 25183f01d96a63610848e641da2d44e55be86478
2016-04-21 14:06:56 +02:00
Nicolas Silva
43e7522b88
Bug 1264365 - Disable hardware acceleration for small popup widgets. r=dvander
2016-04-21 12:20:31 +02:00
Jonathan Watt
12618ee44a
Bug 1265953, part 3 - Convert more widget code from nsAutoPtr to UniquePtr. r=mstange
2016-04-19 23:29:16 +01:00
Botond Ballo
9ccd2b5e76
Bug 1260018
- Route drag events to APZ, so it can accurately detect the end of a drag. r=kats
2016-04-18 14:24:28 -04:00
Masayuki Nakano
cbe8f5268a
Bug 1259656 part.1 Rename WidgetEvent::refPoint to WidgetEvent::mRefPoint r=smaug
...
MozReview-Commit-ID: ESWM5ZyBpSR
--HG--
extra : rebase_source : c5e1e3f60bcdde2a7f6c399e72430b29a3e552cd
2016-04-18 23:09:02 +09:00
Kartikaya Gupta
fbb1abf68d
Bug 1263200 - Reset the APZ pointer in the base widget to null if the compositor creation fails. r=mstange
...
MozReview-Commit-ID: LH26TsWYrVx
--HG--
extra : rebase_source : 8606a8e52c38601a1725bf03a2b49c72631c2570
2016-04-15 09:07:14 -04:00
Kartikaya Gupta
f72cd76655
Bug 1250505 - Convert SynthesizeNativeTouchPoint and SynthesizeNativeTouchTap to take a LayoutDeviceIntPoint instead of a ScreenPoint. r=njn
...
MozReview-Commit-ID: EybGq9b1B8Z
--HG--
extra : rebase_source : defc16fc066a3a40480fa4c94f3a742a267344a8
2016-04-15 06:39:36 -04:00
David Anderson
ef94ddb6f5
Remove drawWidgetAsOnScreen. (bug 1264393, r=mattwoodrow, webidl r=khuey)
...
--HG--
extra : rebase_source : c885b1db5ede6caa8b1e141d6d76769bac82b16c
2016-04-13 19:24:42 -04:00
Nicolas Silva
3aa33acdb7
Bug 1215265 - Shut PCompositorBridge down properly. r=sotaro
2015-11-24 14:50:51 +13:00
Nathan Froyd
392bfacb03
Bug 1261818 - don't pass nsAutoCStrings into nsBaseWidget debugging methods; r=karlt
...
Passing raw character pointers works just fine.
2016-03-31 14:42:13 -04:00
Felipe Gomes
6fae6b4557
Bug 1260190 - Disable e10s for accessibility users on OS X. r=jimm
...
MozReview-Commit-ID: 35KZiKcSFqL
--HG--
extra : rebase_source : 090237eb0d6e6c6912b39ba71e8b3f6ffe31f56c
2016-04-01 15:54:33 -03:00
Sotaro Ikeda
0dcd939cf9
Bug 1259541 - Reduce clearing backbuffer in nsBaseWidget::CreateBackBufferDrawTarget() r=mattwoodrow
2016-04-04 18:25:04 -07:00
Bill McCloskey
19aec8471c
Bug 1174461 - [e10s] Return a cached result from SendGetNativePluginPort (r=jimm) a=kwierso
...
MozReview-Commit-ID: FyeWtg0Py5p
--HG--
extra : source : 0f2e90feea3b779e6b8cc8ca572c6313e1d0995e
2016-03-11 20:25:59 -08:00
Sotaro Ikeda
ccef41ec11
Bug 1254897 - Recycle back buffer in BasicCompositor r=jrmuizel
2016-03-23 21:41:43 -07:00
Sotaro Ikeda
a8248d2037
Bug 1258094 - Use SurfaceFormat::B8G8R8A8 as back buffer surface r=jrmuizel
2016-03-22 17:30:52 -07:00
David Anderson
f3dc22db8d
Rename PCompositor to PCompositorBridge. (bug 1258479 part 2, r=mattwoodrow)
...
--HG--
rename : gfx/layers/ipc/CompositorChild.cpp => gfx/layers/ipc/CompositorBridgeChild.cpp
rename : gfx/layers/ipc/CompositorChild.h => gfx/layers/ipc/CompositorBridgeChild.h
rename : gfx/layers/ipc/CompositorParent.cpp => gfx/layers/ipc/CompositorBridgeParent.cpp
rename : gfx/layers/ipc/CompositorParent.h => gfx/layers/ipc/CompositorBridgeParent.h
2016-03-22 14:08:38 -04:00
Nicolas Silva
bd7973ab2d
Bug 1256693 - ISurfaceAllocator cleanup. r=sotaro
2016-03-17 14:58:58 +01:00
Sotaro Ikeda
47242038f0
Bug 1255303 - Use SurfaceFormat::B8G8R8X8 as back buffer if possible r=jrmuizel
2016-03-16 18:30:41 -07:00
Masayuki Nakano
e65433cc66
Bug 1137572 part.3 Use pseudo IME context when TextEventDispatcher has input transaction which is not for native event handler r=smaug
2016-03-16 13:47:47 +09:00
Masayuki Nakano
3a5c26cf72
Bug 1137572 part.2 Add nsIWidget::GetNativeTextEventDispatcherListener() for TextEventDispatcher::NotifyIME() r=smaug, sr=smaug
2016-03-16 13:47:47 +09:00
Kartikaya Gupta
bc8c21c555
Bug 1242690 - Squash together DispatchAPZAwareEvent and DispatchInputEvent. r=dvander
...
MozReview-Commit-ID: 2cou0cK4Yw8
2016-03-10 18:25:48 -05:00
Kartikaya Gupta
8792f6fbea
Bug 1242690 - Ensure that mouse events have the callback transform applied. r=botond
...
MozReview-Commit-ID: 9V7xXPT8WHk
2016-03-10 18:25:48 -05:00
David Anderson
c00e9a5d93
Handle device resets by recreating the compositor, rather than the compositor IPDL stack. (bug 1245765 part 7, r=mattwoodrow)
2016-02-29 01:53:15 -05:00
Kartikaya Gupta
6f5c11bbbf
Back out 3 csets from bug 1242690 for causing bug 1244549. r=backout
...
--HG--
extra : commitid : G7hFhHC4YDt
2016-01-31 14:44:58 -05:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Kartikaya Gupta
a5ffd45fae
Bug 1242690 - Squash together DispatchAPZAwareEvent and DispatchInputEvent. r=dvander
...
--HG--
extra : commitid : D6XEv20670v
2016-01-29 16:31:15 -05:00
Kartikaya Gupta
eec655d1f0
Bug 1242690 - Ensure that mouse events have the callback transform applied. r=botond
...
--HG--
extra : commitid : IXh9rbTOf5R
2016-01-29 16:31:15 -05:00
Masayuki Nakano
05ae69e6a5
Bug 1242331 part.4 Add TextChangeDataBase::mIncludingChangesWithoutComposition r=smaug
2016-01-28 13:28:54 +09:00
Masayuki Nakano
1e9d12bfdb
Bug 1242331 part.3 Rename TextChangeDataBase::mOccurredDuringComposition to mIncludingChangesDuringComposition r=smaug
2016-01-28 13:28:53 +09:00
Masayuki Nakano
26c28dca6c
Bug 1242331 part.2 Rename TextChangeDataBase::mCausedByComposition to mCausedOnlyByComposition r=smaug
2016-01-28 13:28:53 +09:00
Nicholas Nethercote
7d6edf2c51
Bug 1239864 (part 10) - Use the new rect iterators in view/ and widget/. r=roc.
...
--HG--
extra : rebase_source : 3d1c6ff6a1a146bd74ce57e09146bba7ea075232
2016-01-18 17:20:59 -08:00
Masayuki Nakano
367ad6230a
Bug 1153156 part.1 Move nsBaseWidget::OverrideSystemMouseScrollSpeed() to WidgetWheelEvent r=smaug, sr=smaug
2016-01-27 15:09:13 +09:00
Nicholas Nethercote
6a194c8cf8
Bug 1239864 (part 1) - Add new, nicer rect-iterators for nsRegion and nsIntRegion. r=roc.
...
This requires renaming the existing nsIntRegion::RectIterator as
nsIntRegion::OldRectIterator to make way for the new nsIntRegion::RectIterator.
This doesn't require many knock-on changes because most existing uses of
that type use the nsIntRegionRectIterator typedef.
--HG--
extra : rebase_source : 16c79610ae20820ead6aa63cbe214e4e4b3a9fab
2016-01-14 18:36:11 -08:00
Randall Barker
45a15ccb02
Bug 1231517 - part 3, Add ZoomToRect function to nsIWidget classes r=kats
2016-01-20 16:24:59 -08:00
Nicholas Nethercote
76dfc05b83
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.
--HG--
extra : rebase_source : 81288126b582402408518aecfc304bc128e05d15
2015-11-22 20:32:29 -08:00
Jonathan Kew
61bb2f1169
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
e404911268
Bug 890156 - patch 1 - Add nsIWidget::GetDesktopToDeviceScale() method. r=emk
2015-12-04 16:58:05 +00:00
Jonathan Kew
3d48351585
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
df4ffa594d
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
Jim Mathies
ed1f13f41c
Bug 1234210 - Restrict updates for accessibility.lastLoadDate to shutdown. r=trevor
...
--HG--
extra : commitid : BneOTRmsSpt
2015-12-21 08:54:06 -06:00
Jim Mathies
0fd0d13368
Bug 1198459 - Update telemetry data based on the use of the forced enable pref. r=felipe
...
--HG--
extra : transplant_source : q%EC%82gwe%B9%84%BD%14%97%20%F9x%CAK%96%7FE%C6
2015-12-10 17:11:03 -05:00
Jim Mathies
25edd04661
Bug 1198459 - Add support for disabling e10s if a11y was run in the previous session, or run in a session over the previous week. r=felipe
...
--HG--
extra : transplant_source : %3CH%D86a%91%C5%3B%82%86%23dHZ%24%D7%0D%0B%3D%8F
2015-12-10 14:28:33 -05:00
Masayuki Nakano
da7a2f4f8d
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
Carsten "Tomcat" Book
7265490919
Backed out changeset 4b1d470d9f98 (bug 1198459)
2015-12-10 11:14:15 +01:00
Jim Mathies
cecee8b5fa
Bug 1198459 - Add support for disabling e10s if a11y was run in the previous session, or run in a session over the previous week. r=felipe
...
--HG--
extra : transplant_source : %3B_OS%DB%83%3E%8D%B9%A4h%19%90%5C%12/%23%A3%21c
2015-12-09 08:35:06 -05:00
Nicholas Nethercote
53b8d741ea
Bug 1230047 (part 1) - Make SynthesizeNativeTouch{Point,Tap}() take ScreenIntPoints. r=kats.
...
--HG--
extra : rebase_source : f9a4490edf840b0b506d33076d1b4738bb705fd5
2015-12-02 21:45:38 -08:00
Nicholas Nethercote
5a37352d4a
Bug 1229665 - Convert widget clip regions to LayoutDevicePixels. r=botond.
...
--HG--
extra : rebase_source : 315ac98884f84f3b5d53f156f3e02ddde3a57dbc
2015-12-02 14:32:55 -08:00
Nicholas Nethercote
90bbac13cc
Bug 1229237 (part 3) - Make nsIWidget::Invalidate() take a LayoutDeviceIntRect. r=botond.
...
--HG--
extra : rebase_source : 1afe44a5ab2a3d5478010fc23ba1891ab297bde6
2015-11-16 21:18:31 -08:00
Nicholas Nethercote
1fb25d8609
Bug 1229237 (part 1) - Make nsIWidget::{Create,CreateChildren}() take a LayoutDeviceIntRect. r=botond.
...
--HG--
extra : rebase_source : 08407e76083534ad39dd34d2535ec09c95e506db
2015-11-16 00:35:18 -08:00
Kartikaya Gupta
cbc69d4846
Bug 1229393 - Ensure that all the touch points from the original touch go to APZCCallbackHelper::SendSetTargetAPZCNotification. r=botond
2015-12-01 15:54:17 -05:00
Nicholas Nethercote
52b3d826da
Bug 1225007 (part 1, attempt 3) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
...
--HG--
extra : rebase_source : e4b3bb36c18822557f7724a58979eddd9d8cac62
2015-11-19 14:10:38 +11:00
Wes Kocher
023e779c11
Backed out changeset 7b113a6167e9 (bug 1215265) for mass bustage CLOSED TREE
...
--HG--
extra : commitid : 4fRgovywnch
extra : histedit_source : 18da44a556f563d9aabadd24ed7780e9b29771bf
2015-11-22 23:02:18 -08:00
Robert O'Callahan
c5bea366b2
Bug 1215265. Don't leak CompositorChild in content processes. r=nical
...
This makes the shutdown sequence of CrossProcessCompositorParent
work very much like the shutdown sequence of CompositorParent:
the child does SendStop(); the parent's RecvStop does some cleanup
and then queues a DeferredDestroy task; DeferredDestroy releases
the parent, destroying it; IPDL sends a message to destroy the child.
--HG--
extra : commitid : BSzF9OvSEK9
extra : rebase_source : 2c4ebbadb7064289b032da06cfbd17a3fd2f6ed2
2015-11-18 13:39:47 +13:00
Phil Ringnalda
538ef0460d
Merge m-c to m-i
2015-11-19 21:08:34 -08:00
Phil Ringnalda
87802cdbad
Backed out 2 changesets (bug 1225007) for frequent OS X "Shouldn't return empty rect" assertion failures, a=backout
...
Backed out changeset c5b352c74b35 (bug 1225007)
Backed out changeset 8a513c70ce7c (bug 1225007)
2015-11-19 20:55:26 -08:00
Nicholas Nethercote
ce671f3678
Bug 1225007 (part 1, attempt 2) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
...
--HG--
extra : rebase_source : ea132cb4a6eda3553682114f3a1a280acfaf0aa3
2015-11-19 14:10:38 +11:00
Botond Ballo
65d984ff6f
Bug 1221371 - Remove unnecessary explicit copies of nsTArray. r=billm
...
--HG--
extra : source : e3ade121fe3a26db1e65cd6b91de29dfe8cc5a61
extra : intermediate-source : a09da6e0b017448d6e2b85eb4a6c08dba51999c7
2015-11-18 13:48:12 -05:00
Randall Barker
4fafcaab6f
Bug 1223946 - Part 2: Ensure wheel event from nsDOMWindowUtil is dispatched on correct thread. r=kats
...
--HG--
extra : commitid : ELvlq969M1f
2015-11-18 19:33:00 -05:00
Nicholas Nethercote
ab634dbeaf
Bug 1186795
(part 1) - Replace nsBaseHashtable::EnumerateRead() calls in widget/ with iterators. r=roc.
2015-11-17 18:18:09 -08:00
Nicholas Nethercote
26b0d282a5
Backout 52ba24123046 and 66768d6a50fa (bug 1225007) for causing lots of test assertions on Mac. CLOSED TREE
2015-11-17 17:02:39 -08:00
Nicholas Nethercote
eb12a384c0
Bug 1225007 (part 1) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
...
--HG--
extra : rebase_source : ad3466d05e476ebf65affdde3fca52494e1327cb
2015-11-15 21:37:52 -08:00
Nicholas Nethercote
1dc3cd94f1
Bug 1224482 (part 7) - Make GetScaledScreenBounds() return a CSSIntRect. r=kats.
...
Also changes mOriginalBounds to a CSSIntRect*.
--HG--
extra : rebase_source : 4580d2c5266c6d88a7114d03b974cb9358d8051d
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
f38ebf7649
Bug 1224482 (part 3) - Replace GetClientOffsetUntyped() with GetClientOffset(). r=kats.
...
The patch also changes nsMenuPopupFrame::mLastClientOffset to
LayoutDeviceIntPoint.
--HG--
extra : rebase_source : d7c0784efd332e382db3f2857c8f43eabc1c807c
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
369f54f3a3
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.
--HG--
extra : rebase_source : 15b2f08f90bf4d1e209c6cb885f6a6e3b8db6708
2015-11-12 16:04:52 -08:00
Robert O'Callahan
7739604da7
Bug 1222092
. Don't let sFocusedIMEWidget keep an nsIWidget alive during shutdown. r=masayuki
...
--HG--
extra : commitid : GsPzx7tAfKb
extra : rebase_source : e202fd334b43956966daa1c7e9297d12c822dfd4
2015-11-13 17:05:54 +13:00
Nicholas Nethercote
9c6cbed1d0
Bug 1224403 (part 9) - Remove GetRestoredBoundsUntyped(). r=kats.
...
The typed version can be used everywhere without difficulty.
--HG--
extra : rebase_source : 841d7202126e8be16f47ed2c14c4ec20fe101b28
2015-11-12 05:43:01 -08:00
Nicholas Nethercote
e2fe66176b
Bug 1224403 (part 4) - Make {Get,Set}NonClientMargins() return/take a LayoutDeviceIntMargin. r=kats.
...
This required adding {To,From}UnknownMargin().
--HG--
extra : rebase_source : de7e8f56604825bcc1babe5e05a8f8623a402cad
2015-11-11 23:05:04 -08:00
Nicholas Nethercote
7922110bde
Bug 1224403 (part 2) - Split GetClientOffset() into typed and untyped versions. r=kats.
...
--HG--
extra : rebase_source : 5197f42325d36313ad8c6178baaabcf6f7df532c
2015-11-11 19:56:06 -08:00
Nicholas Nethercote
ad0dd8414a
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.
--HG--
extra : rebase_source : 6bfb15bfc4698e2eba7d4db55497299d3dffcd51
2015-11-09 21:37:32 -08:00
Bill McCloskey
f8aa3d2562
Bug 1221371 - Switch chromium IPC code to use mozilla::Tuple (r=jld,cpearce,kats)
2015-11-09 10:21:11 -08:00
Nathan Froyd
e255b900f5
Bug 1220392 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in widget/; r=roc
2015-10-30 14:35:28 -04:00
Kartikaya Gupta
b4cf5cc4aa
Bug 1219898 - Remove use of gPreventMouseEvents in APZ event state-tracking code. r=botond
...
--HG--
extra : commitid : 3raJl95nr6q
2015-10-30 22:22:28 -04:00
Benoit Girard
698006ddf9
Bug 1211612 - Add DragInputBlock for async scrollbars. r=kats
...
--HG--
extra : commitid : Grx9aF2UvH2
extra : rebase_source : ea2601a2a3ac2870383fa86d8e7bd90342424ce1
2015-10-26 16:06:49 -04:00
James Willcox
6ab6121caa
Bug 1218991 - Save initial zoom constraints to be used once compositor is created r=kats
2015-10-28 14:10:30 -05:00
Masayuki Nakano
35aa5312ba
Bug 1184890 part.1 SelectionChangeDataBase and TextChangeDataBase should have a flag which indicates whether the change occurred during composition or not r=smaug
2015-10-27 07:21:37 +09:00
Makoto Kato
26c8790fb2
Bug 978679. Implement touch events for GTK3. r=karlt
...
--HG--
extra : commitid : 7Sm7XcTb8Do
extra : rebase_source : c10ad90f03b90eb34349edc80be110b90cc2a663
2015-04-30 08:29:34 +12:00
Carsten "Tomcat" Book
81454198ef
Backed out changeset 2f909d41108b (bug 978679) for bustage on a CLOSED TREE
2015-10-19 13:22:55 +02:00
Makato Kato
5a68a1b8d5
Bug 978679 - Implement touch events for GTK3. r=karlt
...
--HG--
extra : commitid : 2tbZZf41zmN
extra : rebase_source : d861252c9bf78b6ffd68dd2c7f14fbf4ef5afdf1
2015-10-19 23:04:52 +13:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd
583afa0965
Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
...
This commit was generated using the following script, executed at the
top level of a typical source code checkout.
# Don't modify select files in mfbt/ because it's not worth trying to
# tease out the dependencies currently.
#
# Don't modify anything in media/gmp-clearkey/0.1/ because those files
# use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
grep -v 'mfbt/RefPtr.h' | \
grep -v 'mfbt/nsRefPtr.h' | \
grep -v 'mfbt/RefCounted.h' | \
grep -v 'media/gmp-clearkey/0.1/' | \
xargs perl -p -i -e '
s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#; # handle strange #includes
'
# |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'
# RefPtr.h used |byRef| for dealing with COM-style outparams.
# nsRefPtr.h uses |getter_AddRefs|.
# Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Benoit Girard
60376c4a70
Bug 1199885 - Part 12: Add StartScrollbarDrag IPC message. r=kats
...
--HG--
extra : commitid : 87IsjW2NpRX
2015-09-28 17:00:25 -04:00
David Anderson
8c32d3122a
Allow top-level window changes to the remembered compositor type. (bug 1211109 part 3, r=mattwoodrow)
2015-10-05 23:39:28 -07:00
Nathan Froyd
3a70fcff87
Bug 1210912 - fix widget leak in LookupRegisteredPluginWindow; r=roc
...
nsRefPtrHashtable::Get follows XPCOM outparam rules, so it addrefs its
argument prior to returning it. LookupRegisteredPluginWindow, however,
doesn't know anything about the additional reference, and neither does
anything else that calls it (which is, fortunately, not that much code).
So every widget returned by this function will leak.
To fix this, we use nsRefPtrHashtable::GetWeak, which doesn't addref its
argument, but merely returns the raw pointer, leaving the hashtable
responsible for the owning reference.
2015-10-02 22:00:56 -04:00
Nicolas Silva
9d2f48b66c
Bug 1156182 - Prevent widgets from creating a LayerManager during shutdown. r=sotaro
2015-09-15 17:58:06 +02:00
Masayuki Nakano
7a48a6f2ab
Bug 895274 part.241 Rename NS_TOUCH_START to eTouchStart r=smaug
2015-09-15 00:14:34 +09:00
Masayuki Nakano
7928f48bc1
Bug 895274 part.232 Rename NS_EDITOR_INPUT to eEditorInput r=smaug
2015-09-15 00:14:33 +09:00
Botond Ballo
b979ad25d3
Bug 1202312 - Use mozilla::Function for the ContentReceivedInputBlock callback. r=kats
...
--HG--
extra : source : d0d8d51c89955d70c72591b424e18790973e8805
2015-09-11 12:52:43 -04:00
Botond Ballo
976c25b63c
Bug 1202312 - Use mozilla::Function for the SetAllowedTouchBehavior callback. r=kats
...
--HG--
extra : source : 168244f8869806e0fb6b318a938e46b706972f94
2015-09-11 12:27:49 -04:00
Masayuki Nakano
2f31fd71b0
Bug 895274 part.176 Rename NS_AFTER_SCRIPT_EXECUTE to eAfterScriptExecute r=smaug
2015-09-11 01:59:54 +09:00
Masayuki Nakano
12680954ca
Bug 895274 part.175 Rename NS_BEFORE_SCRIPT_EXECUTE to eBeforeScriptExecute r=smaug
2015-09-11 01:59:53 +09:00
Masayuki Nakano
3efcbf8648
Bug 895274 part.92 Rename NS_XUL_COMMAND_UPDATE to eXULCommandUpdate r=smaug
2015-09-04 19:54:12 +09:00
Masayuki Nakano
be8fa51fa8
Bug 895274 part.91 Rename NS_XUL_BROADCAST to eXULBroadcast r=smaug
2015-09-04 19:54:12 +09:00
Jim Mathies
416c99cb91
Bug 1137944 - Simplify the api associated with hiding e10s plugin widgets. r=roc
2015-09-03 10:01:33 -05:00
Masayuki Nakano
d194119036
Bug 895274 part.85 Rename NS_DRAGDROP_GESTURE to eLegacyDragGesture r=smaug
2015-09-02 15:08:03 +09:00
Masayuki Nakano
3394edcb4a
Bug 895274 part.83 Rename NS_DRAGDROP_EXIT to eDragExit r=smaug
2015-09-02 15:08:02 +09:00
Masayuki Nakano
a07c726a8f
Bug 895274 part.82 Rename NS_DRAGDROP_ENTER to eDragEnter r=smaug
2015-09-02 15:08:02 +09:00
Masayuki Nakano
811d0fac7e
Bug 895274 part.81 Rename NS_DRAGDROP_OVER to eDragOver r=smaug
2015-09-02 15:08:02 +09:00
Masayuki Nakano
7b7a44a5ac
Bug 895274 part.77 Rename NS_DRAGDROP_DROP to eDrop r=smaug
2015-09-02 15:08:01 +09:00
Masayuki Nakano
35e18152d5
Bug 895274 part.70 Rename NS_BLUR_CONTENT to eBlur r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
cc5db3b160
Bug 895274 part.69 Rename NS_FOCUS_CONTENT to eFocus r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
2586c79eb1
Bug 895274 part.66 Rename NS_FORM_SELECTED to eFormSelect r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
8fa33d4666
Bug 895274 part.65 Rename NS_FORM_CHANGE to eFormChange r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
5bb3e1799f
Bug 895274 part.64 Rename NS_FORM_RESET to eFormReset r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
167dc4aade
Bug 895274 part.63 Rename NS_FORM_SUBMIT to eFormSubmit r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
e1d00d44c8
Bug 895274 part.61 Rename NS_LOAD to eLoad r=smaug
2015-09-02 15:07:59 +09:00
Masayuki Nakano
6421cfec57
Bug 895274 part.60 Rename NS_PAGE_UNLOAD to eUnload r=smaug
2015-09-02 15:07:59 +09:00
Masayuki Nakano
462a8e0e63
Bug 895274 part.59 Rename NS_HASHCHANGE to eHashChange r=smaug
2015-09-02 15:07:59 +09:00
Masayuki Nakano
5d7682dc01
Bug 895274 part.58 Rename NS_IMAGE_ABORT to eImageAbort r=smaug
2015-09-02 15:07:59 +09:00
Masayuki Nakano
b102d7ecce
Bug 895274 part.57 Rename NS_LOAD_ERROR to eLoadError r=smaug
2015-09-02 15:07:59 +09:00
Masayuki Nakano
b854290d21
Bug 895274 part.56 Rename NS_POPSTATE to ePopState r=smaug
2015-09-02 15:07:59 +09:00
Masayuki Nakano
ee375dfbcc
Bug 895274 part.54 Rename NS_READYSTATECHANGE to eReadyStateChange r=smaug
2015-09-02 15:07:58 +09:00
Markus Stange
da1faad800
Bug 1016035 - Add nsIWidget::ReportSwipeStart and call it after processing wheel events that can trigger swipes. r=kats
...
--HG--
extra : commitid : 7uuuyRZdrT5
extra : rebase_source : 063bdfde71bc50831f28e7ab48d868670ba5bfdc
2015-08-28 01:10:48 -04:00
Xidorn Quan
f46a93871a
Bug 1196163 part 1 - Use nsSizeMode instead of int32_t for nsIWidget::{SizeMode,SetSizeMode}. r=roc
...
--HG--
extra : source : cf438b9cb26ae512f792f075e4e22537ad6a38a7
2015-08-29 11:12:41 +10:00
Masayuki Nakano
a516285180
Bug 895274 part.31 Rename NS_MOUSE_CLICK to eMouseClick r=smaug
2015-08-29 08:58:32 +09:00
Masayuki Nakano
b9439c75d9
Bug 895274 part.30 Rename NS_MOUSE_DOUBLECLICK to eMouseDoubleClick r=smaug
2015-08-29 08:58:31 +09:00
Masayuki Nakano
bd4bf17fbd
Bug 895274 part.29 Rename NS_MOUSE_EXIT_WIDGET to eMouseExitFromWidget r=smaug
2015-08-29 08:58:31 +09:00
Masayuki Nakano
9895f90eca
Bug 895274 part.28 Rename NS_MOUSE_ENTER_WIDGET to eMouseEnterIntoWidget r=smaug
2015-08-29 08:58:31 +09:00
Masayuki Nakano
db00b74a82
Bug 895274 part.27 Rename NS_MOUSE_BUTTON_DOWN to eMouseDown r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
30fdd39afb
Bug 895274 part.26 Rename NS_MOUSE_BUTTON_UP to eMouseUp r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
717c415187
Bug 895274 part.25 Rename NS_MOUSE_MOVE to eMouseMove r=smaug
2015-08-29 08:58:29 +09:00
Masayuki Nakano
ba5b3f3fe6
Bug 895274 part.11 Rename NS_KEY_DOWN to eKeyDown r=smaug
2015-08-29 08:58:27 +09:00
Masayuki Nakano
28c9f34179
Bug 895274 part.10 Rename NS_KEY_UP to eKeyUp r=smaug
2015-08-29 08:58:27 +09:00
Masayuki Nakano
d311a11cc1
Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug
2015-08-29 08:58:27 +09:00
Markus Stange
316505e2bd
Bug 1193062 - Only send a content response for wheel events that have also been processed by APZ. r=kats
...
--HG--
extra : commitid : FOt4Lwsp6xZ
extra : rebase_source : 1bea318e6274626c935e8a70317a412ac1f9037d
extra : histedit_source : c3cf20adf2358fb0e7a1295d624c3819fe8cd046
2015-08-12 15:15:49 -04:00
Mason Chang
696de26763
Bug 1197201. Delete hardware vsync and vsync compositor prefs. r=kats
2015-08-24 11:27:23 -04:00
Masayuki Nakano
66f2c27305
Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug
2015-08-22 10:34:51 +09:00
Masayuki Nakano
a8be9560f4
Bug 1189396 part.3 Make IMENotification::SelectionChangeData useful even outside of IMENotification r=smaug
2015-08-22 01:43:41 +09:00
Randall Barker
cba97f4dd0
Bug 1188225 - Implement ChromeProcessController::HandleDoubleTap. r=botond
...
--HG--
extra : rebase_source : 305df059dcdaa23962a0864036e7fd8b179c1c42
2015-08-13 18:26:00 -04:00
Masayuki Nakano
61074e4e20
Bug 1191213 nsBaseWidget::NotifyWindowMoved() shouldn't notify IME when native IME handler doesn't have focus r=m_kato
2015-08-06 15:57:58 +09:00
George Wright
f12a9fe441
Bug 1157941 - If the current PresShell is suppressed, paint the old one if it is available r=tn,Enn
2015-07-21 21:09:02 -04:00
David Anderson
ddaede9c8e
Add compositor, layers, and rendering info to nsIGfxInfo. (bug 1179051 part 5, r=mattwoodrow)
2015-07-19 14:50:35 -07:00
Ryan VanderMeulen
734c9eb563
Backed out changesets 90446493d402 and c4f4027f9f3a (bug 1179051) for crashes.
2015-07-19 22:39:20 -04:00
David Anderson
28d2dc3e58
Add compositor, layers, and rendering info to nsIGfxInfo. (bug 1179051 part 5, r=mattwoodrow)
2015-07-19 14:50:35 -07:00
Nicolas Silva
8bf8e8aa3f
Bug 1180688 - Reset the appropriate widget states if creating a compositor fails. r=mstange
2015-07-19 21:50:17 +02:00
David Anderson
65475c97d0
Move compositor backend decisions into gfxPlatform. (bug 1179051 part 3, r=mattwoodrow)
...
--HG--
extra : rebase_source : 43cdb0e1b5d464f8d6a0cc7a0b2e36d1b34e8595
2015-07-16 15:18:05 -07:00
Jeff Muizelaar
7bc6837af6
Bug 1178426. Add GfxInfo to ServicesList.h. r=nfroyd
...
--HG--
extra : rebase_source : b18fb78fa6b7d86fbb9496861938bfde21b3c6e6
2015-07-08 16:51:09 -04:00
Nicolas Silva
ee25273473
Bug 1180688 - Backout previous fix to try another solution. r=me
2015-07-13 16:46:44 +02:00
Xidorn Quan
68dd069739
Bug 1160014 part 2 - Move some procedures in nsBaseWidget::MakeFullScreen to individual methods. r=roc
...
The two new methods will be reused by code in later patches.
--HG--
extra : source : 3387749f3d18e5c8dc6a6b0dab74903cff7ea57f
2015-07-13 20:44:36 +10:00
Xidorn Quan
de00198603
Bug 1160014 part 1 - Implement common part of fullscreen transition. r=roc,smaug,dao
...
This patch implements the code which is shared by all platforms for
fullscreen transition.
It adds two prefs for the duration of fullscreen transition. They can
also be used to completely suppress the transition.
In addition, this patch uses the newly added prefs to suppress the
transition in all tests which use the DOM fullscreen.
--HG--
extra : source : 54a8b3b7351af89049825598891fd3a1f98d18af
2015-07-13 20:44:36 +10:00
Nigel Babu
64f3815bd7
Backed out 4 changesets (bug 1160014) for M2 bustages CLOSED TREE
...
Backed out changeset 87b00a9dac95 (bug 1160014)
Backed out changeset d4fa5c794e08 (bug 1160014)
Backed out changeset fca26897d534 (bug 1160014)
Backed out changeset b0b7f4f09ed2 (bug 1160014)
2015-07-11 10:49:25 +05:30
Masayuki Nakano
09355c0e38
Bug 1176954 part.7 IMENotification::TextChangeData should have a method to merge with another instance and IMENotification::MergeWith() should use it r=smaug
2015-07-11 10:53:56 +09:00
Xidorn Quan
c9dc71d8c7
Bug 1160014 part 2 - Move some procedures in nsBaseWidget::MakeFullScreen to individual methods. r=roc
...
The two new methods will be reused by code in later patches.
--HG--
extra : source : 45aad13e8c5f7e4745344e61ba58b0acdfb0d054
2015-07-11 10:08:59 +10:00
Xidorn Quan
09d4d46e81
Bug 1160014 part 1 - Implement common part of fullscreen transition. r=roc,smaug,dao
...
This patch implements the code which is shared by all platforms for
fullscreen transition.
It adds two prefs for the duration of fullscreen transition. They can
also be used to completely suppress the transition.
In addition, this patch uses the newly added prefs to suppress the
transition in all tests which use the DOM fullscreen.
--HG--
extra : source : a64f71ea9ceb37acbbfc4e4023880fb244daa738
2015-07-11 10:08:59 +10:00
Nicolas Silva
f5c8feb72b
Bug 1180688 - Disable the basic compositor backend on Mac. r=mstange
2015-07-09 12:07:51 +02:00
Nathan Froyd
974d8120f2
Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
...
This conversion was done with the script:
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
-e 's/TemporaryRef</already_AddRefed</g'
Manual fixups were performed in the following instances:
- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
into already_AddRefed.
- The following files had explicit Move() calls added to make up for the lack
of a copy constructor on already_AddRefed:
dom/base/ImageEncoder.cpp
dom/media/MediaTaskQueue.{h,cpp}
dom/media/webaudio/PannerNode.cpp
- A redundant overload for MediaTaskQueue::Dispatch was deleted.
- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.
- Comments, using declarations, and forward declarations relating to
TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
already_AddRefed.
2015-06-17 10:00:52 -04:00
Jim Mathies
a0edcafb63
Bug 1152326 - When processing plugin updates only update the visibility of the set of plugins associated with the same compositor. r=aklotz
2015-06-17 15:39:09 -05:00
Kartikaya Gupta
d216c84c8b
Bug 1055557 - Ensure the right presShell resolution is used in ApplyCallbackTransform for fennec-apz scenarios. r=botond
2015-06-17 12:34:42 -04:00