Commit Graph

355 Commits

Author SHA1 Message Date
Ryan VanderMeulen
5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Jim Mathies
a0edcafb63 Bug 1152326 - When processing plugin updates only update the visibility of the set of plugins associated with the same compositor. r=aklotz 2015-06-17 15:39:09 -05:00
Bob Owen
dce35c582d Bug 1165903: For Windows NPAPI do window re-parenting in the chrome process to allow for sandboxing. r=jimm 2015-06-15 16:08:51 +01:00
Kartikaya Gupta
49c13c1c35 Bug 1055557 - Add a ZoomConstraintsClient class to manage pushing zoom constraints updates to the APZ code. r=botond
Original patch by Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>.
2015-06-17 12:32:42 -04:00
Jim Chen
ada45abfc5 bug 1112212 - Set flag in InputContext for IME-unaware webapps; r=masayuki 2015-06-16 19:02:39 -04:00
David Anderson
46807997bc Add an API for snapshotting widgets as they are presented by the operating system. (bug 1167477, r=mattwoodrow, dom r=khuey)
--HG--
extra : rebase_source : f750028018bc04eddf31a1e3810e013b1d8f1631
2015-06-04 14:19:06 -07:00
David Anderson
b2eb29a9c5 Use widgets for APZ checks, rather than gfxPrefs. (bug 1162064, r=kats,mstange) 2015-06-04 16:51:10 -04:00
Xidorn Quan
571b237a91 Bug 1105939 part 6 - Add a method to nsIWidget for widget to distinguish between fullscreen mode and DOM fullscreen. r=roc
--HG--
extra : source : 9a40e94d9ddb089bf09ac110333080ec8f84835a
2015-06-04 13:49:34 +12:00
Michael Layzell
3f98e94e29 Bug 1168219 - Make nsIWidget::Configuration::mChild a smart pointer. r=vlad 2015-05-25 14:45:00 -04:00
Masayuki Nakano
ee32a82c8d Bug 1130935 part.6 Selection change notification should have selection range and writing mode information r=smaug 2015-05-15 10:18:08 +09:00
Lee Salzman
e38cad0b37 Bug 1127752 - fixes for using Skia and OMTC with GTK3. r=jrmuizel 2015-05-13 11:54:17 +09:00
David Anderson
8a9daf3775 Enable APZ for all Desktop windows if E10s is enabled. (bug 1163115, r=kats) 2015-05-12 01:26:01 -04:00
Kartikaya Gupta
85f09c0ea6 Bug 1162179 - Don't create APZCTreeManagers for windows which aren't multiprocess. r=dvander 2015-05-06 19:15:10 -04:00
Andrea Marchesini
ade2831035 Bug 1156632 - Remove unused forward class declarations - patch 6 - the rest of the tree, r=ehsan 2015-04-22 08:29:24 +02:00
David Anderson
c99aec898f Fix APZ target confirmations arriving before dependent layer transactions. (bug 1154130, r=kats) 2015-04-14 12:24:32 -04:00
Kartikaya Gupta
19ef59aa9f Bug 1146349 - Wire up native event synthesization in child processes. r=smaug 2015-04-14 11:36:36 -04:00
Kartikaya Gupta
5cf2d407fd Bug 1146349 - Make the native event synthesization functions in DOMWindowUtils async. r=smaug 2015-04-14 11:36:36 -04:00
Olli Pettay
c3dca4be1e Backout Bug 930793 because of talos regressions,r=backout
--HG--
extra : rebase_source : bf5d4de1b80e114d3e2172a205bf850f68019d38
2015-04-13 19:02:27 +03:00
Olli Pettay
eb314fb48f Bug 930793 - Remove favor performance mode, r=avih,roc
--HG--
extra : rebase_source : a112b660baa240afd5f0022cd869c96b59418789
2015-04-12 23:08:55 +03:00
Mats Palmgren
2fa6fbc270 Bug 1149785 - Make nsIWidget::ClientToWindowSize use LayoutDeviceIntSize instead of the unit-less nsIntSize. r=roc 2015-03-31 22:09:03 +00:00
Mats Palmgren
5b0f58f5ef 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
191c9180a5 Backed out changeset 9534a3d38191 (bug 1149041) 2015-03-30 15:03:19 +02:00
Mats Palmgren
2e8393adc7 Bug 1149041 - Make nsIWidget::SizeConstraints use LayoutDeviceIntSize instead of unit-less nsIntSize. r=roc 2015-03-30 10:37:34 +00:00
David Anderson
d5f5272884 Allow synthetic input events to be dispatched asynchronously. (bug 1146243, r=kats) 2015-03-24 15:00:52 -07:00
Kartikaya Gupta
fdaed2c4d6 Bug 1144324 - Remove the codepaths that conditionally enable touch events based on touch the presence of touch listeners. r=smaug,jimm 2015-03-19 06:37:39 -04:00
Nicolas Silva
40d7c19d35 Bug 1125848 - Reduce the likelyhood of a CompositorParent being destroyed without the proper shutdown sequence. r=sotaro 2015-03-09 10:46:56 +01:00
Nicolas Silva
999b7333fe Bug 1128934 - Avoid calling GetClientBounds from BasicComposior. r=roc, karlt 2015-02-14 12:37:32 +01:00
dvander@alliedmods.net
bbb91f19dc Factor out how APZ-aware events are dispatched from widgets. (bug 1126090 part 2, r=kats) 2015-03-06 14:26:59 -08:00
Steven Michaud
68e8327d5b Bug 1110888 - Always do plugin IME in main process, even with e10s. r=masayuki,smaug 2015-02-20 10:37:02 -06:00
Carsten "Tomcat" Book
4ae7286acb Backed out changeset d81339c7ac52 (bug 1128934) 2015-02-17 14:32:11 +01:00
David Zbarsky
e63a6defd2 Bug 1125040: Use LayoutDeviceIntPoint for synthesizing native events on widgets r=botond 2015-02-15 13:52:28 -05:00
Nicolas Silva
b930f4e186 Bug 1128934 - Avoid calling GetClientBounds from BasicComposior. r=roc, karlt 2015-02-14 12:37:32 +01:00
Robert O'Callahan
276498a9e2 Bug 1129774. Part 6: Remove aContext parameter from nsIWidget::CreateChild. r=jmathies
--HG--
extra : rebase_source : cbe3decbca5f4a212a3ed6cbcd5132729a8b3cd3
2015-02-05 18:38:47 +13:00
Robert O'Callahan
7a165b59ca Bug 1129774. Part 5: Remove aContext parameter from nsIWidget::Create. r=jmathies
--HG--
extra : rebase_source : 517ff800c0307e69465a37da7e52605d2fcda0d1
2015-02-05 20:35:25 +13:00
Robert O'Callahan
53f642c7da Bug 1129774. Part 4: Remove aContext parameter from AttachViewToTopLevel. r=jmathies
--HG--
extra : rebase_source : e9fd43e7754223f469e2a97315c3d6bd1c6bbca3
2015-02-05 18:33:49 +13:00
Robert O'Callahan
477b9ab40e Bug 1129774. Remove unused nsBaseWidget::GetDeviceContext. r=jmathies
--HG--
extra : rebase_source : 7097d97d21abcb4107838c21ab62061b8273e453
2015-02-05 17:03:32 +13:00
Markus Stange
2f12e52126 Bug 1045213 - Add nsITheme::ThemeGeometryTypeForWidget. r=roc 2015-02-04 17:25:18 -05:00
David Zbarsky
c73ec42d2d Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond 2015-02-04 15:21:03 -05:00
Jim Mathies
f93fc49262 Bug 1095754 - Add platform widget support for providing widget identifiers used in remote widget tracking and hookl this up on gtk and Windows. r=roc 2015-01-29 13:41:57 -06:00
Jim Mathies
d5d37f938c Bug 1095754 - Miscellaneous code cleanup nits found along the way. r=me 2015-01-29 13:41:57 -06:00
Jim Mathies
aa597c8906 Bug 1095754 - Transfer bounds information from native plugin widgets to GTK socket widgets when the native plugin widget bounds update. r=roc 2015-01-29 13:41:57 -06:00
Jim Mathies
d353a0d5c1 Bug 1095754 - Add nsPluginFrame support for e10s specific plugin configuration data. r=roc 2015-01-29 13:41:55 -06:00
Jim Mathies
21a997ff89 Bug 1095754 - Provide a way to track and access native plugin widgets so they can be accessed from global scope. r=aklotz 2015-01-29 13:41:53 -06:00
Masayuki Nakano
8ef42d4816 Bug 917322 part.1 Create mozilla::widget::TextEventDispatcher class r=smaug, sr=smaug
--HG--
rename : dom/base/CompositionStringSynthesizer.cpp => widget/TextEventDispatcher.cpp
rename : dom/base/CompositionStringSynthesizer.h => widget/TextEventDispatcher.h
2015-01-28 15:27:30 +09:00
Ehsan Akhgari
466b4b59b6 Bug 1122988 - Mark nsIWidget::mLastChild/mPrevSibling as non-owning; r=roc 2015-01-22 23:18:26 -05:00
Bill McCloskey
c37452fa59 Bug 1051842 - Remove DOS line endings 2015-01-21 20:35:17 -08:00
David Parks
569529da16 Bug 1051842 - Part 2 - crash in -[ChildView keyDown:]. r=masayuki
In e10s, each nsFocusManger (main/chrome and content/tab) operates on its own content tree with its own InputContext.  They also communicate their InputContexts with the OS widget (nsChildView on mac, nsWindow on Windows).  Prior to this patch, the OS widgets didn't distinguish between main and content InputContexts.  When GetInputContext was called on the OS widget, it would return whatever InputContext it had set last.  This patch distinguishes between InputContexts in the widget.
2014-08-27 22:06:41 -07:00
Masatoshi Kimura
9656ec51c3 Bug 895582 - Get rid of MOZ_ENUM_TYPE. r=waldo 2015-01-21 22:35:19 +09:00
Bill McCloskey
f129f1c9a3 Bug 1051842 - Backout e1dd58a149d2 (bug 1051842) due to bug 1122208 2015-01-20 14:03:33 -08:00
Kartikaya Gupta
d8cde2ed0d Bug 1121430 - Back out 4 csets from bug 1112212 for breaking backspace on Android. r=backout 2015-01-15 10:52:05 -05:00
David Parks
7eb1cc02ff Bug 1051842 - Part 2 - crash in -[ChildView keyDown:]. r=masayuki
In e10s, each nsFocusManger (main/chrome and content/tab) operates on its own content tree with its own InputContext.  They also communicate their InputContexts with the OS widget (nsChildView on mac, nsWindow on Windows).  Prior to this patch, the OS widgets didn't distinguish between main and content InputContexts.  When GetInputContext was called on the OS widget, it would return whatever InputContext it had set last.  This patch distinguishes between InputContexts in the widget.
2014-08-27 22:06:41 -07:00
Benoit Girard
9b8c2dc37d Bug 1068190 - Part 1: Add foundation for compositor unit tests. r=mstange 2015-01-14 17:24:09 -05:00
Jim Chen
3817965035 bug 1112212 - Set flag in InputContext for IME-unaware webapps; r=masayuki 2015-01-10 12:41:57 -05:00
Mason Chang
2166723055 Bug 1113725. Rename VsyncDispatcher to CompositorVsyncDispatcher. r=kats 2014-12-19 12:52:42 -08:00
Mason Chang
20f79754b3 Bug 1101974. Part 1: Create VsyncDispatcher at nsBaseWidget. r=roc 2014-12-18 08:30:05 -08:00
Vladimir Vukicevic
54548bfc2b Bug 1036597 - extend widget's MakeFullScreen method to take an optional nsIScreen indicating the target; r=karlt 2014-07-09 12:29:28 -07:00
Jim Mathies
abf9ba034f Bug 669200 - On the child side implement a suitable nsIWidget wrapper for PPluginWidget based on PuppetWidget. r=billm 2014-11-12 14:59:20 -06:00
Jim Mathies
a323270a8b Bug 669200 - Various widget changes to support two new types of plugin widget. r=roc 2014-11-12 14:59:19 -06:00
Masayuki Nakano
04082d22be Bug 1083067 part.4 Use IMEContext::MaybeEditable() instead of nsGtkIMModule::IsEditable() r=m_kato 2014-11-10 18:07:43 +09:00
Markus Stange
1c0e700dea Bug 1018845 - Make the fullscreen button easier to see on dark backgrounds. r=roc 2014-11-03 22:14:10 -05:00
Jonathan Watt
e3b677cbfd Bug 1082553 - Remove a few unnecessary nsRenderingContext includes and forward declarations. r=Bas 2014-10-16 10:51:13 +01:00
Masayuki Nakano
1cc2ff10cb Bug 1065835 part.6 Remove NOTIFY_IME_OF_CURSOR_POS_CHANGED and nsGtkIMModule should handle NOTIFY_IME_OF_SELECTION_CHANGE instead r=smaug+ehsan+karlt 2014-09-26 09:05:13 +09:00
Markus Stange
9035319790 Bug 944836 - Build a draggable region for the window based on the -moz-window-dragging property. r=roc 2014-09-18 10:52:27 +02:00
Masayuki Nakano
b8d7961d53 Bug 1059680 Make NOTIFY_IME_OF_MOUSE_BUTTON_EVENT e10s aware r=smaug 2014-09-11 22:46:17 +09:00
Masayuki Nakano
93cf48640e Bug 826657 part.2 Implement NOTIFY_IME_OF_MOUSE_BUTTON_EVENT in XP part r=smaug+ehsan 2014-08-29 19:08:43 +09:00
Masayuki Nakano
5a1e63fec0 Bug 1052286 nsTextStore::SetInputContext() should handle password state as editable state r=jimm 2014-08-14 17:58:15 +09:00
Ehsan Akhgari
3ade5dd202 Bug 1048241 - Fix more bad implicit constructors in widget; r=roc 2014-08-05 09:38:21 -04:00
Jonathan Watt
1ac56ed5ef Bug 991640 - Get rid of nsIWidget::GetThebesSurface and a bunch of Thebes backed gfxContexts. r=mattwoodrow 2014-06-10 07:02:21 +01:00
Jim Mathies
e88a91f7f4 Bug 1003943 - Properly update widget cursors when the mouse passes between remote frames. r=smaug 2014-05-27 20:12:29 -05:00
Masatoshi Kimura
e96ea0a9d1 Bug 1005619 - Part 1: Add nsIWidget::GetRestoredBounds(). r=roc 2014-05-20 16:32:17 +09:00
Bill McCloskey
204c0f3633 Bug 993714 - [e10s] Cache native key bindings in tests (r=masayuki,sr=roc) 2014-04-21 13:40:09 -07:00
Jim Chen
8e3a90b7bf Bug 984463 - Update GeckoEditableListener constants to match IMEMessage constants. r=masayuki 2014-03-21 13:44:59 -04:00
Neil Deakin
382114ad8c Bug 982734, make nsIWidget::GetWindowType and nsIWidget::GetZIndex return their values, remove some unused colour-related widget methods, r=tn 2014-03-19 12:48:08 -04:00
Masayuki Nakano
0ae5a1bafc Bug 977959 part.3 Hide nsINativeKeyBindings with nsIWidget::ExecuteNativeKeyBinding() r=roc+karlt+smichaud 2014-03-14 22:13:31 +09:00
Masayuki Nakano
b51ee921de Bug 978023 part.3 Rename nsIMEStateManager to mozilla::IMEStateManager r=smaug
--HG--
rename : dom/events/nsIMEStateManager.cpp => dom/events/IMEStateManager.cpp
rename : dom/events/nsIMEStateManager.h => dom/events/IMEStateManager.h
2014-03-08 10:20:07 +09:00
Makoto Kato
094de05309 Bug 968647 - Part 1. Add position change notification for IME. r=roc 2014-02-28 16:45:01 +09:00
Makoto Kato
564414b6a0 Backed out changeset d06ee3f1e9a3 (bug 968647) 2014-03-03 11:53:43 +09:00
Makoto Kato
9857fbb5f0 Bug 968647 - Part 1. Add postion change notification for IME. r=roc 2014-02-28 16:45:01 +09:00
Carsten "Tomcat" Book
3aa46dfe4f Backed out changeset e670f691e2b9 (bug 968647) for mochitest test bustage on OS X on a CLOSED TREE 2014-02-28 09:30:34 +01:00
Makoto Kato
062ff17d11 Bug 968647 - Part 1. Add postion change notification for IME. r=roc 2014-02-28 16:45:01 +09:00
Masayuki Nakano
4fac2c03ae Bug 961704 part.2 Add an option to nsIMEUpdatePreference which prevents to be notified selection/text changes caused by composition r=smaug 2014-02-26 09:48:02 +09:00
Masayuki Nakano
e173e98fbd Bug 965685 Use IMENotification struct for nsIWidget::NotifyIME() and merge NotifyIMEOfTextChange() with it r=smaug, sr=roc 2014-02-18 09:00:15 +09:00
Olli Pettay
ab4411fee4 Backout Bug 930793 - Remove favor performance mode (we have still racy b2g tests), a=backout
--HG--
extra : rebase_source : 6f6de1cbf54670d63b74c44ca0134ed9c5354d2b
2014-01-30 21:35:44 -08:00
Nick Lebedev
cd5f69c3b6 Bug 822898. Add maxTouchPoints attribute to navigator. r=romaxa,smaug
--HG--
extra : rebase_source : e3f84cb38ee2a0c75bf775027c8a59e4f9e64908
2014-01-28 08:09:34 -08:00
Makoto Kato
95d1734bbb Bug 960877 - Part 2. Remove mWantHints from nsIMEUpdatePreference. r=masayuki 2014-01-29 18:32:35 +09:00
Makoto Kato
4e744b9599 Bug 960877 - Part 1. Add helper method to nsIMEUpdatePreference. r=masayuki 2014-01-29 18:31:57 +09:00
Benoit Jacob
61df69f208 Bug 959448 - Convert most of LayersTypes.h to typed enums - r=nrc
find content/media dom/ipc widget/ gfx/tests gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)LAYERS_\(NONE\|BASIC\|OPENGL\|D3D9\|D3D10\|D3D11\|CLIENT\|LAST\)\($\|[^A-Za-z0-9_]\)/\1LayersBackend::LAYERS_\2\3/g'

