Bob Owen
393a50d4dc
Bug 1238964 Part 2: Move separate DEVMODE to nsIPrintSettings copying into nsPrintSettingsWin. r=jimm
...
This also corrects what I think are long standing issues with the mapping to and
from print settings on Windows.
Firstly it only uses the DEVMODE flags to decide what should get stored, in the
old code if paper size was not set, it would then use that possibly invalid
paper size to map to length and width. Paper setting prefs are mapped back if
they were stored or if they have been manually set to something sane.
Secondly it corrects the calculation that was used to convert from millimeters
to tenths of millimeters.
It also gets rid of the paperSizeType field, which was only used on Windows and
doesn't actually make sense according to the DEVMODE documentation as the
dmPaperLength and dmPaperWidth fields override the dmPaperSize, but can in
theory be specified at the same time.
2016-01-12 17:40:07 +00:00
Bob Owen
eb34bd15b9
Bug 1238964 Part 1: Hold new printable page sizes in print nsIPrintSettingsWin. r=jimm
...
This also holds the resolution in the print settings, so that we can start to
remove the access to the native Windows print devices in the child process.
2016-01-22 16:05:19 +00:00
Bob Owen
f35de7e1be
Bug 1156742 Part 7: Refactor nsDeviceContext.cpp to use printing surface for size and nsIDeviceContextSpec for DPI and scale. r=roc
...
These changes are to make using an off screen surface behind our DrawTarget in the child easier.
It still creates the real printing surface for some of the calculations,
removing this will be required for future tightening of the sandbox.
2016-01-05 10:08:57 +00:00
Bob Owen
c38abff973
Bug 1156742 Part 6: Add RemotePrintJob to PrintSession and PrintData. r=roc, r=mconley
...
Someone knew that nsIPrintSession would come in handy one day.
2016-01-05 10:08:57 +00:00
Bob Owen
5f9cb1f258
Bug 1156742 Part 5: Add a skeleton RemotePrintJob. r=mconley
...
The methods will get filled out by later patches, this sets up the IPDL and lifetime management.
2016-01-05 10:08:57 +00:00
Wes Kocher
a5249b6201
Backed out 25 changesets (bug 1156742) for build bustage in SkOSLibrary_win.cpp CLOSED TREE
...
Backed out changeset 31c0aadae8e7 (bug 1156742)
Backed out changeset f08df57ff700 (bug 1156742)
Backed out changeset 90c026d5dcb1 (bug 1156742)
Backed out changeset 8c6d14d80238 (bug 1156742)
Backed out changeset 72d86b0471c9 (bug 1156742)
Backed out changeset 363829accc09 (bug 1156742)
Backed out changeset 16360fe94d54 (bug 1156742)
Backed out changeset 5355c636a81a (bug 1156742)
Backed out changeset 18844d26b873 (bug 1156742)
Backed out changeset 99df86591613 (bug 1156742)
Backed out changeset 7ac1c7e15a11 (bug 1156742)
Backed out changeset de352000aae1 (bug 1156742)
Backed out changeset 4dd34ea230c6 (bug 1156742)
Backed out changeset 48c6ce65a5c2 (bug 1156742)
Backed out changeset dd52947f73c6 (bug 1156742)
Backed out changeset 5fe429ee880c (bug 1156742)
Backed out changeset dedca8fb19b0 (bug 1156742)
Backed out changeset d748b1354f92 (bug 1156742)
Backed out changeset 7f8e59588518 (bug 1156742)
Backed out changeset b90d302c57f6 (bug 1156742)
Backed out changeset 7a4da453572c (bug 1156742)
Backed out changeset a40eea914519 (bug 1156742)
Backed out changeset 99a8859afcdb (bug 1156742)
Backed out changeset 4934e88b2d7a (bug 1156742)
Backed out changeset 79733166f05e (bug 1156742) for build bustage in SkOSLibrary_win.cpp CLOSED TREE
--HG--
extra : amend_source : beeb6abbcc724b79ac166e828efa78dc4c5301da
2015-12-21 13:47:33 -08:00
Bob Owen
8e74e544d2
Bug 1156742 Part 7: Refactor nsDeviceContext.cpp to use printing surface for size and nsIDeviceContextSpec for DPI and scale. r=roc
...
These changes are to make using an off screen surface behind our DrawTarget in the child easier.
It still creates the real printing surface for some of the calculations,
removing this will be required for future tightening of the sandbox.
2015-12-21 20:33:13 +00:00
Bob Owen
a3c64d5bb8
Bug 1156742 Part 6: Add RemotePrintJob to PrintSession and PrintData. r=roc, r=mconley
...
Someone knew that nsIPrintSession would come in handy one day.
2015-12-21 20:33:13 +00:00
Bob Owen
4797734560
Bug 1156742 Part 5: Add a skeleton RemotePrintJob. r=mconley
...
The methods will get filled out by later patches, this sets up the IPDL and lifetime management.
2015-12-21 20:33:13 +00:00
Birunthan Mohanathas
9985829ecc
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Mike Conley
74bce35677
Bug 1217190 - Make sure to initialize outparam in PrintingParent::RecvShowProgress. r=bobowen
...
--HG--
extra : commitid : EGXL51V8QI
extra : rebase_source : e2fe518f0d46741176e2179ca81df2b55e788922
extra : histedit_source : 58976c539a6eade5331f47be9900d338356a5ee4
2015-10-27 14:37:34 -04:00
Mike Conley
11408875de
Bug 1217190 - Make PrintingParent return an nsresult when attempting to show print progress. r=bobowen
...
--HG--
extra : commitid : LH8E3YSVlSd
extra : rebase_source : a48a93195c576648f4a46c9eb60756186684e0eb
extra : histedit_source : f582237e3e58d92a1ec38a4b2a82d77bae620d48
2015-10-26 16:47:48 -04: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
Chris Peterson
71920a9550
Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium
2015-09-22 21:39:03 -07:00
Nicholas Nethercote
f44287005f
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Mike Conley
7421d14843
Bug 1106321 - Serialize DEVMODE down to the content process when printing on Windows. r=jimm
...
--HG--
extra : commitid : IhjNJOOtmms
extra : rebase_source : 6b0ba29e866dcf63a3054eb955ece082cbbeda13
extra : amend_source : 70bcf59b1f4b1d7a3a8ec4183b3b9710eedfb5f9
2015-08-06 17:36:54 -04:00
Birunthan Mohanathas
a8939590de
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
Karl Tomlinson
603b1ace02
bug 147419 remove ununsed plexName colorspace resolutionName and downloadFonts r=roc
...
This was only used to write to and read from otherwise unused preferences.
--HG--
extra : rebase_source : a538569807b8340dae3fe9f0cbfc68334e20ccc9
2015-06-11 09:34:27 +12:00
Karl Tomlinson
a19a1f0d0c
bug 147419 remove ununsed nsIPrintSettings::printCommand and print_command prefs r=roc
...
These was used only to write to and read from each other.
--HG--
extra : rebase_source : ef49678652f829fe23611fb2294a22c3ffd91cf1
2015-06-10 18:10:28 +12:00
Mike Conley
a1d6a9cf9c
Bug 1091112 - Proxy opening the print dialog on OS X to the parent. r=mstange
...
--HG--
extra : commitid : JRKXD6lod1d
extra : rebase_source : b2bfa7c4f750852c0654367708cc4f0a6c607a24
extra : histedit_source : f0da46869101dc23b8d6b654416298951b078ccb
2015-05-06 14:10:21 -04:00
Mike Conley
1a81ee8239
Bug 1091112 - Add OS X-specific members to PrintData IPDL struct. r=jimm
...
--HG--
extra : commitid : Dr2MlrmVcdg
extra : rebase_source : 886e4fcae950fd46b51aad1b8f5e5fa47bdbeaa6
2015-05-06 14:09:08 -04:00
Mike Conley
1a3aaea52d
Bug 1091112 - Serialize nsIPrintSettings options bitfield. r=jimm
...
--HG--
extra : commitid : Dms9DmIQc6x
extra : rebase_source : 28597e8eb3c7c9e11bf26f611dae21ff96fad968
2015-05-06 15:35:35 -04:00
L. David Baron ext:(%2C%20Ben%20Turner%20%3Cbent.mozilla%40gmail.com%3E)
aa31a08c28
Bug 1152921 - Don't send an uninitialized PrintData over IPC when cancelling print dialog (or failing ShowPrintDialog for other reasons). r=mconley
...
This fixes a crash in debug builds (due to uninitialized booleans) when
canceling a print dialog.
2015-04-16 19:27:01 -07:00
Ehsan Akhgari
96ba70d288
Remove some unneeded MOZ_IMPLICITs, no bug
2015-04-13 13:45:43 -04:00
Andrea Marchesini
e6f385fb3d
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Ehsan Akhgari
883849ee32
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
Mike Conley
7ce830fbd1
Bug 1090448 - Add GTK-specific PrintData fields and serialization / deserialization. r=karlt.
...
--HG--
extra : rebase_source : d4ce821c07419f06fbe4fc68faf59d57552a160c
2015-03-05 11:17:18 -05:00
Mike Conley
050556d853
Bug 1090439 - PPrinting calls from child to parent via ShowProgress and ShowPrintDialog should not be sync. r=smaug.
...
--HG--
extra : rebase_source : 5976ab33f9d1f7a4d2046e266f7fd763567d97ab
2015-03-05 16:58:35 -05:00
Mike Conley
b7d3cf23a9
Bug 1088070 - If saving print settings in the content process, proxy to the parent. r=smaug.
...
--HG--
extra : rebase_source : 1b09d4215f5dd7e1c1618397b17defa912fd9637
2015-03-05 13:12:41 -05:00
Mike Conley
3b00b2594e
Bug 1088070 - Rename nsPrintingPromptServiceProxy to nsPrintingProxy. r=smaug.
...
--HG--
rename : embedding/components/printingui/ipc/nsPrintingPromptServiceProxy.cpp => embedding/components/printingui/ipc/nsPrintingProxy.cpp
rename : embedding/components/printingui/ipc/nsPrintingPromptServiceProxy.h => embedding/components/printingui/ipc/nsPrintingProxy.h
extra : rebase_source : f9322eb935167ac31610e2345ced11d8cdc8295a
2015-03-05 13:12:41 -05:00
Carsten "Tomcat" Book
3239d15532
Backed out changeset a1c1f919b5b8 (bug 1088070)
...
--HG--
rename : embedding/components/printingui/ipc/nsPrintingProxy.cpp => embedding/components/printingui/ipc/nsPrintingPromptServiceProxy.cpp
rename : embedding/components/printingui/ipc/nsPrintingProxy.h => embedding/components/printingui/ipc/nsPrintingPromptServiceProxy.h
2015-03-05 08:54:02 +01:00
Carsten "Tomcat" Book
b9d31e6615
Backed out changeset 8e04b9c921ad (bug 1088070)
2015-03-05 08:54:00 +01:00
Mike Conley
5888c6d369
Bug 1088070 - If saving print settings in the content process, proxy to the parent. r=smaug.
...
--HG--
extra : rebase_source : 7df1c2cdf7f9d3ae1415ae9055a15925b30dfced
2015-03-02 14:33:53 -05:00
Mike Conley
a7e58aee92
Bug 1088070 - Rename nsPrintingPromptServiceProxy to nsPrintingProxy. r=smaug.
...
--HG--
rename : embedding/components/printingui/ipc/nsPrintingPromptServiceProxy.cpp => embedding/components/printingui/ipc/nsPrintingProxy.cpp
rename : embedding/components/printingui/ipc/nsPrintingPromptServiceProxy.h => embedding/components/printingui/ipc/nsPrintingProxy.h
extra : rebase_source : 73d55966d1b1644f24ef3bfc841fc9fa22b42b48
2015-03-02 14:34:05 -05:00
Kan-Ru Chen (陳侃如)
9bdcbebafe
Bug 1114890 - Use TabParent::GetFrom everywhere. r=billm
2015-02-05 16:47:32 -05:00
Ryan VanderMeulen
6048189ffc
Backed out changeset ab7fbaca9fdd (bug 1114890) for being the likely cause of bug 1124046.
2015-02-05 14:35:35 -05:00
Kan-Ru Chen (陳侃如)
0c04d0ee7e
Bug 1114890 - Use TabParent::GetFrom everywhere. r=billm
2015-02-05 17:18:22 +08:00
Ehsan Akhgari
5aa084025f
Bug 1119261 - Mark virtual overridden functions as MOZ_OVERRIDE in embedding; r=bsmedberg
2015-01-12 23:26:27 -05:00
Wes Kocher
ff83d4dbc2
Backout 58cb6ed02553 (bug 1120622, bug 1120620, bug 1119068, bug 1119268, bug 1119264, bug 1119261) for b2g build bustage on a CLOSED TREE
2015-01-12 14:48:13 -08:00
Ehsan Akhgari
41d5c33e31
Bug 1119261 - Mark virtual overridden functions as MOZ_OVERRIDE in embedding; r=bsmedberg
2015-01-12 16:35:04 -05:00
Ehsan Akhgari
ebdf8e7c36
Bug 1109746 - Fix more bad implicit constructors in some random code across the tree
...
--HG--
extra : amend_source : 48ca151cb1ca2193404c65831556051c02093914
2014-12-13 14:17:04 -05:00
Oleg Romashin
59e59866db
Bug 1103412 - Gecko does not compile with printing disabled. r=mconley
2014-11-22 12:15:00 +01:00
Mike Conley
19a77b306e
Bug 1090444 - The Printing Progress dialog does not show progress or close when opened from the child process. r=blassey.
...
We now proxy progress updates from the child up to the parent over IPC.
--HG--
extra : rebase_source : a66557462e013ccf2b6e253c4b401d6baa0baa01
2014-11-10 15:18:06 -05:00
Mike Conley
5368b2ecee
Bug 1082579 - Introduce PPrinting.ipdl and proxies for opening printing UI. r=blassey.
...
--HG--
extra : rebase_source : 69ac7840ef72055911daa0ff482236b57f563aba
2014-10-28 11:59:08 -04:00