Commit Graph

11442 Commits

Author SHA1 Message Date
Sylvestre Ledru
a898200615 Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan 2016-01-22 16:58:49 +01:00
Bob Owen
0def9af60a 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
6f2e4eeae8 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
88f5175d4e 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
a4254dc44f 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
ec354714d5 Bug 1241302 - Slightly modernize this code. r=jst 2016-01-20 14:45:00 +01:00
Sotaro Ikeda
945e2a4fe7 Bug 1006688 - Support capture screen via adb r=mwu 2016-01-21 00:21:50 -08:00
Masayuki Nakano
a27f60facb 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
60c864b0b4 Bug 1231517 - part 3, Add ZoomToRect function to nsIWidget classes r=kats 2016-01-20 16:24:59 -08:00
David Rajchenbach-Teller
39aa5d3bd8 Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa 2016-01-15 11:38:03 +01:00
Masayuki Nakano
eb839af130 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
27aacccf56 Bug 1231042 - clean current composition task and related flag when screen off. r=mchang 2016-01-19 20:58:00 +01:00
Xidorn Quan
33d0496f6c 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
2f087d81b4 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
1eb13214bf 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
e50137d33c Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa 2016-01-15 11:38:03 +01:00
Carsten "Tomcat" Book
d9ebb01c4e merge mozilla-inbound to mozilla-central a=merge 2016-01-19 12:00:45 +01:00
Xidorn Quan
1bc47c9d26 Bug 844948 - Allow changing padding of themed button on OS X. r=mstange,heycam 2016-01-19 16:48:04 +11:00
Sotaro Ikeda
47476bb61f Bug 1049296 - Handle Sideband stream compositing in HwcComposer2D r=mwu,nical 2016-01-18 20:52:32 -08:00
Carsten "Tomcat" Book
6ea747eaa8 Merge mozilla-central to fx-team 2016-01-18 14:24:37 +01:00
Masayuki Nakano
6d1835db0c Bug 1237216 TSFTextStore should forget redundant pending composition events for Korean TIPs r=emk 2016-01-18 16:29:02 +09:00
Sebastian Kaspari
a45d9a269a 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
505bde9809 Backed out changeset e8ad04f3a65f (bug 844948) for reftest failure on OS X 2016-01-18 17:21:12 +11:00
Xidorn Quan
b82f09c525 Bug 844948 - Allow changing padding of themed button on OS X. r=mstange,heycam 2016-01-18 14:20:11 +11:00
Masayuki Nakano
2e2efa4a86 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
50bb3b2a95 Bug 1239855 - Fix for widget positioning/sizing on hidpi displays under Gtk. r=emk 2016-01-18 12:24:06 +00:00
Jonathan Kew
e7618e3501 Bug 1240180 - Optimize native theme scaling for the single-monitor case. r=emk 2016-01-18 13:28:26 +00:00
Daniel Holbert
c3ea34c08d 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
a3d83cdc82 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
55e324df4f 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
d9069d4e7e 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
ed32cfcb37 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
c5c166142e 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
153812304f 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
5ada85535b 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
0a2b568f66 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
516c892924 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
d327724749 merge mozilla-inbound to mozilla-central a=merge 2016-01-15 11:46:47 +01:00
Lee Salzman
65ffd0f47b Bug 1239040 - Fix DrawTargetCairo/DrawTargetSkia LockBits and BorrowedXlibDrawable to work inside PushLayer. r=jrmuizel 2016-01-13 13:11:07 -05:00
Jim Chen
4cc0df527b 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
5888baea5d Backed out changeset 7bd651ae54dd (bug 1192945) to hopefully fix 1231429 a=ritu 2016-01-14 15:40:56 -08:00
Nicholas Nethercote
f436e38f12 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
c3175b27cd Bug 1239530 (part 1) - Remove PuppetWidget::Scroll(), which is dead. r=kats. 2016-01-13 00:28:36 -08:00
Jan de Mooij
995cdcc820 Bug 1237201 part 9 - Fix remaining issues. r=nfroyd 2016-01-14 22:12:13 +01:00
Ryan VanderMeulen
d5431ac1c6 Bug 1239683 - Replace NS_UNCONSTRAINEDSIZE with NS_MAXSIZE in windows/nsWindow.cpp. r=mats 2016-01-14 14:46:29 -05:00
Ryan VanderMeulen
e60376c8b6 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
10a7e60e10 merge mozilla-inbound to mozilla-central a=merge 2016-01-14 11:50:34 +01:00
Kit Cambridge
bd78897a5a Bug 1219855, Part 3 - Fix variable shadowing in OSXNotificationCenter::ShowAlert. r=me 2016-01-13 23:26:41 -07:00
Sotaro Ikeda
0a08d88b1c Bug 1237914 - Remove layers.screen-recording.enabled r=mwu 2016-01-13 20:45:57 -08:00
Sotaro Ikeda
3e94e67a5b Bug 1238876 - Move StartRemoteDrawing() implementation from nsWindow to nsScreenGonk r=mwu 2016-01-13 20:37:56 -08:00