RESOLVED FIXED 138370
Use a web view for Quick Look in action menus
https://bugs.webkit.org/show_bug.cgi?id=138370
Summary Use a web view for Quick Look in action menus
Conrad Shultz
Reported 2014-11-04 13:50:47 PST
WebKit should manage its own view for the Quick Look menu item.
Attachments
Patch (6.64 KB, patch)
2014-11-04 14:23 PST, Conrad Shultz
no flags
Patch (6.69 KB, patch)
2014-11-04 15:22 PST, Conrad Shultz
no flags
Patch (6.70 KB, patch)
2014-11-04 15:23 PST, Conrad Shultz
no flags
Patch (6.50 KB, patch)
2014-11-04 15:52 PST, Conrad Shultz
no flags
Radar WebKit Bug Importer
Comment 1 2014-11-04 13:54:17 PST
Conrad Shultz
Comment 2 2014-11-04 14:23:00 PST
Anders Carlsson
Comment 3 2014-11-04 14:53:15 PST
Comment on attachment 240948 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240948&action=review > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:70 > +@interface _WKPagePreviewViewController : NSViewController { This does not be prefixed by an underscore since it's an internal class.
Tim Horton
Comment 4 2014-11-04 15:02:55 PST
Comment on attachment 240948 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240948&action=review > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:71 > + @private; don't think that semicolon belongs, does it? > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:91 > + _preferredSize = NSMakeSize(320, 568); Where do these crazy numbers come from! > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:223 > + NSPopover *popover = [[NSPopover alloc] init]; is the memory management of popover correct?
Conrad Shultz
Comment 5 2014-11-04 15:07:47 PST
(In reply to comment #3) > Comment on attachment 240948 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=240948&action=review > > > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:70 > > +@interface _WKPagePreviewViewController : NSViewController { > > This does not be prefixed by an underscore since it's an internal class. Removed.
Conrad Shultz
Comment 6 2014-11-04 15:18:59 PST
(In reply to comment #4) > Comment on attachment 240948 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=240948&action=review > > > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:71 > > + @private; > > don't think that semicolon belongs, does it? Nope, not sure how that snuck in. > > > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:91 > > + _preferredSize = NSMakeSize(320, 568); > > Where do these crazy numbers come from! "somewhat arbitrary" = "iPhone 5 screen size"; I'll add that to the ChangeLog. > > > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:223 > > + NSPopover *popover = [[NSPopover alloc] init]; > > is the memory management of popover correct? No, that should use RetainPtr too. New patch coming.
Conrad Shultz
Comment 7 2014-11-04 15:22:13 PST
Conrad Shultz
Comment 8 2014-11-04 15:23:18 PST
Anders Carlsson
Comment 9 2014-11-04 15:39:36 PST
Comment on attachment 240961 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240961&action=review > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:71 > + @private I don't think this needs to be indented. > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:77 > +@property (nonatomic, readonly) NSURL *url; > +@property (nonatomic) NSSize preferredSize; I think these can just be ivars, they don't need to be properties.
Conrad Shultz
Comment 10 2014-11-04 15:49:55 PST
(In reply to comment #9) > Comment on attachment 240961 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=240961&action=review > > > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:71 > > + @private > > I don't think this needs to be indented. Fixed. > > > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:77 > > +@property (nonatomic, readonly) NSURL *url; > > +@property (nonatomic) NSSize preferredSize; > > I think these can just be ivars, they don't need to be properties. It feels really strange to me to prefer direct ivar access, but I'll post a new version doing so.
Conrad Shultz
Comment 11 2014-11-04 15:52:13 PST
WebKit Commit Bot
Comment 12 2014-11-04 16:35:24 PST
Comment on attachment 240971 [details] Patch Clearing flags on attachment: 240971 Committed r175589: <http://trac.webkit.org/changeset/175589>
WebKit Commit Bot
Comment 13 2014-11-04 16:35:27 PST
All reviewed patches have been landed. Closing bug.
Tim Horton
Comment 14 2014-11-04 17:48:53 PST
Note You need to log in before you can comment on or make changes to this bug.