Commit Graph

400 Commits

Author SHA1 Message Date
Lee Salzman
e02fa1a05b Bug 1194397 - Force gdk_window_ensure_native on gdk window creation. r=acomminos 2015-08-25 18:42:40 -04:00
Brian Birtles
490e56161d Fix bustage from changeset 5c5dc6f367ac (bug 1026803) r=bustage on CLOSED TREE 2015-08-24 15:24:42 +02:00
Brian Birtles
c6515ce844 Bug 1026803 part 8 - Add ability for CurrentX11TimeGetter to perform an asynchronous request of the current time; r=karlt 2015-08-12 10:35:38 +09:00
Brian Birtles
977c90b33a Bug 1026803 part 7 - Store the CurrentX11TimeGetter as a member object on nsWindow; r=karlt
In preparation for making CurrentX11TimeGetter capable of performing an
asynchronous request of the current time, this patch revises the lifetime of
such objects so that they are stored on nsWindow.
2015-08-11 17:13:44 +09:00
Brian Birtles
9235481bbe Bug 1026803 part 5 - Convert CurrentXXXTimeGetter classes from functors to helper classes; r=karlt
Previously the CurrentX11TimeGetter and CurrentWindowsTimeGetter classes acted
as functors with a single operator() method. In preparation for handling clock
skew, this patch refactors these two helper classes into regular classes with
two named methods:

  GetCurrentTime which matches the existing operator() method, and

  GetTimeAsyncForPossibleBackwardsSkew which will be used when possible
  backwards skew is detected to fetch the current time asynchronously.

Some renaming is also included to match the expanded role of these classes.
2015-02-19 14:10:00 +09:00
Brian Birtles
0a52613355 Bug 1026803 part 4 - Convert GTK native event times to timestamps; r=karlt
This patch adds a helper class to widgets/gtk/nsWindow.cpp similar to the one in
widgets/windows/nsWindow.cpp and uses it to convert native event times to
mozilla::TimeStamp objects on events returned by this class.

This is similar to the operations performed for Windows native event times that
were added in bug 77992.
2015-08-11 16:40:34 +09:00
Xidorn Quan
41f4606b99 Bug 1190316 - Apply fullscreen transition on only the target monitor. r=roc 2015-08-13 08:53:53 +10:00
Gabor Krizsanits
41e195f924 Bug 863512 - Fixing xul dnd panels for linux. r=enndeakin 2015-08-05 13:19:44 +02:00
Lee Salzman
c5954fff6c Bug 1190935 - Fix race condition in gtk window EndRemoteDrawingInRegion. r=nical 2015-08-06 11:02:03 -04:00
Masayuki Nakano
a5481c9e06 Bug 1191213 nsBaseWidget::NotifyWindowMoved() shouldn't notify IME when native IME handler doesn't have focus r=m_kato 2015-08-06 15:57:58 +09:00
Masayuki Nakano
0cbbbf40fe Bug 1186017 part.1 Rename nsGtkIMModule to mozilla::widget::IMContextWrapper r=m_kato+kerlt 2015-07-27 08:23:04 +09:00
Xidorn Quan
7bf364a190 Bug 1160014 part 6 - Implement fullscreen transition for GTK. r=roc 2015-07-24 09:45:00 +10:00
Wes Kocher
f3c590982c Backed out changeset b3d392163411 (bug 1160014) (Linux part), too CLOSED TREE 2015-07-21 16:54:09 -07:00
Xidorn Quan
ea77f41288 Bug 1160014 part 6 - Implement fullscreen transition for GTK. r=roc 2015-07-22 09:07:46 +10:00
Andrew Comminos
c0b8927abf Bug 1182972 - Fallback to GTK monitor scale factor when mGdkWindow is null. r=karlt 2015-07-15 20:26:00 -04:00
Karl Tomlinson
014966b4e5 bug 1182972 no need to pass member variable bounds to NativeResize r=acomminos 2015-07-14 15:24:56 +12:00
Karl Tomlinson
9958d7a6c6 bug 1182972 remove mNeedsMove/mNeedsResize logic; instead process changes immediately r=acomminos 2015-07-14 15:23:47 +12:00
Karl Tomlinson
217f09568a bug 1182972 create NativeMove helper method r=acomminos 2015-07-13 14:29:05 +12:00
Karl Tomlinson
49ebfaff65 bug 1182972 remove unused aRepaint parameter from NativeResize methods r=acomminos 2015-07-13 13:57:23 +12:00
Andrew Comminos
d7efd9b1ab Bug 1180971 - Fix X11 SHM invalidation regions on HiDPI with GTK3. r=karlt 2015-07-06 16:57:00 +02:00
Karl Tomlinson
c78aac0903 bug 1180008 don't measure size of decorations for override-redirect windows r=acomminos 2015-04-21 19:52:00 +12:00
Karl Tomlinson
ddd5c6f1f4 bug 1180008 use mGdkWindow instead of finding it from gtk_widget_get_window(mShell) r=acomminos
Since https://hg.mozilla.org/mozilla-central/rev/9541dbf6e020#l2.184
there is only one GdkWindow per nsWindow.