find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::BUFFER_\2\3/g'

find widget gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)BUFFER_\(BUFFERED\)\($\|[^A-Za-z0-9_]\)/\1BufferMode::\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(DRAW\|DRAW_SNAPPED\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)CLIP_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1DrawRegionClip::CLIP_\2\3/g'

find gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SURFACE_\(NONE\|OPAQUE\|SINGLE_CHANNEL_ALPHA\|COMPONENT_ALPHA\)\($\|[^A-Za-z0-9_]\)/\1SurfaceMode::SURFACE_\2\3/g'

find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(STRETCH\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::\2\3/g'

find gfx/ipc/ gfx/layers/ layout/ -type f | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)SCALE_\(NONE\)\($\|[^A-Za-z0-9_]\)/\1ScaleMode::SCALE_\2\3/g'
2014-01-23 13:26:41 -05:00
Masayuki Nakano
a3dc900949 Bug 835262 Add an option making nsTextStateManager keep alive even while our process is deactive r=smaug+emk 2014-01-18 12:27:14 +09:00
Olli Pettay
124795557f Bug 930793 - Remove favor performance mode, r=roc,avih
--HG--
extra : rebase_source : e936e5b02dc2e613816fb6f97f9af5a303dc6f6d
2014-01-16 16:09:08 +02:00
Makoto Kato
1eaa8a3e12 Bug 935821 - Part 1. Notify IME Compostion to widget. r=masayuki 2013-11-07 09:11:11 +09:00
Birunthan Mohanathas
d05644b6b3 Bug 784739 - Switch from NULL to nullptr in remaining directories; r=ehsan
--HG--
extra : rebase_source : 1ff19b2c8fd0e77fa8e822f5007a9fa3a6b6d474
2014-01-06 10:06:04 -05:00
Markus Stange
3b7de5fbc9 Bug 888615 - [Australis] Add a drawtitle attribute for XUL root elements. When drawtitle="true" is set, even drawintitlebar windows will have a window title. r=roc, r=smichaud 2013-12-17 17:11:13 +01:00
Jim Mathies
195cafc7e6 Bug 941774 - Base widget implementation. r=roc 2013-12-14 14:40:56 -06:00
Nicholas Cameron
9bfee51338 Bug 946958 part 4. Tidy up interaction with widgets. r=kats 2013-12-09 14:40:59 +13:00
Phil Ringnalda
74b2dea823 Backed out 7 changesets (bug 946958, bug 865033)
Backed out changeset 6dd0a6cb9ab3 (bug 946958)
Backed out changeset 498152aec5b1 (bug 946958)
Backed out changeset 7d035322f51d (bug 946958)
Backed out changeset 99f8ad7561ef (bug 946958)
Backed out changeset 4639c5abea80 (bug 946958)
Backed out changeset 9d1a4d83eccf (bug 865033)
Backed out changeset 41839e4026bc (bug 865033)
2013-12-08 18:43:45 -08:00
Nicholas Cameron
93ca5b4477 Bug 946958 part 4. Tidy up interaction with widgets. r=kats 2013-12-09 14:40:59 +13:00
Markus Stange
c5d89cc8ca Bug 886999 - Lock the GL context before compositing on the compositor thread or before calling setView or update on the main thread. r=mattwoodrow 2013-10-09 10:39:23 -04:00
Markus Stange
14e8e85cab Bug 914437 - Don't composite windows that are not open. r=mattwoodrow 2013-10-09 10:39:22 -04:00
Ryan VanderMeulen
623bf74951 Backed out 8 changesets (bug 914437, bug 886999, bug 890997, bug 923114, bug 923133) for suspicion of causing frequent OSX mochitest-2 timeouts on a CLOSED TREE.
Backed out changeset e934fda24887 (bug 890997)
Backed out changeset 058c2432bff5 (bug 886999)
Backed out changeset 34d9056bf553 (bug 886999)
Backed out changeset 3f053c13cf4e (bug 914437)
Backed out changeset 1f436fd67cdb (bug 886999)
Backed out changeset 7c914b3e8d27 (bug 923133)
Backed out changeset e6fdf5fd28c5 (bug 923114)
Backed out changeset b0700255080c (bug 914437)
2013-10-09 14:33:01 -04:00
Markus Stange
0b3fba6f9e Bug 886999 - Lock the GL context before compositing on the compositor thread or before calling setView or update on the main thread. r=mattwoodrow
--HG--
extra : rebase_source : 60930a858a5d52205703d14317312540387f269f
2013-10-09 10:39:23 -04:00
Markus Stange
4ab38a4556 Bug 914437 - Don't composite windows that are not open. r=mattwoodrow
--HG--
extra : rebase_source : b534eb4c339392c4a2ad60424510c7d264f13d3a
2013-10-09 10:39:22 -04:00
Masayuki Nakano
9aaf116c1c Bug 920377 part.32 Get rid of nsMouseEvent r=roc 2013-10-02 15:38:27 +09:00
Masayuki Nakano
5dbc2a60e4 Bug 920377 part.31 Get rid of nsEvent r=roc 2013-10-02 12:46:04 +09:00
Masayuki Nakano
a4221a463f Bug 920377 part.30 Get rid of nsGUIEvent r=roc 2013-10-02 12:46:03 +09:00
Matt Woodrow
e7f55966e0 Bug 886999 - Backout c3a044164b5f for causing deadlocks (Bug 920979) 2013-09-30 14:31:50 +13:00
Matt Woodrow
741531f1fc Bug 886999 - Avoid touching the GL context from the main thread on mac, and lock the context when touching it from other threads. r=mstange 2013-09-26 15:49:59 +12:00
Masayuki Nakano
f90a5b1125 Bug 912956 part.18 Remove nsGUIEvent.h r=roc 2013-09-25 20:21:22 +09:00
Neil Rashbrook
fec95dc2b5 Bug 920073 Switch back to #including nsStringGlue.h in headers that need to work with the external string API r=ehsan 2013-09-25 08:27:54 +01:00
Masayuki Nakano
0fbfe07d7e Bug 912956 part.2 Rename nsEvent.h to mozilla/EventForwards.h and sort out it r=roc
--HG--
rename : widget/nsEvent.h => widget/EventForwards.h
2013-09-24 19:04:14 +09:00
Ehsan Akhgari
7233ba7103 Bug 918923 - Part 2: Switch to #including nsString.h in code using the internal strings API; r=bsmedberg 2013-09-23 13:25:00 -04:00
Mina Almasry
94bdd8d0fe Bug 912166 - Make nsIWidget::GetDefaultScale return a typed scale value. r=roc 2013-09-17 20:45:19 -04:00
Masayuki Nakano
776acd167e Bug 912956 part.1 Rename all event stuff in mozilla::widget to mozilla::* r=roc 2013-09-14 11:39:41 +09:00
Magnus Melin
928cc3f23e Backout of erroneous change from bug 903284 r=Ms2ger 2013-08-26 12:39:46 +01:00
David Zbarsky
9ce94de31b Bug 903283: Don't include EventTarget.h in headers r=Ms2ger 2013-08-19 06:15:55 -04:00
Markus Stange
575a74e089 Bug 904538 - Don't #include nsITheme.h in nsIWidget.h. r=roc 2013-08-14 13:19:55 +02:00
Markus Stange
8f2c4e9f83 Bug 904536 - Remove nsNativeWidget.h. r=roc 2013-08-14 13:19:08 +02:00
Ehsan Akhgari
f4e239198e Bug 904267 - Remove some unneeded #includes from nsIWidget.h; r=roc 2013-08-12 19:21:53 -04:00
Boris Zbarsky
af4624bf9a Back out revision ea0f2d537a40 (bug 903283) because Windows was bootlegging nsRegion.h via EventTarget.h in widget code and so we ended up with a CLOSED TREE. 2013-08-09 22:31:05 -04:00
David Zbarsky
0849600afa Bug 903283: Don't include EventTarget.h in headers r=Ms2ger 2013-08-09 21:17:52 -04:00
Timothy Nikkel
7d3be384bc Bug 892994. On retina screens cocoa rounds widget coordinates to even pixel values, so account for that when placing widgets so we don't get confused. r=mstange 2013-07-30 11:22:41 -05:00
Masayuki Nakano
da38d263f9 Bug 875674 part.1 nsIMEUpdatePreference should store wanted updates per notification r=roc 2013-07-11 16:46:34 +09:00
Markus Stange
68c124a82c Bug 882523 - Support OMTC on Mac in non-accelerated mode using OpenGL. r=nrc, r=mattwoodrow 2013-07-08 21:21:05 -07:00
Ryan VanderMeulen
f23d636f4e Backed out changeset cff8971a6519 (bug 882523) for Linux reftest-ipc crashes. 2013-07-03 10:14:11 -04:00
Matt Woodrow
f5a46f0d03 Bug 882523 - Support OMTC on Mac in non-accelerated mode using OpenGL. r=nrc, r=mattwoodrow 2013-06-13 17:15:15 +12:00
Masayuki Nakano
f43eab8fd4 Bug 807893 part.2 Cocoa widget should manage secure input mode with input context at changing the context and changing focus r=smichaud 2013-05-25 01:27:52 +09:00
Masayuki Nakano
98454102d1 Bug 807893 part.1 Remove nsIWidget::BeginSecureInput() and nsIWidget::EndSecureInput() r=roc, sr=roc 2013-05-25 01:27:52 +09:00
Markus Stange
08702570d3 Bug 676241 part 8: Remove alternate layer manager handling. r=mattwoodrow 2013-05-23 16:49:18 +02:00
Matt Woodrow
99faba83a1 Bug 756601 - Setup our OpenGL surface before compositing. r=mstange 2013-05-10 09:02:49 +12:00
Ms2ger
29dec51515 Bug 864165 - Outparamdel nsIWidget::GetSizeMode; r=tn 2013-04-26 08:49:47 +02:00
Nicolas Silva
a1ee3bf807 Bug 863324 - Rename PLayers into PLayerTransaction, r=jrmuizel
--HG--
rename : gfx/layers/ipc/ShadowLayersChild.cpp => gfx/layers/ipc/LayerTransactionChild.cpp
rename : gfx/layers/ipc/ShadowLayersChild.h => gfx/layers/ipc/LayerTransactionChild.h
rename : gfx/layers/ipc/ShadowLayersParent.cpp => gfx/layers/ipc/LayerTransactionParent.cpp
rename : gfx/layers/ipc/ShadowLayersParent.h => gfx/layers/ipc/LayerTransactionParent.h
rename : gfx/layers/ipc/PLayers.ipdl => gfx/layers/ipc/PLayerTransaction.ipdl
2013-04-24 14:42:40 -04:00
Ehsan Akhgari
93b18e529b Backed out changeset fdaa0659fe13 (bug 863324) because of build bustage on a CLOSED TREE
--HG--
rename : gfx/layers/ipc/PLayerTransaction.ipdl => gfx/layers/ipc/PLayers.ipdl
rename : gfx/layers/ipc/LayerTransactionChild.cpp => gfx/layers/ipc/ShadowLayersChild.cpp
rename : gfx/layers/ipc/LayerTransactionChild.h => gfx/layers/ipc/ShadowLayersChild.h
rename : gfx/layers/ipc/LayerTransactionParent.cpp => gfx/layers/ipc/ShadowLayersParent.cpp
rename : gfx/layers/ipc/LayerTransactionParent.h => gfx/layers/ipc/ShadowLayersParent.h
2013-04-22 18:12:15 -04:00
Nicolas Silva
faf423d4c4 Bug 863324 - Rename PLayers into PLayerTransaction, r=jrmuizel
--HG--
rename : gfx/layers/ipc/ShadowLayersChild.cpp => gfx/layers/ipc/LayerTransactionChild.cpp
rename : gfx/layers/ipc/ShadowLayersChild.h => gfx/layers/ipc/LayerTransactionChild.h
rename : gfx/layers/ipc/ShadowLayersParent.cpp => gfx/layers/ipc/LayerTransactionParent.cpp
rename : gfx/layers/ipc/ShadowLayersParent.h => gfx/layers/ipc/LayerTransactionParent.h
rename : gfx/layers/ipc/PLayers.ipdl => gfx/layers/ipc/PLayerTransaction.ipdl
2013-04-22 22:51:11 -04:00
Ryan VanderMeulen
42cef9be70 Backed out changeset ddf944cc292d (bug 863324) for Android bustage on a CLOSED TREE.
--HG--
rename : gfx/layers/ipc/PLayerTransaction.ipdl => gfx/layers/ipc/PLayers.ipdl
rename : gfx/layers/ipc/LayerTransactionChild.cpp => gfx/layers/ipc/ShadowLayersChild.cpp
rename : gfx/layers/ipc/LayerTransactionChild.h => gfx/layers/ipc/ShadowLayersChild.h
rename : gfx/layers/ipc/LayerTransactionParent.cpp => gfx/layers/ipc/ShadowLayersParent.cpp
rename : gfx/layers/ipc/LayerTransactionParent.h => gfx/layers/ipc/ShadowLayersParent.h
2013-04-22 14:47:16 -04:00
Nicolas Silva
bb0bda95b2 Bug 863324 - Rename PLayers into PLayerTransaction, r=jrmuizel
--HG--
rename : gfx/layers/ipc/ShadowLayersChild.cpp => gfx/layers/ipc/LayerTransactionChild.cpp
rename : gfx/layers/ipc/ShadowLayersChild.h => gfx/layers/ipc/LayerTransactionChild.h
rename : gfx/layers/ipc/ShadowLayersParent.cpp => gfx/layers/ipc/LayerTransactionParent.cpp
rename : gfx/layers/ipc/ShadowLayersParent.h => gfx/layers/ipc/LayerTransactionParent.h
rename : gfx/layers/ipc/PLayers.ipdl => gfx/layers/ipc/PLayerTransaction.ipdl
2013-04-22 18:07:48 -04:00
Matt Woodrow
4dc092eab6 Bug 862556 - Make nsChildView.mm::DrawWindowOverlay thread safe. r=nrc 2013-04-22 14:40:51 +12:00
Bas Schouten
839048be74 Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions.

