I need to play with this. It's pretty obvious how this would have been done in Carbon (where you can attach/detach sheets with abandon) but it's less obvious how to do this in Cocoa, where -[NSWindow attachedSheet] implies just one sheet per window, and it's not obvious how to attach a sheet to a window without also running an event loop.
The alternative is to create a window in sheet style but attach it ourselves. Then the question is faking the reveal effect. Once again, it's obvious how to do it in Carbon (WindowTransitionEffect) but less so in Cocoa. If anyone has immediate answers let me know. Otherwise I'll see what I can wrestle up. Avi On Tue, May 5, 2009 at 2:43 PM, Amanda Walker <[email protected]> wrote: > I'd be worried about flashing/jankiness using a real sheet, but a > child window pinned to the top edge of the tab with the right > transitions might work nicely. There's also some stuff Jeremy was > doing in Gears that involved doing interesting things with login > prompts that may (or may not) be relevant. It would certainly be nice > to keep things tab-modal, even though Cocoa doesn't really grok that > idea. > > --Amanda > > > On Tue, May 5, 2009 at 5:40 PM, Avi Drissman <[email protected]> wrote: > > Having signed up for the login dialog, I'm seeing that it's a pretty > > interesting subject. If you try out a page with HTTP auth, you'll see > that > > you get what looks like a dialog for the username and password. But if > you > > click around, you find that you can switch tabs, and that the dialog is > > tab-modal. In fact, the UI test has a test (LoginPromptTest.TestTwoAuths) > to > > make sure that you can have two auths going on at once. > > > > I was thinking about doing this as a sheet, but that's window-modal and > of > > less functionality. I can play games with dialogs (making them child > windows > > and/or hiding/showing along with the tab) but that gets to be less > Mac/like. > > > > As I type this I wonder if we can get a sheet to come down under the tab > bar > > and hide/show it with the tab. Would that be good UI-wise? > > > > And of course, I'd probably retrofit the file picker to do that too. > > > > Thoughts? > > > > Avi > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
