Commit Graph

52 Commits

Author SHA1 Message Date
darin%meer.net
0318b8c707 landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb 2006-05-10 17:30:15 +00:00
joshmoz%gmail.com
2e99a3e233 fix focus/activate for non-embedders when windows are first created. b=330587 r=mento 2006-04-25 19:20:31 +00:00
joshmoz%gmail.com
9ac3c63842 In bug 334551, we added NS_ACTIVATE/NS_DEACTIVATE messages to windows in order to fix a focus problem. However, we were already sending NS_ACTIVATE following NS_GOTFOCUS somewhere else and the real problem was that immediately afterwords we sent another NS_GOTFOCUS. Adding another NS_ACTIVATE seemed to fix the problem because instead of sending NS_GOTFOCUS/NS_ACTIVATE/NS_GOTFOCUS, we sent NS_GOTFOCUS/NS_ACTIVATE/NS_GOTFOCUS/NS_ACTIVATE which meant that each focus message had an activate paired with it. The real fix here however is to not send the second NS_GOTFOCUS message. b=334551 2006-04-24 07:19:10 +00:00
joshmoz%gmail.com
59898c082e fix insertion point wackiness due to not sending top-level window gecko activation events. Also some cleanup. b=334551 r=mento 2006-04-21 20:35:00 +00:00
joshmoz%gmail.com
7a12a01b41 show a reasonable menu bar on app startup in case no window becomes main immediately. b=333088 r=mento 2006-04-07 04:51:16 +00:00
joshmoz%gmail.com
99e0d7f316 roll up popup windows in a couple more places we should. Cocoa widgets. b=332917 r=mento 2006-04-06 19:14:02 +00:00
joshmoz%gmail.com
be0a441b6e handle hidden window menu bar and menu bar switching in general better. gets rid of a lot of crashes. b=330586 r=pav 2006-04-06 07:41:34 +00:00
joshmoz%gmail.com
a7f673077d Implement GetScreenBounds to get window sizing and staggering working. We return the origin of the entire window (title bar and all) but the size of the content area. This is to match Carbon behavior and make everything work nicely. However, this is silly and confusing and we should do away with it in the future. b=330581 r=stuart 2006-04-06 05:31:16 +00:00
pavlov%pavlov.net
279396ea3a removing nsWatchTask, removing cocoa widget dependancies on gfx/src/mac. bug 330786. r=josh 2006-03-17 23:35:39 +00:00
joshmoz%gmail.com
ee782dfe12 make internal close behavior consistent in cocoa widgets. b=330775 r=mento 2006-03-17 05:16:59 +00:00
joshmoz%gmail.com
017ab91bbd fix up window creation coordinates in Cocoa widgets. b=325336 r=mento 2006-03-10 20:51:48 +00:00
joshmoz%gmail.com
2dfa83ca33 roll up popups when we should. Cocoa widgets only. b=325336 r=mento 2006-03-07 20:02:09 +00:00
joshmoz%gmail.com
abf655210c Send GUI events on window close, focus. Also includes cleanup. b=325336 r=mento 2006-02-22 23:15:25 +00:00
mark%moxienet.com
a120d518e8 311311 Fix #include name for builds on case-sensitive filesystems. Patchlet by Ben Fowler <bfowler@ewitness.co.uk>. r=me sr=pink 2006-02-21 01:59:30 +00:00
joshmoz%gmail.com
dec2d1132a Add basic window type support in Cocoa widgets, fix major crash. b=325336 r=mark rs=pinkerton 2006-02-10 21:39:30 +00:00
joshmoz%gmail.com
fa8f6f3926 Clean up window creation in Cocoa widgets. b=325336 r=mento 2006-02-08 06:09:44 +00:00
joshmoz%gmail.com
b96ada8fdf Fix warnings, remove unnecessary includes, fix indentation. Cocoa widgets only, no bug. 2006-02-07 21:00:46 +00:00
joshmoz%gmail.com
ccb6ae9da8 Always save window parent, use PRPackedBool. b=325336 r=mento sr=pinkerton 2006-02-07 19:15:42 +00:00
joshmoz%gmail.com
10ce46bcd5 Enable popup windows in Cocoa widgets. This puts 2 app-specific ifdefs in tier 9 code, but we plan to take care of those soon. We can use a pref so that the same binary can serve the needs of Camino and other Cocoa widget consumers. b=316076 r=mento sr=pinkerton 2006-01-11 19:09:20 +00:00
joshmoz%gmail.com
55dc4e8105 Update old email addresses for Josh Aas. 2006-01-05 17:07:01 +00:00
joshmoz%gmail.com
c1703c57ec back out a fix I made on the 15th, no bug. Turns out Camino actually does use nsCocoaWindow for <select>, and allowing popups caused a Tp regression because they also make their own <select> window (no need for a second one in nsCocoaWindow). Another victim of Camino's crazy <select> hack. 2005-12-19 19:46:44 +00:00
joshmoz%gmail.com
c168937f48 allow popup window types in cocoa widgets (e.g. popup menus). we have to fix them, so might as well turn them on. no bug. sr=pinkerton 2005-12-15 21:19:17 +00:00
joshmoz%gmail.com
472123ea64 cocoa widget window cleanup, also adds basic support for showing a menu bar. NPOB. b=111230 r=pinkerton sr=smfr 2005-10-07 23:31:45 +00:00
smfr%smfr.org
4361539600 Widget part of fix for bug 297343: avoid re-entrant -[NSWindow makeKeyAndOrderFront:] calls by postponing the focus and activate calls into Gecko so that they get called the next time through the event loop, when window visibility and key status are correct. This allows embedder code that implements to nsIEmbeddingWindow::SetFocus() to check those and avoid re-entrant/redundant makeKeyAndOrderFront: calls. r=mento. Only affects Camino. 2005-09-30 00:59:29 +00:00
joshmoz%gmail.com
287ba97dda get cocoa widgets running in Firefox. this means the app launches, but you probably don't want to use it as you have windows with no menu bar :) Also some macro cleanup. only a few lines of codein a component that isn't used, so no reviews necessary. 2005-07-04 20:25:26 +00:00
joshmoz%gmail.com
9120d72e8d cleanup. sr=smfr 2005-07-02 02:46:38 +00:00
jst%mozilla.jstenback.com
50de4a3e1d Fixing bug 289940. Make chrome event handlers only receive trusted events by default. r=jonas@sicking.cc, sr=peterv@propagandism.org, a=chofmann@mozilla.org 2005-04-28 23:48:28 +00:00
smfr%smfr.org
1bc071b87a Fix bug 281732: event handling in camino's native popup got broken when screen-relative coordinates in Cocoa widget were fixed (bug 281470), which caused the nsComboboxControlFrame/nsListControlFrame code to start doing mouse capture, and showing the XUL popup. This revealed a bug in nsCocoaWindow, which failed to set the window type in some situations. This change only affects Camino. 2005-02-16 05:14:59 +00:00
darin%meer.net
950a78482d fixes bug 219400 "remove callers of nsServiceManager:: methods" r=bsmedberg 2004-11-07 23:59:35 +00:00
gerv%gerv.net
ba2432c07e Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-08-25 23:02:50 +00:00
timeless%mozdev.org
61d41fe899 Bug 239132 nsIWidget::SetTitle should use nsAString, not nsString
patch by marco@gnome.org r=bsmedberg sr=darin
2004-04-18 23:18:23 +00:00
bryner%brianryner.com
2bddef83ba Improve the way in which nsEvent and its subclasses are initialized. Commonly-used members can now be initialized via an inline constructor, and all other members are initialized to zero. eventStructType is set automatically. This also fixes some cases where an eventStructType was doubling as a message -- NS_TEXT_EVENT is now only used as an eventStructType, with a message of NS_TEXT_TEXT. NS_COMPOSITION_* events get an eventStructType of NS_COMPOSITION_EVENT, and ditto for NS_RECONVERSION_*. NS_DRAGDROP_EVENT is no longer an eventStructType since it is not a unique type of struct. There is also some miscellaneous cleanup to nsDOMEvent. Bug 220228, r=jst, sr=blizzard. 2004-01-12 08:25:18 +00:00
danm-moz%comcast.net
dca8cc1f87 new |placement| parameter to PlaceBehind. bug 42557 r=neil (mostly), rjc. rs=hyatt 2003-10-07 01:19:51 +00:00
bryner%brianryner.com
06c7c1b2b4 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan. 2003-09-08 00:31:50 +00:00
bryner%netscape.com
8d5ee4a91d Don't build nsRegionMac into the widget library, it's not needed for anything. Remove unused nsWidgetSupport.cpp. Bug 207023, r=pinkerton, sr=sfraser. 2003-06-17 22:54:50 +00:00
bryner%netscape.com
a255586f6a Landing changes from CHIMERA_M1_0_1_BRANCH. Not part of the normal build. 2002-12-13 08:43:18 +00:00
bryner%netscape.com
c922258229 Make this symbol static to avoid clashes in a static build. Not part of the build. 2002-06-03 09:34:50 +00:00
hyatt%netscape.com
0c941eae07 Better version. NPOB. 2002-03-15 19:02:54 +00:00
hyatt%netscape.com
c8fa85e9ef Disable popups in Cocoa completely. They need work. NPOB. 2002-03-15 18:46:39 +00:00
hyatt%netscape.com
ff30b1df16 Fix chimera's crash on shutdown problem. This is caused by popups being over-released because of a close message. NPOB 2002-03-11 02:56:59 +00:00
hyatt%netscape.com
5494a6f2c1 General cleanup of cocoa widget code. NPOB 2002-03-11 02:39:45 +00:00
hyatt%netscape.com
f70e0754d8 Make the middle mouse button events go into Gecko from cocoa. NPOB. 2002-03-09 23:09:34 +00:00
danm%netscape.com
2372d1f129 basic implementation of new method nsIWidget::IsEnabled. b ug 126786 r=hyatt,rginda a=asa 2002-02-28 23:10:04 +00:00
hyatt%netscape.com
e12981886e Make iframes and framesets do proper paint suppression as well. Not part of build. 2002-02-13 19:57:10 +00:00
hyatt%netscape.com
21762536e3 Paint suppression lives! Making cocoa widgets properly show/hide and work with paint suppression. 2002-02-12 08:30:01 +00:00
danm%netscape.com
72d70d876a adding parameter to nsIWidget::ConstrainPosition. bug 113283r=hyatt,pavlov 2002-01-09 01:29:18 +00:00
pinkerton%netscape.com
22f8e18060 Fix some complilation errors, change line endings on scrollbar. [not part of build] 2001-11-29 22:37:48 +00:00
pinkerton%netscape.com
15dcc08c87 More scrolling love, with some other window goodness. [not part of build] 2001-11-19 15:02:23 +00:00
pinkerton%netscape.com
6540f19685 Add scrollbars, fix window resize issues, make scrolling work [not part of build] 2001-11-14 22:29:25 +00:00
pinkerton%netscape.com
36f3d20d54 Fixed up view offsets. Now can pass native NSView as parent for nsChildView for embedding. [not part of build] 2001-11-08 21:47:44 +00:00