Masayuki Nakano
ac12e32d97
Bug 1254755 part.3 Rename WidgetKeyboardEvent::alternativeCharCodes to WidgetKeyboardEvent::mAlternativeCharCodes r=smaug
...
MozReview-Commit-ID: 26K8ZxzavfB
2016-05-12 17:57:21 +09:00
Masayuki Nakano
f75bc688b3
Bug 1254755 part.2 Rename WidgetKeyboardEvent::charCode to WidgetKeyboardEvent::mCharCode r=smaug
...
And mCharCode shouldn't be compared with NS_VK_*, nsIDOMKeyEvent::DOM_VK_*. Additionally, when it's compared with a character constant, cast isn't necessary.
MozReview-Commit-ID: JMT614copjG
2016-05-13 16:06:18 +09:00
Makoto Kato
e541c5c874
Bug 1262363 - Call [NSTextInputContext handleEvent] for mouse support on IME. r=masayuki
...
Some IME handles mouse event by handleEvent method of NSTextInputcontext. So we should call it on mouse event for IME
MozReview-Commit-ID: 6lyXCpOJ3yr
2016-04-27 21:14:43 +09:00
Masayuki Nakano
0d76420890
Bug 1137563 part.4 Implement IMEInputHandler::WillDispatchKeyboardEvent() r=m_kato
2016-03-16 13:47:50 +09:00
Masayuki Nakano
a97de814b8
Bug 1137563 part.2 IMEInputHandler should use TextEventDispatcher r=m_kato
2016-03-16 13:47:50 +09:00
Masayuki Nakano
2e4eb786ce
Bug 1137563 part.1 Implement TextEventDispatcherListener in TextEventInputHandlerBase and IMEInputHandler r=m_kato
2016-03-16 13:47:49 +09:00
Nathan Froyd
4e6d8f6705
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
2015-10-18 01:24:48 -04:00
Masayuki Nakano
289c32c551
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
2e47c96f1e
Bug 1205945 part.4 Move the code of OnEndIMEComposition() into DispatchCompositionCommitEvent() r=smichaud
2015-09-19 11:01:57 +09:00
Masayuki Nakano
c92e880b2f
Bug 1205945 part.3 Move the code of OnUpdateIMEComposition() into DispatchCompositionChangeEvent() r=smichaud
2015-09-19 11:01:57 +09:00
Masayuki Nakano
a43c6a1b0a
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
2af2364222
Bug 1205945 part.1 Remove unnecessary member of IMEInputHandler, mLastDispatchedCompositionString r=smichaud
2015-09-19 11:01:57 +09:00
Masayuki Nakano
e0cc731301
Bug 895274 part.145 Rename NS_SELECTION_SET to eSetSelection r=smaug
2015-09-08 23:33:38 +09:00
Steven Michaud
87f0065fb3
Bug 1148196 - Crashes at -[ChildView keyDown:] related to secure input. r=masayuki
2015-09-01 13:56:23 -05:00
Masayuki Nakano
fc091c723d
Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug
2015-08-29 08:58:27 +09:00
Makoto Kato
f39e5acde8
Bug 1167105 - Part 2. Improve OnSelectionChange implementation. r=masayuki
2015-07-21 21:47:54 +09:00
Alexandru Tifrea
bb499bf79a
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
52feb02fd4
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
48a8665cd5
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
2786a8c5d1
Bug 1051842 - Backout 7310c42d346e (bug 1051842) due to bug 1122208
2015-01-20 14:04:17 -08:00
David Parks
eec87e5f3a
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
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
Masayuki Nakano
2d06ec005a
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
26f562530f
Bug 960871 part.9 Rename methods and classes which handled WidgetTextEvent r=smaug
2014-10-07 19:01:49 +09:00
Masayuki Nakano
2512321856
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
8374df7bb3
Bug 1061001 - Fix more bad implicit constructors in widget; r=roc
2014-08-31 23:33:13 -04:00
Masayuki Nakano
850d4a4088
Bug 865649 part.3 Set KeyboardEvent.code value on Mac r=smaug+smichaud
2014-05-25 11:08:59 +09:00
Masayuki Nakano
18820082fa
Bug 974318 part.6 Use WidgetTextEvent::mRanges on Mac r=smichaud
2014-03-04 22:48:27 +09:00
Ehsan Akhgari
68bfe70f09
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
dcda337a5e
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
e8a10f0c1c
Bug 946044 Handle context menu key of PC keyboard on Mac r=smichaud
2013-12-06 12:16:55 +09:00
Masayuki Nakano
8c4ece5434
Bug 920377 part.30 Get rid of nsGUIEvent r=roc
2013-10-02 12:46:03 +09:00
Masayuki Nakano
120418da29
Bug 920377 part.23 Get rid of nsQueryContentEvent r=roc
2013-10-01 16:23:00 +09:00
Masayuki Nakano
9bb146c7b5
Bug 920377 part.22 Get rid of nsCompositionEvent r=roc
2013-10-01 16:23:00 +09:00
Masayuki Nakano
ea028aeada
Bug 920377 part.20 Get rid of nsTextRange r=roc
2013-10-01 16:22:59 +09:00
Masayuki Nakano
36c92a3fec
Bug 920377 part.17 Get rid of nsKeyEvent r=roc
2013-10-01 16:22:58 +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
Masayuki Nakano
81f22a33ff
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
4de14939b1
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
7e1c83a278
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
8a1edb7c99
Bug 282097 - Part 7: Simulate native events for testing. r=masayuki
2013-07-10 09:12:40 -05:00
Masayuki Nakano
377e5a76cd
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
849dbc05a6
Bug 875674 part.7 Implement setMarkedText:selectedRange:replacementRange: of NSTextInputClient r=smichaud
2013-07-11 16:46:36 +09:00
Masayuki Nakano
f0639ba842
Bug 875674 part.6 Implement insertText:replacementRange: of NSTextInputClient r=smichaud
2013-07-11 16:46:35 +09:00
Masayuki Nakano
f07ecb6cac
Bug 875674 part.5 Implement attributedSubstringForProposedRange:actualRange: of NSTextInputClient r=roc+smichaud
2013-07-11 16:46:35 +09:00
Masayuki Nakano
0d3d549b9f
Bug 875674 part.4 Implement firstRectForCharacterRange:actualRange: of NSTextInputClient r=roc+smichaud
2013-07-11 16:46:35 +09:00
Masayuki Nakano
cb619ade9b
Bug 875674 part.3 Implement windowLevel of NSTextInputClient r=smichaud
2013-07-11 16:46:35 +09:00
Masayuki Nakano
29fe3d3207
Bug 875674 part.2 Cache selection for improving the performance r=smichaud
2013-07-11 16:46:35 +09:00
Masayuki Nakano
2d321ecce9
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
6c0e9912ab
Bug 842927 part.5 Implement D3E KeyboardEvent.key on Cocoa r=smaug+smichaud
2013-04-24 12:49:47 +09:00