The mGdkWindow pointer is cleared in OnContainerUnrealize() before the shell
widget destruction completes:
https://hg.mozilla.org/mozilla-central/annotate/50b95032152c/widget/gtk/nsWindow.cpp#l2480
2015-04-21 19:06:41 +12:00
Karl Tomlinson
19d1fa70ee bug 1180008 provide gtk_window_get_window_type for old GTK versions r=glandium 2015-04-21 18:17:24 +12:00
Andrew Comminos
963f9d0f1c Bug 1177171 - Round widget coordinates on GTK3. r=karlt 2015-06-29 11:50:00 -04:00
Nathan Froyd
92a8124fef Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Andrew Comminos
737088fb02 Bug 1131978 - Acknowledge GDK's scale factor in scale calculation. r=karlt 2015-06-26 10:19:00 +02:00
Botond Ballo
3bdeeb088b Bug 1177024 - Fix clang warnings-as-errors in GTK3 build. r=karlt 2015-06-21 15:27:07 -04:00
Hubert Figuière
e10784e52e Bug 1174374 - gdk_cursor_new() is deprecated in 3.16. Use gdk_cursor_new_for_display(). r=karlt 2015-06-12 22:38:20 -04:00
Masayuki Nakano
26a106d6c1 Bug 1130937 part.3 nsGtkIMModule should adjust candidate window position when layout is changed r=m_kato 2015-06-11 19:50:15 +09:00
Masayuki Nakano
63107128f0 Bug 1130937 part.1 nsGtkIMModule should cache selection r=m_kato 2015-06-11 19:50:15 +09:00
Xidorn Quan
6a21012e1a Bug 1161802 part 1 - Add FullscreenChanged callback in WidgetListener. r=roc 2015-06-10 23:13:12 +12:00
Andrew Comminos
4feb769b0d Bug 1171029 - Only omit legacy scroll events on GTK3. r=karlt 2015-06-03 07:47:00 -04:00
Lee Salzman
d3f290522b Bug 1168495 - Restrict updated region to fall within GTK window. r=jrmuizel 2015-05-26 14:09:18 -04:00
Michael Layzell
9eb3449703 Bug 1168219 - Make nsIWidget::Configuration::mChild a smart pointer. r=vlad 2015-05-25 14:45:00 -04:00
Lee Salzman
af66fd5e58 Bug 1159273 - Fix out-dated Cairo usage that may fail to build or work properly when system Cairo is involved. r=jrmuizel 2015-05-13 12:00:30 +09:00
Lee Salzman
db27f83933 Bug 1127752 - fixes for using Skia and OMTC with GTK3. r=jrmuizel 2015-05-13 11:54:17 +09:00
Kartikaya Gupta
f0ac716fbd Bug 1161634 - Allow synthesizing native mouse-scroll events on Linux. r=karlt 2015-05-11 17:21:34 -04:00
Anthony Tseng
fde5de9cff Bug 1158425 - Rename _SYNTH event names. r=smaug 2015-05-01 22:06:00 -04:00
Kartikaya Gupta
f8465229d0 Bug 1146349 - Make the native event synthesization functions in DOMWindowUtils async. r=smaug 2015-04-14 11:36:36 -04:00
Olli Pettay
e42357febc Backout Bug 930793 because of talos regressions,r=backout 2015-04-13 19:02:27 +03:00
Olli Pettay
c1c812eafe Bug 930793 - Remove favor performance mode, r=avih,roc 2015-04-12 23:08:55 +03:00
Nicolas Silva
166bce0b62 Bug 1132854 - Remove the gfx::ToIntSize conversion helper. r=Bas 2015-04-07 16:08:57 +02:00
Mike Hommey
338d086ead Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Mats Palmgren
073bd5f952 Bug 1149041 - Make nsIWidget::SizeConstraints use LayoutDeviceIntSize instead of unit-less nsIntSize. r=roc 2015-03-30 11:35:25 -04:00
Carsten "Tomcat" Book
8e43fcbf46 Backed out changeset 9534a3d38191 (bug 1149041) 2015-03-30 15:03:19 +02:00
Mats Palmgren
56c709e01b Bug 1149041 - Make nsIWidget::SizeConstraints use LayoutDeviceIntSize instead of unit-less nsIntSize. r=roc 2015-03-30 10:37:34 +00:00
David Anderson
a431a5db58 Ensure input events account for APZ transforms on Gtk. (bug 1143567 part 2, r=kats) 2015-03-16 16:29:55 -07:00
Nicolas Silva
e028df6dbb Bug 1128934 - Avoid calling GetClientBounds from BasicComposior. r=roc, karlt 2015-02-14 12:37:32 +01:00
dvander@alliedmods.net
cfaa1866d1 Factor out how APZ-aware events are dispatched from widgets. (bug 1126090 part 2, r=kats) 2015-03-06 14:26:59 -08:00
Martin Stransky
fd54d06886 Bug 635134 - Adds X11 run-time check for Gtk3 backend. r=karlt 2015-03-05 03:56:00 +01:00