Commit Graph

260 Commits

Author SHA1 Message Date
Robert O'Callahan
e8c3b8e1be Bug 826632. Part 2: Use nsRefPtr<nsViewManager> instead of nsCOMPtr. r=tnikkel
--HG--
rename : view/public/nsIViewManager.h => view/public/nsViewManager.h
extra : rebase_source : c9eabd54bb43d711a8c24222620abfdde674a1f7
2013-01-05 16:12:42 +13:00
Robert O'Callahan
b56cdd701e Bug 826632. Part 1: Merge nsIViewManager into nsViewManager. r=tnikkel
--HG--
rename : view/public/nsIViewManager.h => view/public/nsViewManager.h
extra : rebase_source : 85587555e1f202809cd39fe899570644e6ca4eb3
2013-01-05 16:12:24 +13:00
Nicholas Nethercote
5862e573ef Bug 826158 - Fix two -Wself-assign warnings in widget/gtk2/. r=karlt.
--HG--
extra : rebase_source : cfbd0c5807e7b067a881583c6ac9f48b2848c021
2013-01-03 14:36:53 -08:00
Karl Tomlinson
a272e613db b=821749 remove unnecessary mTransientParent r=roc
--HG--
extra : transplant_source : %D9E%BD%F12%0E%B8U%EB%98%D3%B4%CD%D4%AC/%E5%A9%A6%05
2013-01-03 09:44:19 +13:00
Karl Tomlinson
e49a95aa47 b=821749 remove mWindowGroup, handled by gtk_window_set_transient_for r=roc
--HG--
extra : transplant_source : %AF%E2%D5_h%7B%2A%B2%BCQ%88%CD%1E%DEfq%E7%3B%3E%04
2013-01-03 09:44:12 +13:00
Karl Tomlinson
ec0bdbbe62 b=821749 remove code to give transient-for-none dialogs a separate ICCCM group leader r=roc
This reverts the change for bug 194323, which is now no longer necessary.
Removing this means that the GtkWindow is realized with its event mask set and
oxygen-gtk knows to keep out of our way.

