Граф коммитов

188 Коммитов

Автор SHA1 Сообщение Дата
Makato Kato 5a68a1b8d5 Bug 978679 - Implement touch events for GTK3. r=karlt
--HG--
extra : commitid : 2tbZZf41zmN
extra : rebase_source : d861252c9bf78b6ffd68dd2c7f14fbf4ef5afdf1
2015-10-19 23:04:52 +13:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Andrew Comminos ffd56892f2 Bug 1209774 - Transform from GDK coords to layout device pixels before calling DispatchEvent. r=karlt 2015-10-13 19:14:54 -07:00
Martin Stransky 5a246716d1 Bug 1210249 - don't mess with toplevel widget when client side decorations are enabled. r=karlt 2015-10-12 09:56:00 +02:00
Lee Salzman 17a52110f3 Bug 1196494 - part 2: only update nsWindow client offset when _NET_FRAME_EXTENTS property actually changes. r=eihrul 2015-10-09 09:24:48 -04:00
Andrew Comminos 38adbbea67 Revert "Bug 1209774 - Transform from GDK coords to layout device pixels before calling DispatchEvent. r=karlt"
This reverts commit bc5ba9c53f2a2c08a17b028c0aa8ff24e35847b6.
2015-10-09 09:36:13 -07:00
Andrew Comminos b591904211 Bug 1209774 - Transform from GDK coords to layout device pixels before calling DispatchEvent. r=karlt 2015-10-09 09:22:38 -07:00
Nicholas Nethercote 342466f878 Bug 1208345 - Remove gfxContext::GraphicsOperator. r=jwatt.
Also...

- Rename various "operator" identifiers as "op" to match |CompositionOp|.

- Rename |nsBackgroundLayerState::mCompositingOp| as |mCompositionOp| to match
  |CompositionOp|.

- Remove some deprecated functions that are no longer needed.

--HG--
extra : rebase_source : 74e9b6eecf6f442e27cc18fd4ae6f668a45188aa
2015-09-24 22:38:58 -07:00
Martin Stransky 952a7c1bfd Bug 1195002 - draw to MozContainer window to allow GTK to draw decorations, r=karlt 2015-09-24 04:50:00 +02:00
Nicholas Nethercote 842dd1cf5a Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.

