Commit Graph

11507 Commits

Author SHA1 Message Date
Masayuki Nakano
e123f12119 Bug 1153156 part.4 Make APZC system scroll speed overriding aware r=mstange 2016-01-27 15:09:13 +09:00
Masayuki Nakano
95c2b8dfcc Bug 1153156 part.3 Don't allow to override system scroll speed if the wheel event causes too fast scroll r=smaug+jimm 2016-01-27 15:09:13 +09:00
Masayuki Nakano
6f56a7bd2c Bug 1153156 part.2 Make WidgetWheelEvent store if overriding system scroll speed is allowed and it shouldn't be allowed if scroll speed isn't system default settings on Windows r=smaug+jimm 2016-01-27 15:09:13 +09:00
Masayuki Nakano
3b90838075 Bug 1153156 part.1 Move nsBaseWidget::OverrideSystemMouseScrollSpeed() to WidgetWheelEvent r=smaug, sr=smaug 2016-01-27 15:09:13 +09:00
Masayuki Nakano
647125db4c Bug 1242895 Put off to commit/cancel composition after unlocking the document in TSF mode r=m_kato 2016-01-27 15:09:13 +09:00
Randall Barker
1be0460c1b Bug 1230674 - part 3, Add overscroll api to GeckoContentController and AndroidContentController r=snorp,kats 2016-01-26 12:02:51 -08:00
Randall Barker
2e2c2eda73 Bug 1230674 - part 2, Add overscroll API to Android nsWindow r=snorp 2016-01-26 12:02:51 -08:00
Randall Barker
aeff1fcc8f Bug 1230674 - part 1, Add Overscroll API to NativePanZoomController r=snorp 2016-01-26 12:02:51 -08:00
Milan Sreckovic
5adabe3d09 Bug 1242659: Part 1. More information on the mismatches. r=jrmuizel 2016-01-25 14:43:29 -05:00
Eugen Sawin
6542ec7fcd Bug 1192539 - [1.3] Add MediaCodecList JNI query support. r=snorp 2016-01-26 13:50:51 +01:00
Bob Owen
d36caf37b3 Bug 1242616: Add break in nsWindow.cpp WM_GETOBJECT handling. r=tbsaunde 2016-01-26 10:03:07 +00:00
Xidorn Quan
bd293a148d Bug 1242295 - Fix compile error in nsDeviceContextSpecWin. r=jimm 2016-01-26 20:31:11 +11:00
Makoto Kato
f6c94a395d Bug 1241408 - Update selection cache even if having read lock. r=masayuki 2016-01-26 10:33:38 +09:00
Kartikaya Gupta
243462f3fc Bug 1240891 - Silence warning from calling GetNativeData(NS_NATIVE_WINDOW). r=roc 2016-01-25 17:13:50 -05:00
Aaron Klotz
c93cc90317 Bug 1237463: LSP Annotator Enhancements; r=jimm 2016-01-25 12:48:02 -07:00
Sylvestre Ledru
14ec5bc735 Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan 2016-01-22 16:58:49 +01:00
Bob Owen
fccfdb71cd 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
8fbadb6da5 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
Gijs Kruitbosch
f22e73e02b Bug 1236058 - recognize bluetooth keyboard devices when determining whether to show an on-screen keyboard, r=masayuki,f=jaws 2016-01-18 13:07:55 +00:00
Eugen Sawin
1926e0aa21 Bug 1205649 - [2.4] Add AbsoluteDeviceOrientation DOM event for compass heading orientation data. r=smaug 2016-01-21 18:14:33 +01:00
Blake Kaplan
903d7f8297 Bug 1241302 - Slightly modernize this code. r=jst 2016-01-20 14:45:00 +01:00
Sotaro Ikeda
0e56cea504 Bug 1006688 - Support capture screen via adb r=mwu 2016-01-21 00:21:50 -08:00
Masayuki Nakano
1ed1a106e1 Bug 1240336 Setting same value to either <input> or <textarea> shouldn't cause committing existing composition r=ehsan 2016-01-21 16:52:27 +09:00
Randall Barker
5595d357f2 Bug 1231517 - part 3, Add ZoomToRect function to nsIWidget classes r=kats 2016-01-20 16:24:59 -08:00
David Rajchenbach-Teller
8dc9509180 Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa 2016-01-15 11:38:03 +01:00
Masayuki Nakano
62f147f80b Bug 1052947 Allow users to disable 4th button and/or 5th button of mouse on Windows r=smaug+jimm 2016-01-20 19:56:37 +09:00
Jerry Shih
df931937e8 Bug 1231042 - clean current composition task and related flag when screen off. r=mchang 2016-01-19 20:58:00 +01:00
Xidorn Quan
fd3b82eca0 Bug 1238536 part 2 - Do not trigger fullscreen changed when switching between fullscreen and minimized. r=karlt 2016-01-20 09:56:52 +11:00
Xidorn Quan
033394573d Bug 1238536 part 1 - Do not automatically exit fullscreen if restored from minimized state. r=jimm 2016-01-20 09:56:52 +11:00
Sebastian Hengst
e687c33b0f Backed out 2 changesets (bug 1224374) for Windows bustage. r=bustage on a CLOSED TREE
Backed out changeset 5f458e6e4997 (bug 1224374)
Backed out changeset 0dc02cb0b604 (bug 1224374)
2016-01-19 21:30:41 +01:00
David Rajchenbach-Teller
ad8745d7f6 Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa 2016-01-15 11:38:03 +01:00
Carsten "Tomcat" Book
958a55f54a merge mozilla-inbound to mozilla-central a=merge 2016-01-19 12:00:45 +01:00
Xidorn Quan
08a98801c6 Bug 844948 - Allow changing padding of themed button on OS X. r=mstange,heycam 2016-01-19 16:48:04 +11:00
Sotaro Ikeda
0b9c6aa4a1 Bug 1049296 - Handle Sideband stream compositing in HwcComposer2D r=mwu,nical 2016-01-18 20:52:32 -08:00
Carsten "Tomcat" Book
874721849e Merge mozilla-central to fx-team 2016-01-18 14:24:37 +01:00
Masayuki Nakano
3bb367b6ca Bug 1237216 TSFTextStore should forget redundant pending composition events for Korean TIPs r=emk 2016-01-18 16:29:02 +09:00
Sebastian Kaspari
deb051dc45 Bug 1227603 - Add support for sub-distributions based on MCC/MNC (SIM). r=margaret,mfinkle
We will now search for distributions in the following folders:

 * 1) Data distributions (APK or OTA):
   * 1.1) <dataDir>/distribution/<mcc>/<mnc> - For bundled distributions for specific network providers
   * 1.2) <dataDir>/distribution/<mcc>       - For bundled distributions for specific countries
   * 1.3) <dataDir>/distribution/default     - For bundled distributions with no matching mcc/mnc
   * 1.4) <dataDir>/distribution             - Default non-bundled distribution

 * 2) System distributions:
   * 2.1) /system/<package>/distribution/<mcc>/<mnc> - For bundled distributions for specific network providers
   * 2.2) /system/<package>/distribution/<mcc>       - For bundled distributions for specific countries
   * 2.3) /system/<package>/distribution/default     - For bundled distributions with no matching mcc/mnc
   * 2.4) /system/<package>/distribution             - Default non-bundled system distribution