Authors:
gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical
gfx/layers/d3d* - D3D9/D3D10 - bas
gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas
gfx/layers/composite/* - CompositeLayers - nrc,nical
gfx/layers/client/* - Client - nrc,nical,bas
gfx/layers/*Image* - nical
gfx/layers/ipc ipc - IPC - nical
gfx/layers/opengl - CompositorOGL - nrc,nical
gfx/2d - bas,nrc
gfx/gl - GLContext - bjacob
dom/* layout/* - DOM - mattwoodrow
2013-04-10 09:20:52 +00:00
Jonathan Kew
6354f2dfe3 bug 859266 - respect devPixelsPerPx preference when calculating screen dimens on Windows. r=roc 2013-04-09 09:39:47 +01:00
Masayuki Nakano
7e9019e1d9 Bug 829952 Reimplement system scroll speed override stuff for D3E WheelEvent feedback=avih, r=smaug+roc, sr=roc 2013-03-15 18:03:16 +09:00
Masayuki Nakano
f93c4a10b1 Bug 558976 part.6 Rename nsIWidget::OnIMETextChange() to nsIWidget::NotifyIMEOfTextChange() r=roc, sr=roc 2013-03-06 15:14:34 +09:00
Masayuki Nakano
4d47d7f2b5 Bug 558976 part.1 Merge nsIWidget::ResetInputState(), nsIWidget::CancelComposition(), nsIWidget::OnIMEFocusChange() and nsIWidget::OnIMESelectionChange() r=roc, sr=roc 2013-03-06 15:14:31 +09:00
Matt Woodrow
6def652730 Bug 832641 - Invalidate popups when they become visible rather than handling invalidations while they are hidden. r=roc 2013-01-23 18:46:36 +13:00
Matt Woodrow
c4cfe33e02 Bug 820839 - Draw OSX titlebar content into a retained buffer during the ThebesLayer painting phase, before we clear invalidation state. r=roc 2013-01-17 11:59:23 +13:00
Robert O'Callahan
943cb99eff Bug 825866. Part 8: Mass-rename of nsIView to nsView. r=tnikkel
This was autogenerated by basically replacing all occurrences of the word "nsIView" with nsView.

--HG--
rename : view/public/nsIView.h => view/public/nsView.h
2013-01-04 02:23:11 +13:00
Jonathan Kew
81c7d507db 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
Jonathan Kew
5f9d375273 bug 814434 - use global display pixels for window positioning/sizing for consistency across mixed-resolution screens. r=smichaud 2012-12-06 17:31:34 +00:00
Chris Jones
270f8e37db Bug 804852: Support for the hwc implementation of Composer2D. r=mattwoodrow,mwu,roc sr=roc
This is a rollup of the following patches

part 0: Add a dynamic cast to ColorLayer*

part 1: Add a Composer2D interface to enable implementations to more efficiently compose layer trees

part 2: Let widgets expose Composer2Ds, if they have them

part 3: Expose a layers ogl "friend" API that Composer2D will consume

part 4: Hook Composer2D into the LayerManagerOGL rendering pipeline

part 5: Implement all the goop to let widget/gonk use a Composer2D (HwcComposer2D)
2012-11-19 09:58:38 -08:00
Nicolas Silva
51dd83878a Bug 806428 - Fix crash in omtc-linux caused by nsBaseWidget::SetLayersAcceleration, and rename xxxAcceleratedRendering into xxxLayersAcceleration for concistency. r=BenWa 2012-11-15 19:55:15 +01:00
Masayuki Nakano
e11469e287 Bug 805767 part.3 Remove hack for bug 496360 r=roc 2012-11-13 22:04:45 +09:00
Masayuki Nakano
e4a8770b29 Bug 805767 part.1 nsTextStateManager should use nsIWidget::GetIMEUpdatePreference() instead of the result of nsIWidget::OnIMEFocusChange() r=smaug 2012-11-13 22:04:44 +09:00
Brian R. Bondy
fd4768384a Bug 795887 - Document sleep and process suspend notifications. r=roc 2012-11-09 10:34:10 -05:00
Karl Tomlinson
b2e3a82d68 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
Robert O'Callahan
344c63740a Bug 804062. Move device-pixels-per-CSS-pixel preference logic into nsIWidget::GetDefaultScale. r=jfkthame
The only behavior change caused by this patch should be that nsDeviceContexts with no widget
(mainly printing, I think), default to a devpixel-per-CSS-pixel ratio of 1.0, ignoring
any prefs set.
2012-10-31 11:31:35 +11:00
Masayuki Nakano
7025df1d0e Bug 805357 part.2 Get rid of NS_SUCCESS_IME_NO_UPDATES since OnIMEFocusChange(false) is always called r=roc 2012-10-31 08:22:23 +09:00
Masayuki Nakano
16555e56d0 Bug 801989 part.1 Add mNativeIMEContext to InputContext and TextComposition should use it instead of nsIWidget r=smaug, sr=roc 2012-10-27 08:35:20 +09:00
Neil Deakin
dbb5179c04 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
Masayuki Nakano
affac42d19 Bug 705057 part.4 Emulate the behavior of nsIWidget::ResetInputState() and nsIWidget::CancelIMEComposition() if the composition is synthesized r=smaug+roc, sr=roc 2012-09-26 14:47:51 +09:00
Chris Jones
8ba567a4d1 Bug 780920, part 2: Let clients query a widget's 'real' compositor, when the widget doesn't draw directly to its OS window. r=roc 2012-10-04 00:05:24 -07:00
Jonathan Kew
d4ed66097a bug 674373 pt 6 - support HiDPI display in Cocoa widget code. r=roc,smichaud 2012-09-29 12:36:09 +01:00
Chris Jones
b3578688a4 Bug 793365: Make sure (again) that the entire buffer is valid when we might be asynchronously composited. r=roc 2012-09-24 21:15:18 -07:00
Chris Pearce
ea1f7c839e Bug 782729 - Ensure pointer lock code always passes screen coords to SynthesizeNativeMouseMove. r=smaug 2012-09-25 11:43:27 +12:00
Neil Rashbrook
53c1c1fc2c Bug 793494 Allow non-libxul code to include nsIWidget.h again r=roc 2012-09-24 00:26:43 +01:00
Jim Mathies
393f497027 Bug 786979 - Use a new constant for returning ICoreWindow from GetNativeData. r=bbondy 2012-09-07 14:51:02 -05:00
Zoe Bellot
5d63eeebbb Bug 746142 - Part 2 - Use inputmode attribute to vary the virtual keyboard on Android. f=mounir r=cpeterson 2012-08-26 23:16:22 -03:00
Ehsan Akhgari
e368dc9c85 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
Matt Woodrow
8c293ec26f Bug 783449 - Move android specific NeedsPaint checks into the android widget implementation. r=roc 2012-08-20 22:00:50 +12:00
Ed Morley
f4221cc429 Backout 506268f7735e & ea163112807d (bug 746142) for Android build failures 2012-08-17 12:30:02 +01:00
Zoe Bellot
f5aa016a9c Bug 746142 - Part 2 - Use inputmode attribute to vary the virtual keyboard on Android. f=mounir r=cpeterson 2012-08-17 12:02:18 +02:00
Neil Deakin
6b29afdf4b Bug 743975 - remove the event handler argument to widget creation methods, r=tn 2012-08-15 14:53:09 -04:00
Neil Deakin
2e9eced59a 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
Aryeh Gregor
4e199a1679 Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Matt Woodrow
99fdd40f4a Bug 539356 - Part 24 - Don't paint android widgets that aren't being composited, or at the front. r=roc 2012-08-13 22:10:10 +12:00
Matt Woodrow
b692b60d20 Bug 539356 - Part 17 - Don't paint widgets that an invisible or empty bounds. r=roc
* * *
Bug 539356 - Part 13 - Only repaint widgets that have had changes since the last paint
2012-08-13 22:10:10 +12:00
Matt Woodrow
77b0977198 Bug 539356 - Part 13 - Only repaint widgets that have had changes since the last paint. r=roc 2012-08-13 22:10:10 +12:00
Neil Deakin
b0640922cf 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
c6b51c42c1 Bug 778519 - Don't include Layers.h everywhere Part 2 r=cjones 2012-07-30 17:42:26 -07:00
Aryeh Gregor
d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Chris Jones
94c70c8ab5 Bug 776217: Support gecko-implemented screen rotation with omtc. r=roc 2012-07-24 12:01:09 -07:00
Mark Capella
eddd048c93 Bug 775041 - Make nsIWidget::IsEnabled return bool, r=roc, f=ms2ger 2012-07-23 01:19:08 -04:00
Mark Capella
ab782c26b2 Bug 769998 - Make nsIWidget::IsVisible return bool, r=roc, f=ms2ger 2012-07-19 04:57:50 -04:00
David Zbarsky
9a61d96c70 [Bug 774505] Don't include Layers.h everywhere r=cjones 2012-07-18 12:31:40 -04:00
Chris Jones
161b9050f9 Bug 745148, part 9: Hook up the pieces and enable direct compositor. r=roc 2012-07-17 16:59:45 -07:00
Rafael Ávila de Espíndola
850d0875ba Bug 774017 - Remove extra ;. r=khuey. 2012-07-16 11:00:50 -04:00
Ehsan Akhgari
b072071920 Backout changeset d9f3358435ba (bug 539356) because of performance and correctness regressions 2012-07-03 20:17:53 -04:00
Ehsan Akhgari
07cd320c1c Backout changeset b7b89bbdd7ab (bug 539356) because of performance and correctness regressions 2012-07-03 20:15:58 -04:00
Ehsan Akhgari
b405c1e0f3 Backout changeset 6e8c5c011767 (bug 539356) because of performance and correctness regressions 2012-07-03 20:11:05 -04:00
Matt Woodrow
e0bc87022c Bug 539356 - Part 24 - Don't paint android widgets that aren't being composited, or at the front. r=roc 2012-06-30 15:06:13 +12:00
Matt Woodrow
5e519a6ad8 Bug 539356 - Part 17 - Don't paint widgets that an invisible or empty bounds. r=roc
* * *
Bug 539356 - Part 13 - Only repaint widgets that have had changes since the last paint
2012-06-30 15:06:12 +12:00
Matt Woodrow
5647da5701 Bug 539356 - Part 13 - Only repaint widgets that have had changes since the last paint. r=roc 2012-06-30 15:06:12 +12:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Timothy Nikkel
ff0f226d01 Bug 728284. Don't try to paint an opaque background for widgets that do it themselves. r=roc 2012-04-17 01:04:05 -05:00
Oleg Romashin
28e15f2c03 Bug 744564 - Allow to create EGL context from Widget provided GL context (embedding approach). r=roc,jgilbert 2012-04-12 00:18:35 -04:00
David Humphrey (:humph)
e40fc0740c Bug 633602 - Implement Pointer Lock (Mouse Lock) API. r=roc,smaug 2012-04-11 17:55:21 -04:00
Masayuki Nakano
c670feb072 Bug 672175 part.15 Add new API nsIDOMWindowUtils.sendNativeMouseScrollEvent() r=roc, sr=smaug 2012-03-22 09:59:12 +09:00
Paul O’Shannessy
40da322e36 Bug 639705 (Lion Full Screen) Part 1: Initial support for fullscreenbutton in XUL [r=enn]
--HG--
extra : rebase_source : 03d0b24570546fb8513b513e2c804145e47b3433
2012-03-20 16:21:14 -07:00
Brad Lassey
e5e9a2b04c merge from mozilla-central 2012-02-18 17:29:33 -05:00
Cameron McCormack
936ba7d3bb Bug 674370 - Make browser windows (and other document-like windows) zoom on creation on OS X 10.7. r=mstange,dao sr=bzbarsky 2012-02-17 14:47:39 +11:00
Patrick Walton
8e9cf5b1f7 Add a DrawWindowUnderlay() to match DrawWindowOverlay() 2012-02-09 19:47:50 -08:00
Marco Bonardo
e7180038c0 Backout 7a8b935ab596 (bug 674370) for Paint regression 2012-02-08 09:23:40 +01:00
Cameron McCormack
79119f394a Bug 674370 - Make browser windows (and other document-like windows) zoom on creation on OS X 10.7. r=mstange,dao sr=bzbarsky 2012-02-08 11:44:45 +11:00