Birunthan Mohanathas
9985829ecc
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02: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
Masayuki Nakano
888b2103ea
Bug 895274 part.194 Rename NS_COMPOSITION_COMMIT to eCompositionCommit r=smaug
2015-09-11 21:21:27 +09:00
Masayuki Nakano
ed4dac1ca6
Bug 895274 part.193 Rename NS_COMPOSITION_CHANGE to eCompositionChange r=smaug
2015-09-11 21:21:27 +09:00
Masayuki Nakano
1e538fa11e
Bug 895274 part.192 Rename NS_COMPOSITION_UPDATE to eCompositionUpdate r=smaug
2015-09-11 21:21:27 +09:00
Masayuki Nakano
ebdc7bd69b
Bug 895274 part.191 Rename NS_COMPOSITION_END to eCompositionEnd r=smaug
2015-09-11 21:21:27 +09:00
Masayuki Nakano
0f2bfad9b1
Bug 895274 part.190 Rename NS_COMPOSITION_START to eCompositionStart r=smaug
2015-09-11 21:21:27 +09:00
Masayuki Nakano
966f685af3
Bug 895274 part.188 Rename NS_COMPOSITION_COMMIT_AS_IS to eCompositionCommitAsIs r=smaug
2015-09-11 21:21:26 +09:00
Masayuki Nakano
a8fd5ffc76
Bug 895274 part.152 Rename NS_QUERY_SELECTED_TEXT to eQuerySelectedText r=smaug
2015-09-10 10:40:05 +09:00
Masayuki Nakano
94b05ec84b
Bug 1200980 part.4 nsPlaintextEditor should notify editor observers of the end of edit action when NS_COMPOSITION_CHANGE isn't followed by NS_COMPOSITION_END r=smaug
2015-09-08 12:54:14 +09:00
Masayuki Nakano
0d22745cda
Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug
2015-08-26 21:56:59 +09:00
Masayuki Nakano
66f2c27305
Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug
2015-08-22 10:34:51 +09:00
Aryeh Gregor
0ccef27b6a
Bug 1179451 - Part 1: Rewrite some ternary operators as if/else. r=froydnj
...
--HG--
extra : rebase_source : 161e415b6f518bf2b82e45b6f7f8d21298712d81
2015-08-13 15:22:48 +03:00
Masayuki Nakano
4d9802aec0
Bug 1176955 part.2 NOTIFY_IME_OF_SELECTION should have a flag which indicates if it's caused by a selection event r=smaug
2015-07-17 11:25:00 +09:00
Masayuki Nakano
6a5c380903
Bug 1176955 part.1 TextComposition should guarantee that WidgetSelectionEvent should be handled by same content as the target of composition events when there is a composition r=smaug
2015-07-17 11:25:00 +09:00
Masayuki Nakano
b577b3a7ed
Bug 1179122 TextComposition should manage a composition which is even in a child process r=smaug
2015-07-03 11:49:36 +09:00
Masayuki Nakano
0453e65380
Bug 1162818 part.1 nsEditor shouldn't release/forget mComposition becuase it should be handled by it after reframing r=ehsan
2015-06-05 02:06:09 +09:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Tooru Fujisawa
e108ae29ec
Bug 1158456 - Remove control characters from composition string, and add dom.compositionevent.allow_control_characters pref to control it. r=masayuki
2015-05-01 13:49:29 +09:00
Tooru Fujisawa
bfcb13b445
Bug 1125934 - Discard redundant NS_COMPOSITION_CHANGE event which is send just before NS_COMPOSITION_END on TSF. r=masayuki
2015-02-11 12:20:02 +09:00
Masayuki Nakano
dd277f3277
Bug 917322 part.7 TextEventDispatcher should manage if it has composition r=smaug
2015-01-28 15:27:31 +09:00
Masayuki Nakano
c207c66fed
Bug 1077345 part.6 Add NS_COMPOSITION event which automatically commits composition with its mData r=smaug
2014-11-25 14:02:32 +09:00
Masayuki Nakano
7c2cde510e
Bug 1077345 part.4 Add NS_COMPOSITION_COMMIT_AS_IS event which automatically commits composition with the last data r=smaug
2014-11-25 14:02:31 +09:00
Masayuki Nakano
9a6c0e03b6
Bug 1077345 part.3 Add WidgetCompositionEvent::CausesDOMTextEvent() and WidgetCompositionEvent::CausesDOMCompositionEndEvent() r=smaug
2014-11-25 14:02:30 +09:00
Masayuki Nakano
8dbdea703b
Bug 1077345 part.2 Add TextComposition::CloneAndDispatchAs() for dispatching WidgetCompositionEvent only whose message is different from original composition event r=smaug
2014-11-25 14:02:30 +09:00
Masayuki Nakano
e33c5a94b9
Bug 1077345 part.1 Add TextComposition::IsValidStateForComposition() for checking if it's safe to dispatch an event to the DOM tree r=smaug
2014-11-25 14:02:29 +09:00
Masayuki Nakano
2be456d529
Bug 960871 part.10 Some methods which took both WidgetCompositionEvent and WidgetTextEvent should take only WidgetCompositionEvent r=smaug
2014-10-07 19:01:49 +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
6072e74d01
Bug 960871 part.8 Rename variable names of NS_COMPOSITION_CHANGE event r=smaug
2014-10-07 19:01:49 +09:00
Masayuki Nakano
9011740f12
Bug 960871 part.6 Use WidgetCompositionEvent for NS_COMPOSITION_CHANGE instead of WidgetTextEvent r=smaug
2014-10-07 19:01:48 +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
Masayuki Nakano
aafe327f6d
Bug 960871 part.2 Rename WidgetCompositionEvent::data to WidgetCompositionEvent::mData r=smaug
2014-10-07 19:01:46 +09:00
Masayuki Nakano
ea79d5919e
Bug 960871 part.1 Rename WidgetTextEvent::theText to WidgetTextEvent::mData r=smaug
2014-10-07 19:01:46 +09:00
Masayuki Nakano
a1f5e6c914
Bug 975383 part.1 TextComposition should dispatch compositionupdate event automatically if text event changes composition string r=smaug
2014-10-03 15:33:47 +09:00
Masayuki Nakano
0cecd2284c
Bug 1065835 part.4 Destroy TextComposition instance after handling synthesized compositionend event when synthesized events for a request to commit or cancel is caused by PresShell discarding native compositionend event r=smaug
2014-09-26 09:05:12 +09:00
Masayuki Nakano
765c5c891b
Bug 1065835 part.3 TextComposition::RequetToCommit() should support to handle even if the composition is synthesized for test r=smaug
2014-09-26 09:05:12 +09:00
Masayuki Nakano
f9a08d093d
Bug 1065835 part.2 TextComposition should override commit string with the last data or empty string during requesting commit or canceling composition r=smaug
2014-09-26 09:05:12 +09:00
Masayuki Nakano
345fc83f18
Bug 1065835 part.1 Synthesize composition events for committing composition string if requesting to commit of IME isn't performed synchronously r=smaug
2014-09-26 09:05:11 +09:00
Masayuki Nakano
c3737e9c7f
Bug 1046101 part.7 Rename NS_TEXT_EVENT to eTextEventClass r=smaug
2014-08-04 14:28:48 +09:00
Masayuki Nakano
00f048e7cd
Bug 1046101 part.1 Rename nsEventStructType to mozilla::EventClassID r=smaug
2014-08-04 14:28:46 +09:00
Masayuki Nakano
a648e11112
Bug 990855 part.1 Export TextComposition.h as mozilla/TextComposition.h r=smaug
2014-04-03 13:18:37 +09:00
Masayuki Nakano
3234ceea19
Bug 983049 part.5 Rename nsEventDispatcher to mozilla::EventDispatcher r=smaug
...
--HG--
rename : dom/events/nsEventDispatcher.cpp => dom/events/EventDispatcher.cpp
rename : dom/events/nsEventDispatcher.h => dom/events/EventDispatcher.h
2014-03-18 13:48:21 +09:00
Masayuki Nakano
65cfda3094
Bug 983049 part.4 Rename nsDispatchingCallback to mozilla::EventDispatchingCallback r=smaug
2014-03-18 13:48:20 +09:00
Masayuki Nakano
7419257b87
Bug 981226 Rename nsContentEventHandler to mozilla::ContentEventHandler (and clean up it) r=smaug
...
--HG--
rename : dom/events/nsContentEventHandler.cpp => dom/events/ContentEventHandler.cpp
rename : dom/events/nsContentEventHandler.h => dom/events/ContentEventHandler.h
2014-03-11 14:08:02 +09:00
Masayuki Nakano
b51ee921de
Bug 978023 part.3 Rename nsIMEStateManager to mozilla::IMEStateManager r=smaug
...
--HG--
rename : dom/events/nsIMEStateManager.cpp => dom/events/IMEStateManager.cpp
rename : dom/events/nsIMEStateManager.h => dom/events/IMEStateManager.h
2014-03-08 10:20:07 +09:00
Masayuki Nakano
576bee785c
Bug 974318 part.10 Remove WidgetTextEvent::rangeCount and WidgetTextEvent::rangeArray r=smaug
2014-03-04 22:48:28 +09:00
Masayuki Nakano
59ea783e22
Bug 974318 part.2 TextComposition should store TextRangeArray at editor handling text event and nsEditor should refer it r=smaug+ehsan
2014-03-04 22:48:26 +09:00
Masayuki Nakano
d9fdd873cb
Bug 974318 part.1 Add WidgetTextEvent::mRanges which is an array class of TextRange r=smaug
2014-03-04 22:48:26 +09:00
Masayuki Nakano
4fac2c03ae
Bug 961704 part.2 Add an option to nsIMEUpdatePreference which prevents to be notified selection/text changes caused by composition r=smaug
2014-02-26 09:48:02 +09:00
Masayuki Nakano
3da1ca82da
Bug 975387 Notify TextComposition instance of that nsIMEStateManager stops managing it r=smaug, sec-a=abillings
2014-02-25 15:59:28 +09:00