2016-01-15 10:11:34 +01:00
Xidorn Quan
bd2290aa29 Backed out changeset e8ad04f3a65f (bug 844948) for reftest failure on OS X 2016-01-18 17:21:12 +11:00
Xidorn Quan
6d58c86e5a Bug 844948 - Allow changing padding of themed button on OS X. r=mstange,heycam 2016-01-18 14:20:11 +11:00
Masayuki Nakano
d094a0cf12 Bug 1237582 Don't retry to call TSFTextStore::NotifyTSFOfLayoutChangeAgain() when TSFTextStore::NotifyTSFOfLayoutChange() is called from it and newly TSFTextStore returns TS_E_NOLAYOUT error during the call r=m_kato 2016-01-17 12:02:01 +09:00
Jonathan Kew
c83d5c5d67 Bug 1239855 - Fix for widget positioning/sizing on hidpi displays under Gtk. r=emk 2016-01-18 12:24:06 +00:00
Jonathan Kew
06e58001b4 Bug 1240180 - Optimize native theme scaling for the single-monitor case. r=emk 2016-01-18 13:28:26 +00:00
Daniel Holbert
4a4af1dfd3 Bug 1240252: Add missing "mozilla::" namespace prefix before usage of type LayoutDeviceIntRegion, to fix local build bustage. r=njn 2016-01-15 22:54:20 -08:00
Jim Chen
56f36cca89 Bug 1238761 - Autogenerate constants for MotionEvent; r=snorp
This patch autogenerates constants for MotionEvent to replace the manual
definitions in AndroidJavaWrappers.
2016-01-15 13:05:45 -05:00
Jim Chen
37091dff4e Bug 1238761 - Remove obsolete APZ code; r=rbarker
With APZC supporting multiple nsWindows, this patch removes some
obsolete APZ code, including the previous implementation of
NativePanZoomController native methods in AndroidJNI.cpp, and the
various static members of nsWindow.
2016-01-15 13:05:45 -05:00
Jim Chen
04e56b3de0 Bug 1238761 - Rewrite AndroidContentController to work with multiple nsWindows; r=rbarker
This patch rewrites AndroidContentController to get rid of any
dependencies on a static nsWindow or APZC tree manager.
2016-01-15 13:05:45 -05:00
Jim Chen
b23f255449 Bug 1238761 - Attach NativePanZoomController through GLController; r=snorp
This patch adds a way to attach a particular NativePanZoomController
instance held by LayerView to a particular nsWindow instance. Because
LayerView already calls GLController.SetLayerClient during
initialization, this patch renames it to attachToJava and modifies it to
accept an additional NPZC parameter. In the new AttachToJava
implementation, we create or reuse a NPZCSupport object and associate it
with the NPZC instance.
2016-01-15 13:05:45 -05:00
Jim Chen
919de6549b Bug 1238761 - Implement NativePanZoomController native methods; r=rbarker
This patch adds the NPZCSupport class to nsWindow and use it to
implement the NPZC native methods that were implemented in
AndroidJNI.cpp. For HandleMotionEvent, the code also includes a portion
from AndroidJavaWrapper::MakeMultitouchEvent.
2016-01-15 13:05:45 -05:00
Jim Chen
296a0a08cc Bug 1238761 - Add specializations of jni::Ref for primitive arrays; r=snorp
This patch adds specializations of jni::Ref for primitive arrays like
IntArray and FloatArray, so that the arrays can be accessed through the
GetElement, GetElements, and Length members.
2016-01-15 13:05:44 -05:00
Jim Chen
ebe41f27c9 Bug 1238761 - Switch NativePanZoomController to use native methods; r=rbarker
This patch turns NativePanZoomController's MotionEvent handler into a
native method, and it adds the WrapForJNI annotations to all native
methods so that bindings will be automatically generated for them.
2016-01-15 13:05:44 -05:00
Nicholas Nethercote
3d32a4fdf1 Bug 1239589 - Change nsBaseWidget::mBounds to a LayoutDeviceIntRect. r=kats.
This patch removes dozens of ToUnknown/FromUnknown conversions and doesn't add
any new ones, which is nice. It also removes UntypedDevPixelsToCocoaPoints(),
which is no longer needed.
2015-11-22 20:32:29 -08:00
Bas Schouten
0f77ec44ef Bug 1239743: Do not allow windows to be resized to sizes above the maximum texture size. We don't know how to draw to these anyway. r=jimm 2016-01-14 21:17:13 +01:00
Carsten "Tomcat" Book
a1d46b7914 merge mozilla-inbound to mozilla-central a=merge 2016-01-15 11:46:47 +01:00
Lee Salzman
4892d3f4ec Bug 1239040 - Fix DrawTargetCairo/DrawTargetSkia LockBits and BorrowedXlibDrawable to work inside PushLayer. r=jrmuizel 2016-01-13 13:11:07 -05:00
Jim Chen
3791d71d0d Bug 1238413 - Guard against drawing methods being called during compositor shutdown; r=snorp
When waiting for the compositor to shut down, it's possible for
nsWindow::DrawWindowunderlay and DrawWindowOverlay to be called. In that
case, the GL controller is already destroyed, and we should just bail.
2016-01-14 18:20:02 -05:00
Wes Kocher
1f53b5644d Backed out changeset 7bd651ae54dd (bug 1192945) to hopefully fix 1231429 a=ritu 2016-01-14 15:40:56 -08:00
Nicholas Nethercote
60484915e6 Bug 1239530 (part 2) - Use LayoutDevice coordinates in {Start,End}RemoteDrawingInRegion() and related functions. r=kats. 2015-12-02 22:29:54 -08:00
Nicholas Nethercote
56879cdd59 Bug 1239530 (part 1) - Remove PuppetWidget::Scroll(), which is dead. r=kats. 2016-01-13 00:28:36 -08:00
Jan de Mooij
a33fee8b54 Bug 1237201 part 9 - Fix remaining issues. r=nfroyd 2016-01-14 22:12:13 +01:00
Ryan VanderMeulen
72778193b3 Bug 1239683 - Replace NS_UNCONSTRAINEDSIZE with NS_MAXSIZE in windows/nsWindow.cpp. r=mats 2016-01-14 14:46:29 -05:00
Ryan VanderMeulen
0694d67ad4 Bug 1239683 - Add nsIFrame.h include to windows/nsWindow.cpp to fix --disable-accessibility bustage. r=jfkthame 2016-01-14 11:41:29 -05:00
Carsten "Tomcat" Book
0a0c8a3069 merge mozilla-inbound to mozilla-central a=merge 2016-01-14 11:50:34 +01:00
Kit Cambridge
89ed50205b Bug 1219855, Part 3 - Fix variable shadowing in OSXNotificationCenter::ShowAlert. r=me 2016-01-13 23:26:41 -07:00
Sotaro Ikeda
6bca25738e Bug 1237914 - Remove layers.screen-recording.enabled r=mwu 2016-01-13 20:45:57 -08:00
Sotaro Ikeda
0237cd4356 Bug 1238876 - Move StartRemoteDrawing() implementation from nsWindow to nsScreenGonk r=mwu 2016-01-13 20:37:56 -08:00
Wes Kocher
888f160e67 Backed out changeset 15145a32cd19 (bug 1231042) for b2g reftest bustage. a=backout 2016-01-13 12:57:45 -08:00
Wes Kocher
25dc74521e Backed out changeset 15145a32cd19 (bug 1231042) for b2g reftest bustage 2016-01-13 12:57:45 -08:00
Jim Chen
2e597f1fad Bug 1237932 - Fix crash when renewing EGL surface fails; r=snorp
We shouldn't crash when renewing an EGL surface fails, because the
compositor is able to handle it gracefully.
2016-01-13 14:35:27 -05:00
Jim Chen
5822ef576f Bug 1237690 - Fix possible deadlock in nsAppShell::SyncRunEvent; r=snorp
In order to prevent the deadlock, we need to release sAppShellLock when
we start waiting in SyncRunEvent. However, we cannot simply unlock it
before the wait because that introduces an out-of-order unlocking wrt
mSyncRunMonitor, which can cause further deadlocks. So this patch
converts mSyncRunMoitor to a condvar and make it use sAppShellLock. That
then involves making aAppShellLock a Mutex instead of a StaticMutex. The
final result is having one lock (sAppShellLock), which supports any
other condvars that we have like mSyncRunFinished.
2016-01-13 14:35:27 -05:00
JerryShih
129f69bac0 Bug 1231042 - clean current composition task and related flag when screen off. r=hshih 2016-01-12 23:15:00 +01:00
Carsten "Tomcat" Book
b1b2328545 Merge mozilla-central to mozilla-inbound 2016-01-13 11:58:27 +01:00
Carsten "Tomcat" Book
0506fad16e merge mozilla-inbound to mozilla-central a=merge 2016-01-13 11:57:15 +01:00
Masayuki Nakano
208f4a6c52 Bug 1238899 Create hidden native caret for ATOK at composing in windowless plugin r=m_kato 2016-01-13 12:44:39 +09:00
Jonathan Kew
bb2f64218c Bug 1239007 - Replace nsIntRect by strongly-typed rects in a couple of nsCocoaUtils functions. r=mstange 2016-01-13 07:32:55 +00:00
Kit Cambridge
1ff30ad0e6 Bug 1219855, Part 1 - Make nsXULAlerts implement nsIAlertsService. r=MattN,wchen 2015-12-31 13:27:09 -07:00
Xidorn Quan
b8f6b5e5bf Bug 1189622 part 3 - Return failure if fullscreen support is not available for the X11 desktop. r=karlt 2016-01-12 15:18:47 +11:00
Xidorn Quan
7f582514a2 Bug 1189622 part 2 - Allow widget's MakeFullScreen to fail, and call FinishFullscreenChange directly if that happens. r=smaug 2016-01-12 15:18:47 +11:00
Jonathan Kew
d4f85dc71c Bug 890156 - patch 9 - Adjustment to non-client margin at top of maximized window on secondary display. r=emk 2015-12-03 16:50:59 +00:00
Jonathan Kew
487d107291 Bug 890156 - patch 5 - Make Windows native-theme code handle per-monitor DPI scaling when necessary. r=emk 2015-12-02 20:54:26 +00:00
Jonathan Kew
1409a51999 Bug 890156 - patch 4 - Update widget/windows code for per-monitor DPI support. r=emk 2015-12-04 16:59:14 +00:00
Jonathan Kew
9217770d7b Bug 890156 - patch 3 - Remove gfxWindowsPlatform::GetDPIScale and replace it with methods in WinUtils, ready for per-monitor DPI support. r=emk 2015-12-02 15:09:29 +00:00
Jonathan Kew
9f654df72d Bug 890156 - patch 2 - Expose DevicePixelsPerDesktopPixel through nsIBaseWindow and its implementations. r=emk 2015-11-25 19:12:07 +00:00
Jonathan Kew
de2d99a0c7 Bug 890156 - patch 1 - Add nsIWidget::GetDesktopToDeviceScale() method. r=emk 2015-12-04 16:58:05 +00:00
Jonathan Kew
c2c031081e Bug 890156 - patch 0.3 - Create a version of nsIWidget::Create that takes Desktop pixels, because that's what we actually need to pass in some cases. r=mstange 2016-01-13 07:32:55 +00:00
Jonathan Kew
28d5952fc4 Bug 890156 - patch 0.2 - Remove the (unused) aRect parameter from nsBaseWidget::BaseCreate. r=kats 2016-01-13 07:32:55 +00:00
Jonathan Kew
8469e4dc7d Bug 890156 - patch 0.1 - Switch from 'display pixels' to 'desktop pixels' terminology in widget code. r=kats 2015-11-25 19:11:58 +00:00
Masayuki Nakano
391fe3f8cd Bug 1235686 part.4 Don't trust system settings cache if Apoint of Alps is installed r=jimm 2016-01-13 10:49:38 +09:00
Masayuki Nakano
fd1e060f38 Bug 1235686 part.3 Don't trust system settings cache if SynTP of Synaptics is installed r=jimm 2016-01-13 10:49:38 +09:00
Masayuki Nakano
af19e2a0d5 Bug 1235686 part.2 Don't refresh the cache of system settings at handling wheel messages if the scroll amout values are initialized with prefs r=jimm 2016-01-13 10:49:38 +09:00
Masayuki Nakano
a1aa22bcd4 Bug 1235686 part.1 MouseScrollHandler should refresh the cache of system settings at handling wheel messages if the pref doesn't allow to cache system settings r=jimm 2016-01-13 10:49:38 +09:00
Masayuki Nakano
cf81d19275 Bug 1208977 TSFTextStore::GetTextExt() shouldn't return TS_E_NOLAYOUT for MS-IME for Japanese becasue it may position its candidate window at top-left of the screen in e10s mode r=emk 2016-01-11 17:25:43 +09:00
Nicholas Nethercote
6b299ad225 Bug 1209812 (part 6) - Convert all gfxImageFormat values to SurfaceFormat equivalents. r=jrmuizel.
This patch:

