Markus Stange
d375b0cd62
Bug 1403989 - Automatically treat black menu icons as templates, so that they get drawn inverted in hovered menuitems. r=jrmuizel,spohl
...
MozReview-Commit-ID: Bn69Ij0BfRa
2018-04-16 15:23:23 -04:00
Milan Sreckovic
1a108fed6c
Bug 1423559: Use BaseRect access methods instead of member variables in widget/ r=mstange
...
MozReview-Commit-ID: AqnztoUbsmk
2018-01-10 11:14:16 -05:00
Brendan Dahl
120ed7ccce
Bug 1409580 - Support edit command mapping in headless MacOS. r=masayuki
...
Extracts out the creation of an NSEvent from a WidgetKeyEvent in
TextInputHandler.mm into generic helper method. The helper is used by headless
to create a fake NSEvent to then build edit commands from key events.
Fixes:
- test_selectevents.html
- test_bug756984.html
- test_movement_by_characters.html
- test_movement_by_words.html
- test_backspace_vs.html
- test_bug1094000.html
- ... many key event tests
MozReview-Commit-ID: 1Jur5MHOrkp
2017-10-13 17:40:27 -07:00
Markus Stange
0d32225513
Bug 1313977 - Don't round fractional mouse coordinates up, because doing so might push them outside the window. r=kats
...
On my machine, if I have my mouse cursor positioned flush against the right
edge of my screen (which is 1440x900@2x), locationInWindow has an x coordinate
of 1439.99609375. This value was rounded up to an integer screen coordinate of
2880, and for that coordinate we don't find a target APZC, and consequently
refuse to scroll.
MozReview-Commit-ID: CJic4g3Y6Ag
2017-04-15 11:02:09 -04:00
Masayuki Nakano
2d4bfac20e
Bug 1256562 part.1 Implement nsCocoaUtils::GetEventTimeStamp() to convert from timeStamp of NSEvent to TimeStamp r=birtles,mstange
...
This patch implements nsCocoaUtils::GetEventTimeStamp() which hides how to get TimeStamp from timeStamp of NSEvent from other developers.
Different from Windows and GTK, we don't need to use SystemTimeConverter and implement CurrentTimeGetter class because the internal value of the macOS implementation of TimeStamp is based on mach_absolute_time(), which measures "ticks" since boot. Event timestamps are NSTimeIntervals (seconds) since boot. So the two time representations already have the same base; we only need to convert seconds into ticks.
MozReview-Commit-ID: LvioyJOM7S9
2016-12-26 12:23:37 +09:00
bb791bab05
Bug 1279017 - Remove code specific to 10.6-10.8 in widget/cocoa. r=mstange.
2016-06-10 23:30:25 +02:00
Phil Ringnalda
e13ead1604
Back out e9a46afd9375 (bug 1279017) for 10.10 reftest-e10s failures in async scrolling tests
...
CLOSED TREE
2016-06-08 20:34:36 -07:00
6cac107b8d
Bug 1279017 - Remove code specific to 10.6-10.8 in widget/cocoa. r=mstange.
2016-06-08 22:02:22 +02:00
Makoto Kato
9f331c065f
Bug 1177943 - Part 1. Add LookUpDictionary method to widget. r=masayuki
...
I would like to add new method to look up dictionary.
MozReview-Commit-ID: Jqk0OelezVF
2016-04-04 17:14:36 +09:00
Jonathan Watt
820350a9a0
Bug 1271867 - Update our usage of NSWindow::convertBaseToScreen/convertScreenToBase to modern ApplicationKit API. r=mstange
2016-05-05 12:27:13 +01: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
Jonathan Kew
03a61f133d
Bug 1239007 - Replace nsIntRect by strongly-typed rects in a couple of nsCocoaUtils functions. r=mstange
2016-01-13 07:32:55 +00:00
Nicholas Nethercote
9c21d0dbd3
Bug 1225007 (part 2, attempt 3) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
2015-11-19 17:34:20 +11:00
Nicholas Nethercote
ce94aae3ae
Bug 1225007 (part 1, attempt 3) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
2015-11-19 14:10:38 +11:00
Phil Ringnalda
040c117af2
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
ba0180e46a
Bug 1225007 (part 2, attempt 2) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
2015-11-19 17:34:20 +11:00
Nicholas Nethercote
5db293bd80
Bug 1225007 (part 1, attempt 2) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
2015-11-19 14:10:38 +11:00
Nicholas Nethercote
117b39c2e9
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
5006e264f5
Bug 1225007 (part 2) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
2015-11-16 19:40:53 -08:00
Nicholas Nethercote
0a8fdd9562
Bug 1225007 (part 1) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
2015-11-15 21:37:52 -08:00
Markus Stange
5875b6fc60
Bug 1193062 - Make nsChildView send PanGestureInput events into APZ. r=kats, r=smichaud
2015-08-23 19:50:29 -04:00
Markus Stange
f72bb3f708
Bug 1193062 - Add nsCocoaUtils::ModifiersForEvent. r=smichaud
2015-07-21 18:41:08 -04:00
Xidorn Quan
768db1b33d
Bug 1188322 - Always hide menubar as well as dock for fullscreen on OS X whatever the screen is. r=mstange
2015-08-07 13:49:12 +10:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
David Zbarsky
fde118220b
Bug 1125040: Use LayoutDeviceIntPoint for synthesizing native events on widgets r=botond
2015-02-15 13:52:28 -05:00
Josh Aas
974e19a35e
Bug 1092630: Get rid of native widgets for OS X NPAPI plugins, make things work much better under e10s. Patch by Josh Aas, Markus Stange, Steven Michaud, David Parks. r=smichaud/jst/josh (more reviews pending)
2014-12-11 08:44:07 -06:00
Ehsan Akhgari
cc65741ccb
Bug 1055519 - Fix some more bad implicit constructors in layout and widget; r=roc
2014-08-20 00:58:22 -04:00
Markus Stange
fab98265c5
Bug 944938 - Add a 10.6 compatibility wrapper for hasPreciseScrollingDeltas and scrollingDeltaX/Y. r=smichaud
2014-06-07 00:49:59 +02:00
Markus Stange
2296735f10
Bug 944938 - Add a 10.6 compatibility wrapper for event phases. r=smichaud
2014-06-07 00:49:59 +02:00
Jonathan Watt
ed4678c80d
Bug 950371 - Convert the Cocoa widget consumers of imgIContainer::GetFrame to act on a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow,mstange. Relanding after accidental backout during m-c merge in ce1a691650ef.
2014-03-08 01:21:24 +00:00
Ed Morley
4eb6813bfd
Backed out changeset a2b62ced704d (bug 950371)
2014-03-07 17:53:05 +00:00
Jonathan Watt
d3292d688c
Bug 950371 - Convert the Cocoa widget consumers of imgIContainer::GetFrame to act on a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow,mstange. Relanding after accidental backout during m-c merge in ce1a691650ef.
2014-02-21 19:07:42 +00:00
Ryan VanderMeulen
90aed6ca58
Backed out changeset a00bd379adb2 (bug 950371) for breaking OSX non-unified builds.
2014-02-21 14:58:34 -05:00
Jonathan Watt
302e3781df
Bug 950371 - Convert the Cocoa widget consumers of imgIContainer::GetFrame to act on a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow,mstange
2014-02-21 14:50:36 +00:00
Carsten "Tomcat" Book
994ed2258b
Backed out changeset 05a5f08f1278 (bug 950371) for OS X mochitest bustage on a CLOSED TREE
2014-02-21 11:44:52 +01:00
Jonathan Watt
798236e16d
Bug 950371 - Convert the Cocoa widget consumers of imgIContainer::GetFrame to act on a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow
2014-02-21 08:42:12 +00:00
Evan Wallace
8324beaa25
Bug 888689 - Render SVG cursors correctly on retina displays. r=mstange
2013-12-04 17:46:19 -05:00
Masayuki Nakano
65a801dd59
Bug 920377 part.26 Get rid of nsInputEvent r=roc
2013-10-01 16:23:02 +09:00
Masayuki Nakano
acfcbdba3b
Bug 920377 part.2 Get rid of nsPluginEvent r=roc
2013-09-27 15:20:54 +09:00
Masayuki Nakano
c97e23707c
Bug 912956 part.2 Rename nsEvent.h to mozilla/EventForwards.h and sort out it r=roc
2013-09-24 19:04:14 +09:00
J. Ryan Stinnett
4981fe9ce1
Bug 282097 - Part 6: Add Gecko key to Cocoa char conversion. r=masayuki
2013-07-10 09:11:07 -05:00
J. Ryan Stinnett
fb2a14ef0d
Bug 282097 - Part 3: Add key bindings recorder to nsCocoaUtils. r=masayuki, r=smichaud
2013-07-10 09:07:39 -05:00
Mats Palmgren
d87341df89
Bug 786533 - On OSX, one of the system header files (exception_defines.h) defines 'try' and 'catch' as macros which breaks @try/@catch. We need to #undef those before using nsObjCExceptions.h. r=ehsan
2013-01-15 13:22:03 +01:00
Josh Aas
c7e8d524c1
Bug 801601: Remove code specific to OS X 10.5 in Cocoa widgets. r=smichaud
2012-11-09 05:22:36 -05:00
Masayuki Nakano
b47e19282e
Bug 795230 Use ASCII capable keyboard layout for computing charCode if current input source is an IME mode and open r=smichaud
2012-10-16 10:43:50 +09:00
Jonathan Kew
2eb99fd900
bug 674373 pt 6 - support HiDPI display in Cocoa widget code. r=roc,smichaud
2012-09-29 12:36:09 +01:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Masayuki Nakano
c729208939
Bug 753256 Use [NSEvent modifierFlags] or convert the result of GetCurrentKeyModifiers() to cocoa flags at getting current modifier state r=smichaud
2012-05-16 09:28:48 +09:00
Masayuki Nakano
87530f9870
Bug 630811 part.6 Support new modifiers on all events derived from nsInputEvent on Cocoa r=smichaud
2012-04-25 12:00:02 +09:00