Boris Zbarsky
87fdbf744c
Bug 1387143 part 23. Remove nsISelection collapse* methods. r=mats
2018-05-08 13:52:41 -04:00
Boris Zbarsky
599ef690cf
Bug 1455674 part 16. Remove most use of nsIDOMElement in dom. r=qdot
2018-04-26 23:37:34 -04:00
Boris Zbarsky
eb633469bd
Bug 1456588 part 2. Change nsIFocusManager::MoveFocus to take Element. r=enndeakin
2018-04-26 10:37:47 -04:00
Gijs Kruitbosch
b6b469004e
Bug 1446522 - don't return NS_ERROR_FAILURE for cut/copy/paste even when there's no selection, r=enndeakin+6102
...
MozReview-Commit-ID: AhToM4sAjJn
2018-03-26 20:18:05 +01:00
Narcis Beleuzu
233a0fa448
Backed out changeset baf5f1356969 (bug 1446522) for clipboard failures on /test_bug1012662_noeditor.html. CLOSED TREE
2018-03-28 14:25:57 +03:00
Gijs Kruitbosch
c85afd424c
Bug 1446522 - don't return NS_ERROR_FAILURE for cut/copy/paste even when there's no selection, r=enndeakin+6102
...
MozReview-Commit-ID: AhToM4sAjJn
2018-03-26 20:18:05 +01:00
Masayuki Nakano
95d5ffe90a
Bug 1448876 - Get rid of nsIClipboardDragDropHooks and nsIClipboardDragDropHookList interfaces r=bz
...
nsIClipboardDragDropHooks and nsIClipboardDragDropHookList allow XUL apps
to customize drag and drop operation and paste operation. However, this
feature was used only by ChatZilla and it doesn't work on Gecko anymore.
So, we can get rid of them from our tree.
MozReview-Commit-ID: Ibs3V1gI8Ry
2018-03-26 23:56:53 +09:00
Chris Peterson
677bf4030c
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
2017-11-05 19:37:28 -08:00
Jonathan Kew
b5aeae87e3
Bug 1424898 - patch 2 - De-virtualize nsIWordBreaker and rename to mozilla::intl::WordBreaker. r=m_kato
2017-12-13 22:17:38 -06:00
Nicholas Nethercote
b7346a7502
Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm.
...
These are all easy cases where an nsXPIDLCString local variable is set via
getter_Copies() and then is only used in ways that nsCStrings can also be used
(i.e. no null checks or implicit conversions to |char*|).
In every case the patch trivially replaces the nsXPIDLCString with an
nsCString. (Also, there are a couple of unused nsXPIDLCString variables that
the patch simply removes.)
2017-08-16 13:58:35 +10:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Ryan Hunt
4521af9a93
Bug 1351783 part 19 - Rename Keyboard.h to KeyboardMap.h. r=masayuki
...
This is a better name for the header that matches its main class.
MozReview-Commit-ID: KSt9LVT3yRR
2017-06-15 18:06:00 -04:00
Ryan Hunt
0140993fbc
Bug 1351783 part 3 - Add a KeyboardScrollAction type. r=kats,masayuki
...
The different types of keyboard scrolls are represented as command strings that
are dispatched to nsGlobalWindowCommands. This commit adds a class to represent
these command strings, along with a function to find the keyboard scroll action
corresponding to a command string.
MozReview-Commit-ID: 20vvYdzlYYT
2017-06-05 18:17:30 -05:00
David Major
ec201276bf
Bug 1335207 followup build fix on a CLOSED TREE
...
MozReview-Commit-ID: HPhI9ngjcSj
2017-02-01 16:09:28 +13:00
David Major
708b9668bf
Bug 1335207: Add constexpr to data tables under dom/ for better codegen on Windows. r=ehsan
...
MozReview-Commit-ID: 6tEIqjq4Guo
2017-02-01 15:42:33 +13:00
Masayuki Nakano
09b74b02de
Bug 1278014 part.5 Rename SelectionType::SELECTION_NORMAL to SelectionType::eNormal r=smaug
...
MozReview-Commit-ID: AAdxTTKEvrk
2016-06-09 18:35:22 +09:00
Masayuki Nakano
4b3d1e8406
Bug 1278014 part.2 Define mozilla::SelectionType as an enum class and use it instead of RawSelectionType as far as possible r=smaug
...
This patch defines mozilla::SelectionType as an enum class. This is safer than nsISelectionController::SELECTION_* since setting illegal value to its variable is checked at build time. So, as far as possible, this should be used everywhere (but of course, this isn't available in scriptable interfaces).
And also this implements some useful methods for managing SelectionType and RawSelectionType which are implemented in layout/nsSelection.cpp because nsISelectionController is implemented by both PresShell and nsTextEditorState. Therefore, implementing one of them may make hard to find them. On the other hand, nsSelection.cpp is a better file name to look for them.
Note that this patch creates mozilla::Selection::RawType() for binding. Native code should keep using Selection::Type() but the binding code needs to use RawType() due to impossible to convert from SelectionType to RawSelectionType without explicit cast.
MozReview-Commit-ID: 81vX7A0hHQN
2016-06-11 11:06:37 +09:00
Makoto Kato
6d4cdb7dca
Bug 1177943 - Part 2. Add cmd_lookUpDictionary content command. r=masayuki
...
To get selected word on contnet process, I create new contnet command to look up dictionary. Then, call nsIWidget's method to show looking up dictionary.
About fetched length, see https://www.chromium.org/developers/design-documents/system-dictionary-pop-up-architecture for OSX 10.6's design
MozReview-Commit-ID: Ic2r6hboEEw
2016-05-02 11:41:20 +09:00
Michael Layzell
3a5b8c4ead
Bug 1208217 - Enable paste event listener in documents with no editor component, r=enndeakin
2016-05-16 18:09:41 -04:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Birunthan Mohanathas
6129a0880a
Bug 1217307 - Remove some unnecessary null checks in dom/base/. r=njn
2015-11-19 09:13:49 +02:00
Masayuki Nakano
736507b299
Bug 895274 part.117 Rename NS_CUT to eCut r=smaug
2015-09-08 23:33:35 +09:00
Masayuki Nakano
a54513bdb9
Bug 895274 part.116 Rename NS_COPY to eCopy r=smaug
2015-09-08 23:33:34 +09:00
Masayuki Nakano
d36f87a852
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
Birunthan Mohanathas
a0f7c73250
Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
...
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Michael Layzell
f6359d6641
Bug 1170531 - Disable clipboard menu commands correctly in non-(X)HTML documents; r=ehsan
2015-06-30 08:18:04 -04:00
Ehsan Akhgari
012e2885a3
Backout changeset d648becaa638 (bug 1170531) for test failures
2015-06-27 13:14:06 -07:00
Michael Layzell
81dc87931a
Bug 1170531 - Disable clipboard menu commands correctly in non-(X)HTML documents; r=ehsan
2015-06-27 12:37:44 -07:00
Carsten "Tomcat" Book
89aedf7cca
Backed out changeset 3fca18104696 (bug 1170531) for e10s-m4 test failures in test_bug1067255.html
2015-06-22 15:21:02 +02:00
Michael Layzell
08190db788
Bug 1170531 - Disable clipboard menu commands correctly in non-(X)HTML documents; r=ehsan
2015-06-22 08:13:26 -04:00
Michael Layzell
d95aa47881
Bug 1012662 - Part 2 - Updates to clipboard command controllers to match cut/copy action spec. r=ehsan
2015-05-13 08:51:00 +02:00
Carsten "Tomcat" Book
215d48696e
Backed out changeset 1f0306d29dec (bug 1012662)
2015-05-26 13:33:48 +02:00
Michael Layzell
c7462e327d
Bug 1012662 - Updates to clipboard command controllers to match cut/copy action spec. r=ehsan
2015-05-13 08:51:00 +02:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Nathan Froyd
023e3d5c3f
Bug 1153267 - part 1 - use smart-pointer .forget() instead of NS_ADDREF+assign; r=ehsan
2015-03-31 10:03:49 -04:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ehsan Akhgari
2acefe2331
Bug 1117264 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/base code; r=baku
2015-01-06 11:52:45 -05:00
Morris Tseng
09da8d2afc
Bug 1101392 - Part 2: Add a command that collapse selection to end after copying. r=roc
2014-11-26 23:06:00 +01:00
Jonathan Kew
9627ad1e6b
Bug 1077515 - part 7 - Support physical caret movement and selection commands in nsGlobalWindowCommands. r=roc
2014-11-22 14:39:04 +00:00
Benoit Jacob
7bbd89e2ca
Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan
2014-06-23 15:56:07 -04:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Ms2ger
582319fb44
Bug 956015 - Add an infallible nsIDocShellTreeItem::ItemType; r=bz
2014-01-20 08:58:26 +01:00
Birunthan Mohanathas
88a0348924
Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
2013-12-08 21:52:54 -05:00
Masayuki Nakano
c23797df63
Bug 912956 part.18 Remove nsGUIEvent.h r=roc
2013-09-25 20:21:22 +09:00
Ms2ger
24f9ba0400
Bug 904178 - Part f: Remove some includes from nsPIDOMWindow.h; r=mounir
2013-08-22 08:30:55 +02:00
Neil Deakin
56bc48287f
Bug 894736, pass clipboard type to data transfer so that the correct clipboard is used when pasting, r=ehsan
2013-08-07 14:52:38 -04:00
David Zbarsky
96800c4570
Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger
2013-04-24 00:22:37 -04:00
Trevor Saunders
443e419ad9
bug 841436 - remove nolonger needed qi from nsIDocShell to nsIDocShellTreeItem r=bz
2013-02-12 17:02:51 -05:00
Trevor Saunders
182f3ee366
bug 825419 - outparamdel nsIDocShell::GetPresShell() r=smaug
2012-12-28 20:56:42 -05:00
Randell Jesup
3b4961b603
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00