gecko-dev/widget/cocoa
Masayuki Nakano 5345065a53 Bug 1388647 - part2: Make IMEInputHandler of Cocoa widget handle request to commit/cancel composition synchronously r=m_kato
When Gecko started to support Cocoa widget, we needed to use NSInputManager.
That allowed applications to access only focused IME context.  Therefore, commit
composition request handler for Cocoa is designed as handling asynchronosly if
it's requested when the window is not active or is being inactivated.

Additionally, the asynchronous handling isn't perfect.  We hit some MOZ_ASSERT()
now in some places.  E.g., in SelectedRange(), it doesn't assume that it's
called during deactive.

On the other hand, NSInputManager was alreay obsolete and we already stopped using it
(bug 810225).  Instead, we're using NSTextInputContext and it allows applications
to access IME anytime.  Therefore, if we make IMEInputHandler handles commit/cancel
composition requests synchronsly, that behaves same as the other platforms.  So, we
can get rid of macOS specific issue completely.

MozReview-Commit-ID: X7aWmGq95x

--HG--
extra : rebase_source : a472a03e3ef6f424fe73c2d438b8326bed80278d
2017-08-09 18:41:19 +09:00
..
crashtests Backed out changeset bbb688fe1ba3 (bug 1365614) 2017-05-22 15:45:31 +02:00
cursors
resources/MainMenu.nib
ComplexTextInputPanel.h
ComplexTextInputPanel.mm
CustomCocoaEvents.h
GfxInfo.h
GfxInfo.mm
NativeKeyBindings.h Bug 1339543 part 4 Change nsIWidget::ExecuteNativeKeyBinding() to nsIWidget::GetEditCommands() which just retrieves edit commands for the type r=smaug 2017-05-19 17:49:41 +09:00
NativeKeyBindings.mm Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj 2017-07-26 16:03:57 -04:00
OSXNotificationCenter.h
OSXNotificationCenter.mm Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron. 2017-08-04 14:40:52 +10:00
RectTextureImage.h
RectTextureImage.mm Bug 1362049 - Update the texture target and texture format in MacIOSurface. v5. r=mattwoodrow 2017-05-18 22:59:07 +08:00
ScreenHelperCocoa.h Bug 1356023 - Remove nsIScreenManager.systemDefaultScale. r=jfkthame 2017-04-13 07:20:35 +09:00
ScreenHelperCocoa.mm Bug 1350643 - Part 4.1: Get per-monitor dpi in ScreenHelperCocoa. r=mstange 2017-06-06 18:18:52 +08:00
SwipeTracker.h Bug 1256562 part.2 All event dispatchers under widget/cocoa should initialize WidgetEventTime::mTimeStamp with nsCocoaUtils::GetEventTimeStamp() r=mstange,smaug 2016-12-20 20:58:04 +09:00
SwipeTracker.mm Bug 1328832 - And the other one. 2017-01-06 15:30:31 +08:00
TextInputHandler.h Bug 1388647 - part2: Make IMEInputHandler of Cocoa widget handle request to commit/cancel composition synchronously r=m_kato 2017-08-09 18:41:19 +09:00
TextInputHandler.mm Bug 1388647 - part2: Make IMEInputHandler of Cocoa widget handle request to commit/cancel composition synchronously r=m_kato 2017-08-09 18:41:19 +09:00
VibrancyManager.h Bug 1192053 - Implement NS_THEME_MAC_SOURCE_LIST_SELECTION and NS_THEME_MAC_ACTIVE_SOURCE_LIST_SELECTION. r=mstange. 2016-10-14 22:45:29 +02:00
VibrancyManager.mm Bug 1310808 - Make use of the new 10.12 constant NSVisualEffectMaterialSelection. r=mstange. 2016-10-17 22:45:02 +02:00
ViewRegion.h
ViewRegion.mm
WidgetTraceEvent.mm
moz.build Bug 1355147 - Add basic support for headless mode on macOS. r=jrmuizel 2017-07-28 11:00:27 -07:00
mozView.h
nsAppShell.h
nsAppShell.mm Bug 1384336 - Stop using OS-level event loop in content process (r=mstange) 2017-08-09 21:24:20 -07:00
nsBidiKeyboard.h
nsBidiKeyboard.mm
nsChangeObserver.h
nsChildView.h Bug 1372602 Make child widgets not visible if the window around it isn't visible on OS X. r=mstange 2017-08-10 21:43:26 -07:00
nsChildView.mm Bug 1372602 Make child widgets not visible if the window around it isn't visible on OS X. r=mstange 2017-08-10 21:43:26 -07:00
nsClipboard.h Bug 1358075: Generate UTI types dynamically when needed for the new drag & drop APIs on OSX. r=mstange 2017-05-23 00:23:38 -04:00
nsClipboard.mm Bug 1368077: Strip page titles from URLs on the pasteboard when dragging on OSX/macOS. r=mstange 2017-05-26 11:45:28 -04:00
nsCocoaDebugUtils.h
nsCocoaDebugUtils.mm
nsCocoaFeatures.h Bug 1331683 - Don't attempt to use any Core Text and Core Graphics variation-font APIs on pre-Sierra systems. r=jrmuizel,lsalzman 2017-02-09 21:37:24 +00:00
nsCocoaFeatures.mm Bug 1331683 - Don't attempt to use any Core Text and Core Graphics variation-font APIs on pre-Sierra systems. r=jrmuizel,lsalzman 2017-02-09 21:37:24 +00:00
nsCocoaUtils.h Bug 1313977 - Don't round fractional mouse coordinates up, because doing so might push them outside the window. r=kats 2017-04-15 11:02:09 -04:00
nsCocoaUtils.mm Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm. 2017-07-24 19:23:52 +02:00
nsCocoaWindow.h Bug 1350643 - Part 4.2: Use screen.dpi in nsChildView::GetDPI. r=mstange 2017-06-16 10:55:09 +08:00
nsCocoaWindow.mm Bug 1350643 - Part 4.2: Use screen.dpi in nsChildView::GetDPI. r=mstange 2017-06-16 10:55:09 +08:00
nsColorPicker.h
nsColorPicker.mm Bug 1293593: Fix crash due to an Objective-C exception when calling getRed:green:blue:alpha on an NSColor instance with an incompatible NSColorSpace. r=mstange 2016-08-19 23:17:58 -04:00
nsCursorManager.h
nsCursorManager.mm
nsDeviceContextSpecX.h Bug 1309272, part 8 - Implement printing via Skia PDF for macOS (behind pref print.print_via_pdf_encoder=skia-pdf). r=lsalzman 2016-11-29 07:55:19 +00:00
nsDeviceContextSpecX.mm Bug 1384835 (part 2, attempt 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj. 2017-07-31 14:23:50 +10:00
nsDragService.h Bug 1330470: Restore ability to drag & drop entries from the download list to Finder on OSX. r=mstange 2017-05-23 00:23:47 -04:00
nsDragService.mm Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel 2017-06-13 11:00:10 -04:00
nsFilePicker.h Bug 1387800 - Remove [deprecated] nsIFilePicker.show(). r=qdot 2017-08-06 13:15:31 +09:00
nsFilePicker.mm Bug 1387800 - Remove [deprecated] nsIFilePicker.show(). r=qdot 2017-08-06 13:15:31 +09:00
nsIdleServiceX.h
nsIdleServiceX.mm
nsLookAndFeel.h Bug 1386915 - Add nsLookAndFeel::NativeInit() virtual call for initializing native-side state; r=jfkthame 2017-08-06 15:41:08 -07:00
nsLookAndFeel.mm Bug 531078 - Use MacOS system color for selected text background in inactive windows. r=mstange. 2016-11-15 20:38:22 +01:00
nsMacCursor.h
nsMacCursor.mm
nsMacDockSupport.h
nsMacDockSupport.mm Bug 1377222 - Eliminate nsITimer::InitWithFuncCallback in favor of InitWithNamedFuncCallback (r=froydnj) 2017-07-03 16:19:56 -07:00
nsMacWebAppUtils.h
nsMacWebAppUtils.mm
nsMenuBarX.h Bug 429824: Let OSX's native menu system handle keyboard shortcuts that we did not handle ourselves via XBL prototype handlers. This allows for handling of custom shortcuts, but does not allow for reassignment of existing shortcuts. r=mstange 2017-05-15 22:59:28 -04:00
nsMenuBarX.mm Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron. 2017-08-04 14:40:52 +10:00
nsMenuBaseX.h
nsMenuGroupOwnerX.h
nsMenuGroupOwnerX.mm
nsMenuItemIconX.h Bug 1319908 - Load the menu icons for the bookmarks menu with the correct content type and principal on OSX; r=baku 2017-01-20 10:55:23 -05:00
nsMenuItemIconX.mm Bug 1348050 - Part 3: Mark channel as urgent-start for loading image. r=baku,mayhemer 2017-04-25 09:17:38 +08:00
nsMenuItemX.h
nsMenuItemX.mm Bug 1265386: Fix white-space errors in widget/, r=nfroyd 2016-07-22 10:56:13 +02:00
nsMenuUtilsX.h
nsMenuUtilsX.mm Bug 1371219 - Add an inputSource attribute to XULCommandEvent. r=smaug 2017-07-20 17:45:56 +02:00
nsMenuX.h Bug 1265386: Fix white-space errors in widget/, r=nfroyd 2016-07-22 10:56:13 +02:00
nsMenuX.mm Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug 2017-08-07 02:28:52 +09:00
nsNativeThemeCocoa.h Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel 2017-06-13 11:00:10 -04:00
nsNativeThemeCocoa.mm Bug 1377169 - Turn gfxRect into a typedef. r=jrmuizel 2017-07-05 11:22:00 -04:00
nsNativeThemeColors.h
nsPIWidgetCocoa.idl Bug 1294553 - Don't pretend that nsCocoaWindow is an interface in nsPIWidgetCocoa.idl, r=mstange 2016-08-11 17:56:10 -04:00
nsPrintDialogX.h Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj. 2016-08-08 10:54:47 +10:00
nsPrintDialogX.mm Bug 1387381 - Remove nsXPIDLString local variables. r=erahm. 2017-08-08 16:07:55 +10:00
nsPrintOptionsX.h Bug 1303051 - Printing Issue: Page Setup not being respected since upgrade to 48.01 on Mac; r=mconley 2016-11-09 17:37:40 -08:00
nsPrintOptionsX.mm Bug 1194751 - Part 8. Implement ScreenHelperCocoa and delete old nsScreenManagerCocoa/nsScreenCocoa. r=mstange 2017-03-09 19:34:49 +08:00
nsPrintSettingsX.h Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron 2017-07-26 22:53:46 -07:00
nsPrintSettingsX.mm Bug 1384835 (part 1, attempt 2) - Use nsA[C]String references instead of pointers for outparams of Get*String() pref functions. r=froydnj. 2017-07-31 10:52:51 +10:00
nsSandboxViolationSink.h
nsSandboxViolationSink.mm Bug 1302163 - Change code to use SprintfLiteral instead of snprintf. r=ehsan 2016-10-04 17:57:51 +02:00
nsSound.h
nsSound.mm
nsStandaloneNativeMenu.h
nsStandaloneNativeMenu.mm
nsSystemStatusBarCocoa.h
nsSystemStatusBarCocoa.mm
nsToolkit.h
nsToolkit.mm
nsWidgetFactory.mm Bug 1355147 - Use headless clipboard on macOS. r=jrmuizel 2017-07-28 11:00:29 -07:00
nsWindowMap.h
nsWindowMap.mm