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")
|
|
|
|
|
2017-05-30 05:29:22 +03:00
|
|
|
with Files("*CompositorWidget*"):
|
|
|
|
BUG_COMPONENT = ("Core", "Graphics")
|
|
|
|
|
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
|
|
|
]
|
|
|
|
|
|
|
|
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',
|
2017-01-10 12:43:16 +03:00
|
|
|
'PDFiumEngineShim.h',
|
|
|
|
'PDFViaEMFPrintHelper.h',
|
2016-07-01 11:15:16 +03:00
|
|
|
'WinCompositorWidget.h',
|
2016-04-09 09:15:31 +03:00
|
|
|
'WinMessages.h',
|
2016-04-09 09:45:06 +03:00
|
|
|
'WinModifierKeyState.h',
|
Bug 1257759 part.5 PluginInstanceChild should post received native key event to chrome process if the key combination may be a shortcut key r=jimm
When PluginInstanceChild receives native key events, it should post the events to the chrome process first for checking if the key combination is reserved. However, posting all key events to the chrome process may make damage to the performance of text input. Therefore, this patch starts to post a key event whose key combination may be a shortcut key. However, for avoiding to shuffle the event order, it posts following key events until all posted key events are handled by the chrome process.
For receiving response from widget, this patch defines nsIKeyEventInPluginCallback. It's specified by nsIWidget::OnWindowedPluginKeyEvent() for ensuring the caller will receive the reply. Basically, the caller of nsIWidget::OnWindowedPluginKeyEvent() should reply to the child process. However, if the widget is a PuppetWidget, it cannot return the result synchronously. Therefore, PuppetWidget::OnWindowedPluginKeyEvent() returns NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY and stores the callback to mKeyEventInPluginCallbacks. Then, TabParent::HandledWindowedPluginKeyEvent() will call PuppetWidget::HandledWindowedPluginKeyEvent().
MozReview-Commit-ID: G6brOU26NwQ
--HG--
extra : rebase_source : 8140456de278956d2d594e85c7b397ae366b4962
2016-04-19 14:09:37 +03:00
|
|
|
'WinNativeEventData.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',
|
|
|
|
'CompositorWidgetParent.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'GfxInfo.cpp',
|
|
|
|
'IEnumFE.cpp',
|
2015-07-23 06:31:28 +03:00
|
|
|
'IMMHandler.cpp',
|
2015-04-17 16:59:00 +03:00
|
|
|
'InkCollector.cpp',
|
2016-07-19 21:56:07 +03:00
|
|
|
'InProcessWinCompositorWidget.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'JumpListItem.cpp',
|
2014-10-09 00:19:14 +04:00
|
|
|
'KeyboardLayout.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',
|
|
|
|
'nsIdleServiceWin.cpp',
|
|
|
|
'nsImageClipboard.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
|
|
|
'nsNativeDragSource.cpp',
|
|
|
|
'nsNativeDragTarget.cpp',
|
|
|
|
'nsNativeThemeWin.cpp',
|
|
|
|
'nsSound.cpp',
|
|
|
|
'nsToolkit.cpp',
|
|
|
|
'nsUXThemeData.cpp',
|
|
|
|
'nsWindow.cpp',
|
2013-10-22 17:27:35 +04:00
|
|
|
'nsWindowBase.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsWindowDbg.cpp',
|
|
|
|
'nsWindowGfx.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsWinGesture.cpp',
|
2017-03-09 14:32:31 +03:00
|
|
|
'ScreenHelperWin.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'TaskbarPreview.cpp',
|
|
|
|
'TaskbarPreviewButton.cpp',
|
|
|
|
'TaskbarTabPreview.cpp',
|
|
|
|
'TaskbarWindowPreview.cpp',
|
|
|
|
'WidgetTraceEvent.cpp',
|
|
|
|
'WindowHook.cpp',
|
|
|
|
'WinIMEHandler.cpp',
|
2016-11-20 05:24:46 +03:00
|
|
|
'WinPointerEvents.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',
|
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 += [
|
|
|
|
'JumpListBuilder.cpp',
|
|
|
|
'nsBidiKeyboard.cpp',
|
|
|
|
'nsFilePicker.cpp',
|
|
|
|
'nsWidgetFactory.cpp',
|
2016-08-24 01:18:55 +03:00
|
|
|
'WinCompositorWidget.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
|
|
|
]
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['MOZ_CRASHREPORTER']:
|
2013-12-16 04:00:54 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'LSPAnnotator.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['NS_PRINTING']:
|
2013-12-16 04:00:54 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-24 03:00:23 +04:00
|
|
|
'nsDeviceContextSpecWin.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPrintOptionsWin.cpp',
|
|
|
|
'nsPrintSettingsWin.cpp',
|
2016-12-02 07:02:56 +03:00
|
|
|
'PDFiumEngineShim.cpp',
|
2017-01-10 12:43:16 +03:00
|
|
|
'PDFViaEMFPrintHelper.cpp',
|
2016-12-02 06:43:44 +03:00
|
|
|
'WindowsEMF.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2017-06-30 03:18:34 +03:00
|
|
|
if CONFIG['MOZ_ENABLE_SKIA_PDF']:
|
|
|
|
DIRS += ['/modules/pdfium']
|
2013-04-24 01:54:15 +04:00
|
|
|
|
|
|
|
if CONFIG['NS_ENABLE_TSF']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2015-07-24 08:07:39 +03:00
|
|
|
'TSFTextStore.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-08-22 10:56:01 +04:00
|
|
|
|
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']:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/gfx/skia/skia/include/config',
|
|
|
|
'/gfx/skia/skia/include/core',
|
|
|
|
]
|
|
|
|
|
2013-11-28 18:17:25 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/layout/generic',
|
2013-12-04 05:06:16 +04:00
|
|
|
'/layout/xul',
|
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
|
|
|
|
|
2015-01-23 06:41:20 +03:00
|
|
|
for var in ('MOZ_ENABLE_D3D10_LAYER'):
|
2013-11-27 17:55:07 +04:00
|
|
|
if CONFIG[var]:
|
|
|
|
DEFINES[var] = True
|
2014-02-10 18:03:53 +04:00
|
|
|
|
|
|
|
RESFILE = 'widget.res'
|
2014-07-24 19:55:33 +04:00
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
2016-01-25 22:48:02 +03:00
|
|
|
|
|
|
|
OS_LIBS += [
|
|
|
|
'rpcrt4',
|
|
|
|
]
|