--HG--
extra : rebase_source : 67fd15f87222b16defa70ef795c6d77dfacf1c36
2015-09-23 11:49:05 -07:00
Wes Kocher 407f41a2b0 Backed out changeset 1f327c67db57 (bug 1195002) for likely breaking ASAN/mulet tests CLOSED TREE 2015-09-23 09:28:51 -07:00
Martin Stransky 6e2baa8bd8 Bug 1195002 - "titlebar overlaps chrome UI on Linux Elementary OS Freya / with GTK_CSD (Gtk3)". r=karlt 2015-09-23 00:58:00 +02:00
Karl Tomlinson 4ebdbb181a bug 1206564 skip copying of listeners r=roc
--HG--
extra : rebase_source : 04eeacb4ae74459c6963f3bfcacca920974fda2c
2015-09-19 00:51:03 +12:00
Lee Salzman 4fbc44de5a Bug 1205045 - remove GTK calls from compositor thread. r=jmuizelaar 2015-09-15 16:46:39 -04:00
Nicolas Silva 9d2f48b66c Bug 1156182 - Prevent widgets from creating a LayerManager during shutdown. r=sotaro 2015-09-15 17:58:06 +02:00
Robert O'Callahan 64f64d5592 Bug 1191293. Remove harmless assertion that is triggered by GTK3. r=masayuki
--HG--
extra : commitid : 7Lvn48kMqt6
extra : rebase_source : 6de29b34800555f4cfca78260fd784f6b54f89e5
2015-08-31 15:11:04 +12:00
Masayuki Nakano ed4dac1ca6 Bug 895274 part.193 Rename NS_COMPOSITION_CHANGE to eCompositionChange r=smaug 2015-09-11 21:21:27 +09:00
Masayuki Nakano 6b885d1496 Bug 895274 part.184 Rename NS_WHEEL_WHEEL to eWheel r=smaug 2015-09-11 01:59:54 +09:00
Masayuki Nakano ac6c3eb8f7 Bug 895274 part.168 Rename NS_CONTENT_COMMAND_REDO to eContentCommandRedo r=smaug 2015-09-11 01:59:53 +09:00
Masayuki Nakano a8efbc56fa Bug 895274 part.167 Rename NS_CONTENT_COMMAND_UNDO to eContentCommandUndo r=smaug 2015-09-11 01:59:53 +09:00
Masayuki Nakano 62ac576782 Bug 895274 part.165 Rename NS_CONTENT_COMMAND_PASTE to eContentCommandPaste r=smaug 2015-09-11 01:59:52 +09:00
Masayuki Nakano 45c425c6fb Bug 895274 part.164 Rename NS_CONTENT_COMMAND_COPY to eContentCommandCopy r=smaug 2015-09-11 01:59:52 +09:00
Masayuki Nakano 639ddbf13f Bug 895274 part.163 Rename NS_CONTENT_COMMAND_CUT to eContentCommandCut r=smaug 2015-09-11 01:59:52 +09:00
Masayuki Nakano a8fd5ffc76 Bug 895274 part.152 Rename NS_QUERY_SELECTED_TEXT to eQuerySelectedText r=smaug 2015-09-10 10:40:05 +09:00
Masayuki Nakano 811d0fac7e Bug 895274 part.81 Rename NS_DRAGDROP_OVER to eDragOver r=smaug 2015-09-02 15:08:02 +09:00
Masayuki Nakano cafe2dfc67 Bug 895274 part.51 Rename NS_CONTEXTMENU to eContextMenu r=smaug 2015-09-01 00:20:06 +09:00
Xidorn Quan f46a93871a Bug 1196163 part 1 - Use nsSizeMode instead of int32_t for nsIWidget::{SizeMode,SetSizeMode}. r=roc
--HG--
extra : source : cf438b9cb26ae512f792f075e4e22537ad6a38a7
2015-08-29 11:12:41 +10:00
Masayuki Nakano bd4bf17fbd Bug 895274 part.29 Rename NS_MOUSE_EXIT_WIDGET to eMouseExitFromWidget r=smaug 2015-08-29 08:58:31 +09:00
Masayuki Nakano 9895f90eca Bug 895274 part.28 Rename NS_MOUSE_ENTER_WIDGET to eMouseEnterIntoWidget r=smaug 2015-08-29 08:58:31 +09:00
Masayuki Nakano db00b74a82 Bug 895274 part.27 Rename NS_MOUSE_BUTTON_DOWN to eMouseDown r=smaug 2015-08-29 08:58:30 +09:00
Masayuki Nakano 30fdd39afb Bug 895274 part.26 Rename NS_MOUSE_BUTTON_UP to eMouseUp r=smaug 2015-08-29 08:58:30 +09:00
Masayuki Nakano 717c415187 Bug 895274 part.25 Rename NS_MOUSE_MOVE to eMouseMove r=smaug 2015-08-29 08:58:29 +09:00
Masayuki Nakano ba5b3f3fe6 Bug 895274 part.11 Rename NS_KEY_DOWN to eKeyDown r=smaug 2015-08-29 08:58:27 +09:00
Masayuki Nakano 28c9f34179 Bug 895274 part.10 Rename NS_KEY_UP to eKeyUp r=smaug 2015-08-29 08:58:27 +09:00
Masayuki Nakano d311a11cc1 Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug 2015-08-29 08:58:27 +09:00
Masayuki Nakano 0d22745cda Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug 2015-08-26 21:56:59 +09:00
Chris Peterson 7d28169642 Bug 1198128 - Fix -Wshadow warnings in widget/gtk. r=karlt 2015-08-23 17:55:09 -07:00
Lee Salzman c864a9b192 Bug 1194397 - Force gdk_window_ensure_native on gdk window creation. r=acomminos
--HG--
extra : rebase_source : 5c40a4fc9f3bef1d1034609e2e6e5f03dc36c88b
2015-08-25 18:42:40 -04:00
Brian Birtles 3ae8210730 Fix bustage from changeset 5c5dc6f367ac (bug 1026803) r=bustage on CLOSED TREE
--HG--
extra : rebase_source : 34d0ad10e3cd76e558ce8792672e3a6289a84edb
2015-08-24 15:24:42 +02:00
Brian Birtles 2a6e6986a9 Bug 1026803 part 8 - Add ability for CurrentX11TimeGetter to perform an asynchronous request of the current time; r=karlt
--HG--
extra : rebase_source : 0f0fa181535e5c0f132cbefc9bc6d3ae2bb69c50
2015-08-12 10:35:38 +09:00
Brian Birtles 68ca603000 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.

--HG--
extra : rebase_source : 486c81ad5e64ee6420907babcc97262412ff5caa
2015-08-11 17:13:44 +09:00
Brian Birtles 9a127183cd 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.

--HG--
extra : rebase_source : 4d46e09bd09cbb0dbffcb0aa46742157384d37e8
2015-02-19 14:10:00 +09:00
Brian Birtles 1f60d5ca37 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.

--HG--
extra : rebase_source : a6c4769e7da88bb4644edf8954c923a88e1c04fd
2015-08-11 16:40:34 +09:00
Xidorn Quan f63a930fb6 Bug 1190316 - Apply fullscreen transition on only the target monitor. r=roc
--HG--
extra : source : b3015229dd6997970ce2634b6fcf393f2f702e85
2015-08-13 08:53:53 +10:00
Gabor Krizsanits 8996db91c1 Bug 863512 - Fixing xul dnd panels for linux. r=enndeakin 2015-08-05 13:19:44 +02:00
Lee Salzman 7ac4d202b1 Bug 1190935 - Fix race condition in gtk window EndRemoteDrawingInRegion. r=nical 2015-08-06 11:02:03 -04:00
Masayuki Nakano 61074e4e20 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 b45368f471 Bug 1186017 part.1 Rename nsGtkIMModule to mozilla::widget::IMContextWrapper r=m_kato+kerlt
--HG--
rename : widget/gtk/nsGtkIMModule.cpp => widget/gtk/IMContextWrapper.cpp
rename : widget/gtk/nsGtkIMModule.h => widget/gtk/IMContextWrapper.h
2015-07-27 08:23:04 +09:00
Xidorn Quan 7ec583cc8f Bug 1160014 part 6 - Implement fullscreen transition for GTK. r=roc
--HG--
extra : source : ae8bf45b7efcd297ad92039b5ea6985dbfa725e9
2015-07-24 09:45:00 +10:00