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
Masayuki Nakano
b839a18a25
Bug 1205945 part.5 Emulate mSelectedRange at dispatching compositionchange or compositioncommit event until OnSelectionChange() is called r=smichaud
2015-09-19 11:01:57 +09:00
Masayuki Nakano
b6ccad8b3a
Bug 1205945 part.4 Move the code of OnEndIMEComposition() into DispatchCompositionCommitEvent() r=smichaud
2015-09-19 11:01:57 +09:00
Masayuki Nakano
1c6093a281
Bug 1205945 part.3 Move the code of OnUpdateIMEComposition() into DispatchCompositionChangeEvent() r=smichaud
2015-09-19 11:01:57 +09:00
Masayuki Nakano
15ec40f3ff
Bug 1205945 part.2 Add DispatchCompositionStartEvent() and move the code of OnStartIMEComposition() into it r=smichaud
2015-09-19 11:01:57 +09:00
Masayuki Nakano
fbc6a51594
Bug 1205945 part.1 Remove unnecessary member of IMEInputHandler, mLastDispatchedCompositionString r=smichaud
2015-09-19 11:01:57 +09:00
Masayuki Nakano
d177b04a17
Bug 895274 part.145 Rename NS_SELECTION_SET to eSetSelection r=smaug
2015-09-08 23:33:38 +09:00
Steven Michaud
4431c47e10
Bug 1148196 - Crashes at -[ChildView keyDown:] related to secure input. r=masayuki
2015-09-01 13:56:23 -05:00
Masayuki Nakano
d311a11cc1
Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug
2015-08-29 08:58:27 +09:00
Makoto Kato
f22b71f788
Bug 1167105 - Part 2. Improve OnSelectionChange implementation. r=masayuki
2015-07-21 21:47:54 +09:00
Alexandru Tifrea
750f1d8d1c
Bug 966395 - Correctly propagate the input language's direction on OSX. r=masayuki/mrbkap
...
Gtk patch written by mrbkap@mozilla.com , with r=roc
2015-04-10 15:18:05 -07:00
Jonathan Kew
3becdb3805
Bug 1076657 pt 3 - Support drawsVerticallyForCharacterAtIndex method in Cocoa childView and IME input handler. r=masayuki
2015-02-10 15:28:05 +00:00
David Parks
645064d99a
Bug 1051842 - Part 1 - [e10s] crash in -[ChildView keyDown:]. r=smichaud
...
Fix Cocoa window IME focus test to work even if window has not received
OSX main-window status.
2015-01-12 08:26:05 -08:00
Bill McCloskey
b9ede381a2
Bug 1051842 - Backout 7310c42d346e (bug 1051842) due to bug 1122208
2015-01-20 14:04:17 -08:00
David Parks
d01c3bcd0b
Bug 1051842 - Part 1 - [e10s] crash in -[ChildView keyDown:]. r=smichaud
...
Fix Cocoa window IME focus test to work even if window has not received
OSX main-window status.
2015-01-12 08:26:05 -08:00
Josh Aas
f9e3926e19
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
Masayuki Nakano
c89e5a665c
Bug 1077345 part.12 IMEInputHandler of Cocoa should use NS_COMPOSITION_COMMIT* event r=smichaud
2014-11-25 14:02:34 +09:00
Masayuki Nakano
d028544b2b
Bug 960871 part.9 Rename methods and classes which handled WidgetTextEvent r=smaug
2014-10-07 19:01:49 +09:00
Masayuki Nakano
09a5b86212
Bug 960871 part.4 Rename NS_TEXT_TEXT to NS_COMPOSITION_CHANGE and fix comments which mention text events r=smaug
2014-10-07 19:01:47 +09:00
Ehsan Akhgari
d65b8ee5d4
Bug 1061001 - Fix more bad implicit constructors in widget; r=roc
2014-08-31 23:33:13 -04:00
Masayuki Nakano
465b11e80f
Bug 865649 part.3 Set KeyboardEvent.code value on Mac r=smaug+smichaud
2014-05-25 11:08:59 +09:00
Masayuki Nakano
be8f51beba
Bug 974318 part.6 Use WidgetTextEvent::mRanges on Mac r=smichaud
2014-03-04 22:48:27 +09:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Masayuki Nakano
04cc04ac24
Bug 947115 All tests shouldn't use nsIDOMWindowUtils.sendNativeKeyEvent() directly. Use synthesizeNativeKey() instead. r=smaug
2013-12-18 16:02:46 +09:00
Masayuki Nakano
d7fcc64c1e
Bug 946044 Handle context menu key of PC keyboard on Mac r=smichaud
2013-12-06 12:16:55 +09:00
Masayuki Nakano
a4221a463f
Bug 920377 part.30 Get rid of nsGUIEvent r=roc
2013-10-02 12:46:03 +09:00
Masayuki Nakano
06d15e629f
Bug 920377 part.23 Get rid of nsQueryContentEvent r=roc
2013-10-01 16:23:00 +09:00
Masayuki Nakano
b809719e9d
Bug 920377 part.22 Get rid of nsCompositionEvent r=roc
2013-10-01 16:23:00 +09:00
Masayuki Nakano
0746fb9d0d
Bug 920377 part.20 Get rid of nsTextRange r=roc
2013-10-01 16:22:59 +09:00
Masayuki Nakano
3a0b655e5a
Bug 920377 part.17 Get rid of nsKeyEvent r=roc
2013-10-01 16:22:58 +09:00
Masayuki Nakano
0fbfe07d7e
Bug 912956 part.2 Rename nsEvent.h to mozilla/EventForwards.h and sort out it r=roc
...
--HG--
rename : widget/nsEvent.h => widget/EventForwards.h
2013-09-24 19:04:14 +09:00
Masayuki Nakano
e79ad519c7
Bug 892539 modifier flag database should be reset if we detect mismatch between the stored data and the latest information via key event r=smichaud
2013-08-29 13:26:43 +09:00
Masayuki Nakano
162b4fa956
Bug 501496 part.3 Don't dispatch keypress events if defaultPrevent() of the keydown event is called on Cocoa r=smaug+smichaud
2013-07-25 15:09:28 +09:00
Masayuki Nakano
659bbecf94
Bug 893973 Check if the keydown event received view actually has focus and separate the MOZ_CRASH() for each case r=smichaud
2013-07-17 11:08:44 +09:00
J. Ryan Stinnett
7c416da7e2
Bug 282097 - Part 7: Simulate native events for testing. r=masayuki
2013-07-10 09:12:40 -05:00
Masayuki Nakano
941229d8ad
Bug 875674 part.8 Notify IME of focus change in Gecko for resetting IME stored window level r=smichaud
2013-07-11 16:46:36 +09:00
Masayuki Nakano
1aa2e2af61
Bug 875674 part.7 Implement setMarkedText:selectedRange:replacementRange: of NSTextInputClient r=smichaud
2013-07-11 16:46:36 +09:00
Masayuki Nakano
0c7378b147
Bug 875674 part.6 Implement insertText:replacementRange: of NSTextInputClient r=smichaud
2013-07-11 16:46:35 +09:00
Masayuki Nakano
146b45259e
Bug 875674 part.5 Implement attributedSubstringForProposedRange:actualRange: of NSTextInputClient r=roc+smichaud
2013-07-11 16:46:35 +09:00
Masayuki Nakano
6ab28ab804
Bug 875674 part.4 Implement firstRectForCharacterRange:actualRange: of NSTextInputClient r=roc+smichaud
2013-07-11 16:46:35 +09:00
Masayuki Nakano
d42fbb85c7
Bug 875674 part.3 Implement windowLevel of NSTextInputClient r=smichaud
2013-07-11 16:46:35 +09:00
Masayuki Nakano
66dacba9e9
Bug 875674 part.2 Cache selection for improving the performance r=smichaud
2013-07-11 16:46:35 +09:00
Masayuki Nakano
f43eab8fd4
Bug 807893 part.2 Cocoa widget should manage secure input mode with input context at changing the context and changing focus r=smichaud
2013-05-25 01:27:52 +09:00
Masayuki Nakano
d1f3ea50ee
Bug 842927 part.5 Implement D3E KeyboardEvent.key on Cocoa r=smaug+smichaud
2013-04-24 12:49:47 +09:00
Masayuki Nakano
3e6bdd99b9
Bug 786956 Rewrite FSFlagsChanged handler r=smichaud
2012-10-19 10:17:07 +09:00
Masayuki Nakano
b3e881682d
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
Josh Aas
1f16e46c3e
Bug 598397: Remove support for Carbon NPAPI. r=smichaud
2012-10-15 08:38:34 -04:00
Ehsan Akhgari
e368dc9c85
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
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Masayuki Nakano
21af6ddaf0
Bug 775414 InitKeyEvent() should decide input string instead of InitKeyPressEvent() r=smichaud
2012-07-21 08:24:48 +09:00