2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:02 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2017-04-14 12:54:36 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "Widget: Win32")
|
2020-05-15 21:48:38 +03:00
|
|
|
SCHEDULES.exclusive = ["windows"]
|
2017-04-14 12:54:36 +03:00
|
|
|
|
2017-05-30 05:29:22 +03:00
|
|
|
with Files("*CompositorWidget*"):
|
|
|
|
BUG_COMPONENT = ("Core", "Graphics")
|
|
|
|
|
2020-10-12 15:26:45 +03:00
|
|
|
with Files("*IMEHandler*"):
|
|
|
|
BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
|
|
|
|
|
|
|
|
with Files("*IMMHandler*"):
|
|
|
|
BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
|
|
|
|
|
|
|
|
with Files("*KeyboardLayout*"):
|
|
|
|
BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
|
|
|
|
|
2020-04-08 01:30:37 +03:00
|
|
|
with Files("OSK*"):
|
|
|
|
BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
|
|
|
|
|
2020-10-12 15:26:45 +03:00
|
|
|
with Files("*TSFTextStore*"):
|
|
|
|
BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
|
|
|
|
|
2023-05-19 01:29:52 +03:00
|
|
|
DIRS += [
|
|
|
|
"filedialog",
|
|
|
|
]
|
|
|
|
|
2013-02-26 01:20:02 +04:00
|
|
|
TEST_DIRS += ["tests"]
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
"nsdefs.h",
|
2013-10-24 03:05:43 +04:00
|
|
|
"WindowHook.h",
|
|
|
|
"WinUtils.h",
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2018-07-21 00:54:08 +03:00
|
|
|
EXPORTS.mozilla += [
|
2024-03-22 03:55:46 +03:00
|
|
|
"ScreenHelperWin.h",
|
2019-07-23 23:17:58 +03:00
|
|
|
"ShellHeaderOnlyUtils.h",
|
2023-01-06 21:36:22 +03:00
|
|
|
"ToastNotificationHeaderOnlyUtils.h",
|
2019-08-20 01:10:32 +03:00
|
|
|
"UrlmonHeaderOnlyUtils.h",
|
2019-03-29 21:05:03 +03:00
|
|
|
"WindowsConsole.h",
|
2022-08-17 23:01:58 +03:00
|
|
|
"WindowsEventLog.h",
|
2018-07-21 00:54:08 +03:00
|
|
|
"WinHeaderOnlyUtils.h",
|
|
|
|
]
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.mozilla.widget += [
|
|
|
|
"AudioSession.h",
|
2016-07-01 11:15:16 +03:00
|
|
|
"CompositorWidgetChild.h",
|
|
|
|
"CompositorWidgetParent.h",
|
2016-07-19 21:56:07 +03:00
|
|
|
"InProcessWinCompositorWidget.h",
|
2023-11-23 21:28:31 +03:00
|
|
|
"JumpListBuilder.h",
|
2022-11-22 06:44:52 +03:00
|
|
|
"nsWindowLoggedMessages.h",
|
2016-07-01 11:15:16 +03:00
|
|
|
"WinCompositorWidget.h",
|
2018-03-29 05:21:47 +03:00
|
|
|
"WinCompositorWindowThread.h",
|
2017-11-04 22:06:04 +03:00
|
|
|
"WindowsEMF.h",
|
2020-02-20 15:04:12 +03:00
|
|
|
"WindowsSMTCProvider.h",
|
2021-10-06 10:21:59 +03:00
|
|
|
"WinEventObserver.h",
|
2016-04-09 09:15:31 +03:00
|
|
|
"WinMessages.h",
|
2016-04-09 09:45:06 +03:00
|
|
|
"WinModifierKeyState.h",
|
2023-11-20 13:08:09 +03:00
|
|
|
"WinRegistry.h",
|
2021-02-17 08:10:53 +03:00
|
|
|
"WinTaskbar.h",
|
2021-10-06 10:21:59 +03:00
|
|
|
"WinWindowOcclusionTracker.h",
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-12-16 04:00:54 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
"AudioSession.cpp",
|
2016-07-01 11:15:16 +03:00
|
|
|
"CompositorWidgetChild.cpp",
|
2023-09-15 06:19:28 +03:00
|
|
|
"DirectManipulationOwner.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
"GfxInfo.cpp",
|
|
|
|
"IEnumFE.cpp",
|
2015-07-23 06:31:28 +03:00
|
|
|
"IMMHandler.cpp",
|
2023-11-23 21:28:31 +03:00
|
|
|
"JumpListBuilder.cpp",
|
2014-10-09 00:19:14 +04:00
|
|
|
"KeyboardLayout.cpp",
|
2017-11-23 12:59:04 +03:00
|
|
|
"LSPAnnotator.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
"nsAppShell.cpp",
|
|
|
|
"nsClipboard.cpp",
|
2013-06-23 20:48:24 +04:00
|
|
|
"nsColorPicker.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
"nsDataObj.cpp",
|
|
|
|
"nsDataObjCollection.cpp",
|
|
|
|
"nsDragService.cpp",
|
|
|
|
"nsLookAndFeel.cpp",
|
|
|
|
"nsNativeDragSource.cpp",
|
|
|
|
"nsNativeDragTarget.cpp",
|
|
|
|
"nsNativeThemeWin.cpp",
|
|
|
|
"nsSound.cpp",
|
|
|
|
"nsToolkit.cpp",
|
2020-07-20 19:06:59 +03:00
|
|
|
"nsUserIdleServiceWin.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
"nsUXThemeData.cpp",
|
|
|
|
"nsWindow.cpp",
|
|
|
|
"nsWindowDbg.cpp",
|
|
|
|
"nsWindowGfx.cpp",
|
2022-11-22 06:44:52 +03:00
|
|
|
"nsWindowLoggedMessages.cpp",
|
2022-06-07 20:07:42 +03:00
|
|
|
"nsWindowTaskbarConcealer.cpp",
|
2013-10-24 03:05:43 +04:00
|
|
|
"nsWinGesture.cpp",
|
2021-03-26 08:42:47 +03:00
|
|
|
"OSKTabTipManager.cpp",
|
2021-03-26 08:42:47 +03:00
|
|
|
"OSKVRManager.cpp",
|
2020-02-13 17:32:37 +03:00
|
|
|
"RemoteBackbuffer.cpp",
|
2017-03-09 14:32:31 +03:00
|
|
|
"ScreenHelperWin.cpp",
|
2020-10-01 00:14:05 +03:00
|
|
|
"SystemStatusBar.cpp",
|
2013-10-24 03:05:43 +04:00
|
|
|
"TaskbarPreview.cpp",
|
|
|
|
"TaskbarPreviewButton.cpp",
|
|
|
|
"TaskbarTabPreview.cpp",
|
|
|
|
"TaskbarWindowPreview.cpp",
|
|
|
|
"WidgetTraceEvent.cpp",
|
2018-03-29 05:21:47 +03:00
|
|
|
"WinCompositorWindowThread.cpp",
|
2013-10-24 03:05:43 +04:00
|
|
|
"WindowHook.cpp",
|
2019-03-29 21:05:03 +03:00
|
|
|
"WindowsConsole.cpp",
|
2021-10-06 10:21:59 +03:00
|
|
|
"WinEventObserver.cpp",
|
2013-10-24 03:05:43 +04:00
|
|
|
"WinIMEHandler.cpp",
|
2016-11-20 05:24:46 +03:00
|
|
|
"WinPointerEvents.cpp",
|
2023-11-20 13:08:09 +03:00
|
|
|
"WinRegistry.cpp",
|
2014-10-07 00:11:24 +04:00
|
|
|
"WinTaskbar.cpp",
|
2016-03-16 07:47:48 +03:00
|
|
|
"WinTextEventDispatcherListener.cpp",
|
2013-10-24 03:05:43 +04:00
|
|
|
"WinUtils.cpp",
|
2021-10-06 10:21:59 +03:00
|
|
|
"WinWindowOcclusionTracker.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-12-16 04:00:54 +04:00
|
|
|
# The following files cannot be built in unified mode because of name clashes.
|
|
|
|
SOURCES += [
|
2020-01-08 21:35:22 +03:00
|
|
|
"CompositorWidgetParent.cpp",
|
|
|
|
"InProcessWinCompositorWidget.cpp",
|
2019-12-06 23:55:26 +03:00
|
|
|
"MediaKeysEventSourceFactory.cpp",
|
2013-12-16 04:00:54 +04:00
|
|
|
"nsBidiKeyboard.cpp",
|
|
|
|
"nsFilePicker.cpp",
|
2020-02-13 17:21:06 +03:00
|
|
|
"nsSharePicker.cpp",
|
2013-12-16 04:00:54 +04:00
|
|
|
"nsWidgetFactory.cpp",
|
2020-04-08 01:30:37 +03:00
|
|
|
"OSKInputPaneManager.cpp",
|
2016-08-24 01:18:55 +03:00
|
|
|
"WinCompositorWidget.cpp",
|
2020-02-20 15:04:12 +03:00
|
|
|
"WindowsSMTCProvider.cpp",
|
2015-06-16 21:51:29 +03:00
|
|
|
"WindowsUIUtils.cpp",
|
2014-10-09 00:19:14 +04:00
|
|
|
"WinMouseScrollHandler.cpp",
|
2013-12-16 04:00:54 +04:00
|
|
|
]
|
|
|
|
|
2018-08-14 10:38:03 +03:00
|
|
|
# Needs INITGUID and we don't allow INITGUID in unified sources since bug 970429.
|
|
|
|
SOURCES += [
|
|
|
|
"InputDeviceUtils.cpp",
|
2020-10-29 04:46:05 +03:00
|
|
|
"TSFTextStore.cpp",
|
2018-08-14 10:38:03 +03:00
|
|
|
]
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG["NS_PRINTING"]:
|
2013-12-16 04:00:54 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-24 03:00:23 +04:00
|
|
|
"nsDeviceContextSpecWin.cpp",
|
2017-10-19 05:04:13 +03:00
|
|
|
"nsPrintDialogWin.cpp",
|
2020-07-22 18:12:02 +03:00
|
|
|
"nsPrinterWin.cpp",
|
2017-12-19 13:06:39 +03:00
|
|
|
"nsPrintSettingsServiceWin.cpp",
|
2013-04-24 01:54:15 +04:00
|
|
|
"nsPrintSettingsWin.cpp",
|
|
|
|
]
|
2021-10-06 10:21:59 +03:00
|
|
|
SOURCES += [
|
|
|
|
"nsPrintDialogUtil.cpp",
|
|
|
|
]
|
Bug 1399787 - Part 3. Create a top level protocol for the PDFium process. r=jwatt
Define ipdl and actor classes. Implementation of actors is added in subsequent
patches.
Control flow:
1. A user starts a printing job.
2. We create a PrintTarget to print web content page by page.
3. When printing pages:
a. PrintTarget, who lives in the chrome process, create a new FileDescriptor
and pass that FD to the content process.
b. The content process renders page contents into the given FD.
c. PrintTarget render that FD, which contains only one page, into a PDF
file.
d. PrintTaget asks PDFium process to convert that PDF file into EMF contents
by *ConvertToEMF*
e. The PDFium process converts the given PDF into EMF contents and send back
EMF contents by *ConvertToEMFDone*
f. PrintTaget playbacks that EMF onto a printer DC. One page is printed!
f. If all pages are printed, then finalize print job; Otherwise, loop back
to #a.
The control flow that we landed in bug 1370488 does not work like the flow
I described above.
In [1], we paint all pages into one single PDF file. After all pages are
rendered into this PDF file, we finalize the current print job, which means the
printing progress dialog is close. *Then* we start to convert that PDF into
EMF and print each EMF page onto printer DC. We can not cancel this conversion
task since the printing dialog is close, there is no UI allow us to do that.
One more serious problem is: since the printing progress dialog is close,
people think that printing is done, but actually it's not.
Except move EMF conversion to a dedicated process, named PDFium process, I will
also fix the behavior we landed in bug 1370488.
[1]
https://hg.mozilla.org/mozilla-central/rev/b611ec2a42bf
MozReview-Commit-ID: JAnmNc3gAVK
--HG--
extra : rebase_source : c64c4d39ccca16271959ade57edc2a8a087141b8
extra : intermediate-source : 6d6cff8961fa14160b624b2879d231b32c61a8f5
extra : source : b172d78e8c1d801e1e28afd8fedb9fcfff77d113
2017-10-13 11:58:07 +03:00
|
|
|
|
2017-10-19 05:04:30 +03:00
|
|
|
if CONFIG["MOZ_ENABLE_SKIA_PDF"]:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
"WindowsEMF.cpp",
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
|
2019-01-26 02:20:36 +03:00
|
|
|
XPCOM_MANIFESTS += [
|
|
|
|
"components.conf",
|
|
|
|
]
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = "xul"
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2017-06-20 06:34:43 +03:00
|
|
|
if CONFIG["MOZ_ENABLE_SKIA_PDF"]:
|
2018-10-31 05:17:34 +03:00
|
|
|
LOCAL_INCLUDES += CONFIG["SKIA_INCLUDES"]
|
2017-06-20 06:34:43 +03:00
|
|
|
|
2013-11-28 18:17:25 +04:00
|
|
|
LOCAL_INCLUDES += [
|
2021-07-30 02:38:31 +03:00
|
|
|
"/gfx/cairo/cairo/src",
|
2018-09-26 17:41:12 +03:00
|
|
|
"/layout/forms",
|
2013-11-28 18:17:25 +04:00
|
|
|
"/layout/generic",
|
2020-10-01 00:14:00 +03:00
|
|
|
"/layout/style",
|
2013-12-04 05:06:16 +04:00
|
|
|
"/layout/xul",
|
2023-12-28 00:49:32 +03:00
|
|
|
"/toolkit/components/jsoncpp/include",
|
2013-11-28 18:17:25 +04:00
|
|
|
"/toolkit/xre",
|
2014-10-23 21:16:45 +04:00
|
|
|
"/widget",
|
2017-06-08 00:33:11 +03:00
|
|
|
"/widget/headless",
|
2013-11-28 18:17:25 +04:00
|
|
|
"/xpcom/base",
|
|
|
|
]
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
DEFINES["MOZ_UNICODE"] = True
|
2022-08-02 22:40:38 +03:00
|
|
|
DEFINES["MOZ_APP_NAME"] = '"%s"' % CONFIG["MOZ_APP_NAME"]
|
|
|
|
# Turn `firefox` into `Firefox`.
|
|
|
|
DEFINES["MOZ_TOAST_APP_NAME"] = '"%s"' % CONFIG["MOZ_APP_NAME"].title()
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2023-12-28 00:49:32 +03:00
|
|
|
USE_LIBS += [
|
|
|
|
"jsoncpp",
|
|
|
|
]
|
|
|
|
|
2016-01-25 22:48:02 +03:00
|
|
|
OS_LIBS += [
|
2022-08-02 22:40:38 +03:00
|
|
|
"ktmw32",
|
2016-01-25 22:48:02 +03:00
|
|
|
"rpcrt4",
|
2019-08-20 01:10:32 +03:00
|
|
|
"urlmon",
|
2024-05-28 23:11:15 +03:00
|
|
|
"winmm",
|
2016-01-25 22:48:02 +03:00
|
|
|
]
|
2017-11-08 06:52:10 +03:00
|
|
|
|
2023-09-05 23:55:25 +03:00
|
|
|
# mingw is missing Windows toast notification definitions.
|
2023-09-01 02:16:43 +03:00
|
|
|
if CONFIG["CC_TYPE"] == "clang-cl":
|
2018-10-03 11:57:23 +03:00
|
|
|
SOURCES += [
|
|
|
|
"ToastNotification.cpp",
|
|
|
|
"ToastNotificationHandler.cpp",
|
|
|
|
]
|
2021-08-25 13:46:17 +03:00
|
|
|
|
2022-12-30 23:10:05 +03:00
|
|
|
SPHINX_TREES["/widget/windows"] = "docs"
|