- Makes the following substitutions (plus necessary namespace qualifiers:

    gfxImageFormat::ARGB32      --> SurfaceFormat::A8R8G8B8_UINT32
    gfxImageFormat::RGB24       --> SurfaceFormat::X8R8G8B8_UINT32
    gfxImageFormat::A8          --> SurfaceFormat::A8
    gfxImageFormat::RGB16_565   --> SurfaceFormat::R5G6B5_UINT16
    gfxImageFormat::Unknown     --> SurfaceFormat::UNKNOWN

- Changes gfxImageFormat to be a typedef to gfx::SurfaceFormat. This will be
  removed soon.

- Removes gfxCairoFormatToImageFormat() and gfxImageFormatToCairoFormat() and
  replace calls to them with CairoFormatToGfxFormat() and
  GfxFormatToCairoFormat().

- Removes ParamTraits<gfxImageFormat>.

- Add namespace qualifiers to SurfaceFormat instances where necessary.
2016-01-07 20:57:38 -08:00
Wes Kocher
9087c3a9a8 Backed out changeset e5a4787cccce (bug 1237463) for being the apparent cause of frequent Windows 8 debug Cpp failures ending in return code 2147483651 a=backout 2016-01-08 14:42:37 -08:00
Karl Tomlinson
67c6255eb7 bug 726265 don't activate ELAN swipe hack unless ScanCode is zero r=heycam
On some hardware, GetKeyState(0xFF) returns negative even when Elantech
messages are not involved.  This change permits Page Up and Page Down keys
to function as expected on this hardware.
2016-01-07 17:31:35 +13:00
Aaron Klotz
8ed0558f76 Bug 1237463: LSP Annotator Enhancements; r=jimm 2016-01-06 16:58:13 -07:00
Nicholas Nethercote
84b71404df Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Jan Horak
1aea6b3e9f Bug 1205643 - Move scrollbar borders to slider to receive button events. r=karlt 2016-01-06 23:55:00 -05:00
Ian Stakenvicius
85c55f9dfd Bug 1168219 - Make nsIWidget::Configuration::mChild a smart pointer on widget/qt too. r=froydnj 2016-01-07 09:45:00 -05:00
Kartikaya Gupta
8d6061ac09 Bug 1235994 - Add a flag to wheel events to track if they may have momentum following them. r=mstange 2016-01-07 10:39:37 -05:00
Carsten "Tomcat" Book
d1ee9c9f70 merge mozilla-inbound to mozilla-central a=merge 2016-01-07 11:50:57 +01:00