--HG--
extra : transplant_source : %81%A4%C3o%A7%EF%91y%B8%E2%B1%FE%A9%F3v/%0A%CF%2A-
2013-01-03 09:44:06 +13:00
Jim Mathies
bf0ef59040 Bug 819888 - Check the result of nsBaseWidget::GetActiveRollupListener. r=enndeakin 2012-12-31 11:27:04 -06:00
Nicholas Nethercote
df43bc1128 Bug 824397 - Use NS_ENSURE_{TRUE,FALSE,SUCCESS}_VOID(foo) instead of NS_ENSURE_{TRUE,FALSE,SUCCESS}(foo, ). r=derf. 2012-12-23 20:45:57 -08:00
Markus Stange
89d149fbcf Bug 766883 - Don't abort during shutdown when SignalTracerThread is called twice before FireAndWaitForTracerEvent notices; r=ted DONTBUILD
CLOSED TREE
2012-12-21 16:11:24 +00:00
Ed Morley
4e06d10e6f Backout 913296ba049f (bug 766883) since no author was set
CLOSED TREE
2012-12-21 16:09:52 +00:00
Ed Morley
283ed61bcc Bug 766883 - Don't abort during shutdown when SignalTracerThread is called twice before FireAndWaitForTracerEvent notices; r=ted 2012-12-21 16:01:51 +00:00
Joe Drew
d070cfdc5f Bug 716140 - Convert the XPCOM imgIDecoderObserver interface into a private C++ interface, imgDecoderObserver, so we can more easily make changes to it. r=jrmuizel 2012-12-18 11:37:15 -05:00
Masayuki Nakano
e26d8738b2 Bug 813445 part.5 Remove NS_EVENT_FLAG_NO_DEFAULT and NS_EVENT_FLAG_NO_DEFAULT_CALLED_IN_CONTENT r=smaug 2012-12-16 10:26:04 +09:00
Timothy Nikkel
4f9b3f73f8 Bug 805745. WillPaint notification can flush, so re-get the listener after it on GTK2 widget backend. r=karlt 2012-12-12 15:57:08 -06:00
Jonathan Kew
aa8404a74a bug 819725 pt 1 - make widget move & resize methods take floating-point parameters, to allow passing fractional coordinates without rounding. r=roc 2012-12-12 09:57:38 +00:00
Masayuki Nakano
fd0b4af925 Bug 769159 Handle GDK_Shift_Lock as Shift key on GTK r=karlt 2012-12-07 10:06:17 +09:00
Trevor Saunders
580ff17032 bug 817133 - move platform init and shutdown stuff out of nsAccessNodeWrap and ApplicationAccessibleWrap static methods r=surkov 2012-12-01 19:58:25 -05:00
Mats Palmgren
60ccae9fe3 Bug 817574 - Replace NS_ABS with std::abs. r=roc 2012-12-04 13:33:33 +01:00
Karl Tomlinson
2a37cefc14 b=813997 keep window max size to 16 bits r=roc
--HG--
extra : transplant_source : %DB%AA%25%1A6%B8%8F%23%EF%F3%F8%AD%14%C3%B6%87%BE0%D8i
2012-11-28 11:07:11 +13:00
Masayuki Nakano
8e62585dc6 Bug 769548 Support ISO_Level5_Shift as DOM AltGr r=karlt 2012-12-01 18:04:38 +09:00
Alexander Surkov
681c1939e2 Bug 812466 - namespacify Accessible classes, r=tbsaunde 2012-11-18 11:01:44 +09:00
Karl Tomlinson
49def0fe36 b=808114 don't hide mContainer in toplevels, to keep a focus widget for grabs r=roc
--HG--
extra : transplant_source : %8F%FC%95%EEa0%F0%08%A7Yi%80%C0b%06%BE%3Dg%DEY
2012-11-14 23:22:07 -08:00
Karl Tomlinson
f779bed777 b=798157 use ARGB visuals only for popups that will be translucent r=roc
--HG--
extra : transplant_source : %87%9FFG%FA%9E%1D%12i%1C%B9%93%E5%F4%85%C8s%02%7B7
2012-11-13 18:04:42 -08:00
Todd Whiteman
f8382cceca b=809601 correct drag and drop event coords when over child windows r=karlt
--HG--
extra : transplant_source : %FD%BBAYt%96G%D5_%1C%F4D%8F_%40%2C%E6%DA%60%7C
2012-11-13 18:03:01 -08:00
Masayuki Nakano
0f83ed44e6 Bug 805767 part.3 Remove hack for bug 496360 r=roc 2012-11-13 22:04:45 +09:00
Karl Tomlinson
a5edb2d76f b=808873 restore null check on gFocusWindow accidentally dropped in dfe49308dc99 r=trivial
--HG--
extra : transplant_source : n5S%82%B8n%18h%FD%86%A4%D9%19%96%D1%29%20%02%0D%CE
2012-11-07 18:05:01 +13:00
Karl Tomlinson
3c9b8dc8ba b=806583 remove unnecessary extra space added for textfield/entry in 1556064f1c20 r=mattwoodrow
--HG--
extra : transplant_source : %D4%A1%80%A3%C6%DD%21%E7%3D4%EC%7B%7E%10%A0%98%F9%D5%CCu
2012-11-07 10:52:36 +13:00
Karl Tomlinson
3047830763 b=806583 don't draw the entry background outside its widget r=roc
--HG--
extra : transplant_source : %1D1%E5x6%22%C2%9A%1E%B5%A6%81%1E%B0%B5%BF%D8J%13k
2012-11-07 10:52:36 +13:00
Karl Tomlinson
c553a32f09 b=808873 return toplevel GtkWidget for NS_NATIVE_SHELLWIDGET and use it r=roc
--HG--
extra : transplant_source : _gK%D6%5D%96%1A%3A%3A%21j%40E%09%FF%84%D3%8F%C6%A5
2012-11-07 10:50:37 +13:00
Olivier Langlois
6cf7e7fde6 b=805529 wake up for Gecko events even in a nested event loop r=karlt
--HG--
extra : transplant_source : %D2%AF%8B%EFm%9E%7B%999%231%DF%A8%CD%3FW%B8%908j
2012-11-02 12:29:20 +13:00
Karl Tomlinson
b2a7ad7d3b b=746775 log CaptureRollupEvents parameters r=roc
--HG--
extra : transplant_source : %1F%2A-h%A1%B4C%8FsnH%02L%DD%B0%25%AE%B5%22%9F
2012-10-31 15:44:46 +13:00
Karl Tomlinson
9f9868640e Bug 707623 - gtk_grab_add(mShell) instead of (mContainer) to avoid double key event dispatch r=roc, feedback=mconley. 2012-10-30 11:49:10 -04:00
Nathan Froyd
bd55a07f0e Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Jacek Szpot
0b35b0e3d8 Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan 2012-10-26 15:32:10 +02:00
Phil Ringnalda
278263cb2f Merge m-c to m-i 2012-10-29 14:37:11 -07:00
Ian Neal
22b3a4928f Bug 805753 - Gtk 2.10 compat layer misses gtk_widget_set_has_window r=roc 2012-10-28 22:13:50 +00:00
Masayuki Nakano
458de7a8e2 Bug 801989 part.3 Set InputContext::mNativeIMEContext on Linux r=karlt 2012-10-27 08:35:21 +09:00
Neil Deakin
c56bc18541 Bug 701760, merge <select> and popup manager rollup handling, so that select elements don't cancel out any popup rollup listeners, r=mats 2012-10-26 09:15:22 -04:00
Karl Tomlinson
71316ceb81 b=793501 attach DocumentViewer to top GTK widget r=roc
--HG--
extra : transplant_source : F%94%EC%07%23%7B2L%BCr%28%C5%088%06%FD%CD%9A%BAe
2012-10-23 11:46:45 +13:00
Karl Tomlinson
901b0f8955 b=793501 invalidate new regions of even toplevel resized windows r=roc
--HG--
extra : transplant_source : %F1%A6%EDiKo%13%8D%8B%F5%7E%F9%2A%D2%D6%AC_%CA%ED%90
2012-10-23 11:40:50 +13:00
Karl Tomlinson
4e81966a64 b=793501 don't log child window XIDs as this has the side effect of creating X Windows early r=roc
--HG--
extra : transplant_source : -%3AP%3F%8F4V%F3%C2K%B7s%89%DA%0D%3A%DC6O%97
2012-10-23 11:40:24 +13:00
Karl Tomlinson
b98d6b1b6f b=793501 don't use a separate GdkWindow for MozContainer (unless necessary) r=roc
--HG--
extra : transplant_source : %FA1%A7%EA%3D%D8a%87%F4%E0%93%9FeP%89%EB%DD%DAI%12
2012-10-23 11:39:59 +13:00
Karl Tomlinson
4b6aa777d3 b=793501 remove unused event handler parameters r=roc
--HG--
extra : transplant_source : %E9%E8%FD1/%11u6%A2C%91%0B%5C%BA%C0P%E2%17S%09
2012-10-23 11:33:30 +13:00
Karl Tomlinson
6c99c8db59 b=793501 set gFocusWindow on fallback instead of early, which interfered with container window focus change detection in SetFocus() r=roc
--HG--
extra : transplant_source : %AD%07%A7%EB/%D6M%F3i%21%85d%8D%E8%92K%D6%1D%1F8
2012-10-23 11:31:53 +13:00
Mike Conley
9eb3320182 Bug 746775 - Clicks to close a context-menu in a panel are also consumed by the panel. r=jmathies,enndeakin. 2012-10-29 12:54:52 -04:00
Matt Woodrow
32f9e8cdc6 Bug 797431 - Add a flags parameter to PaintWindow. r=roc 2012-10-15 17:53:37 +13:00
Trevor Saunders
3d3592cd63 bug 798595 - remove useless prmem.h includes r=ehsan 2012-10-04 02:14:06 -04:00
Karl Tomlinson
715821d96f b=408284 don't shape for transparency on ARGB windows r=roc
--HG--
extra : rebase_source : d4e07ba252b1ec13c887ecab2f06361752890b3b
2012-10-03 19:53:57 +13:00
Chris Coulson
cfe99b66eb b=408284 use ARGB visuals for popup windows when window manager is compositing r=karlt
--HG--
extra : rebase_source : c562667491b564562f5350a9b8a5f0b7d882be7e
2012-10-03 19:53:53 +13:00
Chris Coulson
58795c5ac7 b=408284 let MozContainer widgets inherit parent colormap instead of explicitly setting rgb colormap r=karlt
--HG--
extra : rebase_source : 1b7f60d38ffa20c404c777a5ba1e1cc3383f19a0
2012-10-03 19:53:46 +13:00
Karl Tomlinson
0d97afb958 b=408284 clear transparency bitmap when window is hidden r=roc
--HG--
extra : rebase_source : ac16e4b25da2684fd7fd80a6d16ceb2ae2d4caaf
2012-10-03 11:37:06 +13:00
Karl Tomlinson
c8b1517414 b=408284 no need to apply transparency bitmap on each show r=roc
--HG--
extra : rebase_source : 5f75d84bbf2ae142f85287da0b1998219fe4585e
2012-10-03 11:36:08 +13:00
Karl Tomlinson
142125172b b=795812 shape out translucent windows where alpha < 1/2 r=roc
--HG--
extra : rebase_source : 86d6d748e7e87ab527b8ee88e3dee1abb16133be
2012-10-03 11:35:28 +13:00
Jonathan Kew
2c2d5f0ecf bug 674373 pt 4 - pass device-to-CSS pixel ratio to LookAndFeel code when requesting a font style. r=roc 2012-09-29 12:35:08 +01:00
Isaac Aggrey
997db4d142 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Matt Woodrow
cdbc43ed27 Bug 539356 - Part 9a - Add new display list invalidation API to nsDisplayItem and implement it. r=roc 2012-08-29 17:39:01 +12:00
Ed Morley
c863356300 Revert mozilla-inbound to e4dd1fa6d222 for crashes and test failures on a CLOSED TREE 2012-09-27 16:34:46 +01:00
Matt Woodrow
c73c0db2f1 Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt 2012-08-29 17:38:58 +12:00
Karl Tomlinson
71dd82ecdf b=794285 restore support for building against GTK+ 2.10 r=glandium
--HG--
extra : transplant_source : %D0%2B6%19%96%99%8D%21%F5%5D8%92%FC%1E%1D%BB%B77h%81
2012-09-27 12:23:00 +12:00
Isaac Aggrey
b33410feb2 Bug 789847 - Remove PR_CALLBACK usage from tree 2012-09-25 11:18:38 -05:00
Mike Hommey
fb05de0176 Bug 793634 - Force builds to be compatible with gtk 2.18/glib 2.22. r=karlt 2012-09-25 14:47:18 +02:00
Karl Tomlinson
3e96a1930e b=792305 don't update mask bits outside the mask r=roc
--HG--
extra : rebase_source : 682a8780f0e54d082ad2f35c1b074c3fe2d82817
2012-09-24 11:17:31 +12:00
Karl Tomlinson
97a28264b2 b=792305 delay shape mask update from resize to expose r=roc
--HG--
extra : rebase_source : 6b00c1e4d31fc1d5b6dc4d09882591da82dc622d
2012-09-24 11:15:48 +12:00
Marco Castelluccio
6bef6df68e Bug 630346 - Use basic layers for windows with transparency r=karlt
--HG--
extra : rebase_source : c078915a7455b61e0aff76af3cea735c4342a219
2012-09-24 11:22:28 +12:00
Jim Mathies
efdf204165 Bug 726615 - Completely remove MozTouch event support from mc. r=smaug 2012-09-22 14:28:08 -05:00
Mats Palmgren
45ce0d46d6 Bug 791518 - Use correct GDK type for gtk_selection_data_get_length() return value to avoid signed to unsigned conversion of -1 and subsequent crash. r=karl 2012-09-18 01:05:05 +02:00
Martin Stransky
d37c6bf4d2 Bug 627699 - Port GTK2 to GTK3, gtk-rest. r=karlt 2012-09-13 21:56:59 -04:00
Martin Stransky
e89d69c269 Bug 627699 - Port GTK2 to GTK3, nsBidiKeyboard patch. r=karlt 2012-09-13 21:56:58 -04:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
f69de91a53 Remove two unused variables, no bug
--HG--
extra : rebase_source : 1d2fb26b146037905d729c0bc68105969c63de61
2012-08-27 17:30:56 -04:00
Ehsan Akhgari
67ec93e0aa Bug 579517 - Part 8: Automatically convert some more NSPR numeric type usages that were landed on mozilla-inbound; r=bsmedberg 2012-08-22 12:32:21 -04:00
Ehsan Akhgari
57ac5ddc72 Merge the landing of bug 579517 to mozilla-inbound 2012-08-22 12:12:15 -04:00
Karl Tomlinson
232b0c107b b=671820 implement async nsIFilePicker::Open and make sync Show close window on response r=roc
--HG--
extra : transplant_source : %AC%C4%9AB%03%FC%29tE%3D%10X%7F%B4%ED%B6%07%D8%5C%BC
2012-08-22 16:56:55 +12:00
Masayuki Nakano
c5b7f1185f Bug 784246 KeymapWrapper::GuessGDKKeyval() should return GDK_colon for NS_VK_COLON r=karlt 2012-08-21 13:35:23 +09:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Neil Deakin
279f4c393a Bug 743975 - remove the event handler argument to widget creation methods, r=tn 2012-08-15 14:53:09 -04:00
Neil Deakin
3e40b0b005 Bug 743975 - use a widget listener interface instead of the remaining events that don't need an event, r=tn,jmathies,netzen,smichaud,karlt,blassey,chrisjones 2012-08-15 14:52:42 -04:00
Neil Deakin
18bbbb0ab6 Bug 743975 - remove NS_DESTROY event, r=smaug 2012-08-15 14:52:41 -04:00
Neil Deakin
ebcdb10b44 Bug 743975 - remove accessibility events from widget, replace with a nsBaseWidget::GetAccessible method, r=trevsaunders 2012-08-15 14:52:37 -04:00
Neil Deakin
447a47298e Bug 743975 - move theme and window size done events to direct calls, r=smaug 2012-08-15 14:52:35 -04:00
Masayuki Nakano
227be1a7d1 Bug 719320 part.13 Replace legacy mouse scroll event dispatchers with D3E wheel event dispatcher on GTK r=karlt 2012-08-12 10:42:37 +09:00
Masayuki Nakano
c748a0f833 Bug 719320 part.1 Add DOM3 WheelEvent r=smaug, sr=jst 2012-08-12 10:42:34 +09:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Martin Stransky
92d961b051 Bug 544088 - Support Xt plugins OOP. r=karlt 2012-08-01 16:34:08 -04:00
Neil Deakin
e1405e0a93 Bug 357725, support minimum and maximum size constraints on windows and popups, r=mats,jmathies,karlt,smichaud,sr=neil 2012-07-30 20:43:29 -04:00
David Zbarsky
06ea1f66f2 Bug 778519 - Don't include Layers.h everywhere Part 2 r=cjones 2012-07-30 17:42:26 -07:00
Aryeh Gregor
903f6c9c84 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Ehsan Akhgari
95ba3378b1 Bug 777829 - Remove ThemeRenderer::mWindow since it's never used; r=karlt
--HG--
extra : rebase_source : 3898c17e3fe6740b6cecbe0665b9b60710d356b4
2012-07-26 16:12:03 -04:00
Ehsan Akhgari
fb48966bb3 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (more widget parts); blanket-r=bzbarsky
--HG--
extra : rebase_source : 6fa3942059662d5d2095de119b20bc63db1f553b
2012-07-26 15:17:33 -04:00
Ehsan Akhgari
229c56c734 Remove an unused local variable (no bug)
--HG--
extra : rebase_source : 4b35da5a24f61289d9d36a195d0154028d629249
2012-07-26 15:17:26 -04:00
Mark Capella
fd9b625002 Bug 775041 - Make nsIWidget::IsEnabled return bool, r=roc, f=ms2ger 2012-07-23 01:19:08 -04:00
Mark Capella
430f93c039 Bug 769998 - Make nsIWidget::IsVisible return bool, r=roc, f=ms2ger 2012-07-19 04:57:50 -04:00
Masayuki Nakano
fc66962585 Bug 751749 part.4 Give higher priority to Meta than Super and Hyper due to better compatibility with Web applications r=karlt 2012-07-19 10:28:17 +09:00
Masayuki Nakano
7a210f7746 Bug 751749 part.2 Support Win key for a modifier of shortcut key and access key r=smaug, enn 2012-07-19 10:28:16 +09:00
Masayuki Nakano
19a78bbfe1 Bug 751749 part.1 Decide one modifier for a modifier flag r=karlt 2012-07-19 10:28:16 +09:00
David Zbarsky
88371b030a [Bug 774505] Don't include Layers.h everywhere r=cjones 2012-07-18 12:31:40 -04:00
Masayuki Nakano
b5584f2955 Bug 769190 part.2 Rename nsInputEvent::IsWin() and widget::MODIFIER_(SCROLL|WIN) to nsInputEvent::IsOS() and widget::MODIFIER_(SCROLLLOCK|OS) r=smaug 2012-07-06 09:42:05 +09:00
Ehsan Akhgari
5e6974df88 Backout changeset f568fc280fb0 (bug 539356) because of performance and correctness regressions 2012-07-03 20:24:55 -04:00
David Zbarsky
ae718ee1c0 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00