Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Issue 10824004: [mac] Implement {frame: 'none'} app window on Mac. (Closed)

Created:
8 years, 5 months ago by jeremya
Modified:
8 years, 4 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, jeremya+watch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, benwells, jianli
Visibility:
Public.

Description

[mac] Implement {frame: 'none'} app window on Mac. Support for draggable regions hasn't landed yet, so we hard-code 20px of draggable space at the top of the window. BUG=130182 R=rsesek@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150062

Patch Set 1 #

Total comments: 2

Patch Set 2 : alternative approach #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -7 lines) Patch
M chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm View 1 4 chunks +71 lines, -6 lines 3 comments Download
M content/browser/web_contents/web_contents_view_mac.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_mac.mm View 1 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
jeremya
rsesek- browser/ui/cocoa jam- content/. Perhaps adding OSX-specific stuff here is bad? I'm not sure how ...
8 years, 5 months ago (2012-07-25 01:11:52 UTC) #1
jam
http://codereview.chromium.org/10824004/diff/1/content/public/browser/web_contents_view.h File content/public/browser/web_contents_view.h (right): http://codereview.chromium.org/10824004/diff/1/content/public/browser/web_contents_view.h#newcode122 content/public/browser/web_contents_view.h:122: virtual void SetMouseDownCanMoveWindow(bool can_move) = 0; the event tracking ...
8 years, 5 months ago (2012-07-25 01:27:15 UTC) #2
jeremya
http://codereview.chromium.org/10824004/diff/1/content/public/browser/web_contents_view.h File content/public/browser/web_contents_view.h (right): http://codereview.chromium.org/10824004/diff/1/content/public/browser/web_contents_view.h#newcode122 content/public/browser/web_contents_view.h:122: virtual void SetMouseDownCanMoveWindow(bool can_move) = 0; On 2012/07/25 01:27:15, ...
8 years, 5 months ago (2012-07-25 03:15:59 UTC) #3
jam
+Avi for his thoughts, I don't understand the WCV workaround you mentioned.
8 years, 4 months ago (2012-07-25 16:20:06 UTC) #4
Avi (use Gerrit)
I'm a little lost here. You want to make the whole window a webview, yet ...
8 years, 4 months ago (2012-07-25 16:48:34 UTC) #5
jeremya
On 2012/07/25 16:48:34, Avi wrote: > I'm a little lost here. You want to make ...
8 years, 4 months ago (2012-07-25 23:48:24 UTC) #6
Avi (use Gerrit)
Can't you overlay views that respond YES to mouseDownCanMoveWindow? I'm not thrilled with either of ...
8 years, 4 months ago (2012-07-26 02:58:54 UTC) #7
jeremya
On 2012/07/26 02:58:54, Avi wrote: > Can't you overlay views that respond YES to mouseDownCanMoveWindow? ...
8 years, 4 months ago (2012-07-26 04:37:39 UTC) #8
Avi (use Gerrit)
This approach throws a platform method into the public interface, and the other approach relies ...
8 years, 4 months ago (2012-07-26 14:32:03 UTC) #9
jeremya
On 2012/07/26 14:32:03, Avi wrote: > This approach throws a platform method into the public ...
8 years, 4 months ago (2012-07-31 05:12:03 UTC) #10
jeremya
On 2012/07/31 05:12:03, jeremya wrote: > On 2012/07/26 14:32:03, Avi wrote: > > This approach ...
8 years, 4 months ago (2012-07-31 05:51:12 UTC) #11
Avi (use Gerrit)
Sorry about the suggestion for RenderWidgetHostViewMacDelegate; I had in my head the idea that it ...
8 years, 4 months ago (2012-07-31 15:03:04 UTC) #12
jeremya
I'll go with that (with added DCHECKs) and add a comment that it's a hack ...
8 years, 4 months ago (2012-08-03 04:06:48 UTC) #13
jeremya
avi- I've removed the changes to the WebContentsView interface. rsesek- could you take a look ...
8 years, 4 months ago (2012-08-03 04:48:46 UTC) #14
Avi (use Gerrit)
lgtm https://chromiumcodereview.appspot.com/10824004/diff/9002/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm File chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm (right): https://chromiumcodereview.appspot.com/10824004/diff/9002/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm#newcode167 chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm:167: // WebContentsViewCocoa view. Grrr. :(
8 years, 4 months ago (2012-08-03 05:19:49 UTC) #15
jeremya
https://chromiumcodereview.appspot.com/10824004/diff/9002/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm File chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm (right): https://chromiumcodereview.appspot.com/10824004/diff/9002/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm#newcode167 chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm:167: // WebContentsViewCocoa view. On 2012/08/03 05:19:49, Avi wrote: > ...
8 years, 4 months ago (2012-08-05 22:52:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/10824004/9002
8 years, 4 months ago (2012-08-06 04:02:17 UTC) #17
commit-bot: I haz the power
Change committed as 150062
8 years, 4 months ago (2012-08-06 04:57:35 UTC) #18
sail
8 years, 4 months ago (2012-08-07 17:40:11 UTC) #19
Drive by comment.

https://chromiumcodereview.appspot.com/10824004/diff/9002/chrome/browser/ui/c...
File chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm (right):

https://chromiumcodereview.appspot.com/10824004/diff/9002/chrome/browser/ui/c...
chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm:145: NSView*
controlRegion = [[ControlRegionView alloc] init];
this should be scoped_nsobject

Powered by Google App Engine
This is Rietveld 408576698