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

Issue 10823176: Cocoa: Support constrained windows for platform apps (Closed)

Created:
8 years, 4 months ago by sail
Modified:
8 years, 4 months ago
CC:
chromium-reviews, jeremya+watch_chromium.org, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Cocoa: Support constrained windows for platform apps This CL adds support for constrained windows to ShellWindowController which is used by platform apps. BUG=140593 TEST=Verified that constrained windows on tab windows still work. Ran the media gallery test app and verified that opening constrained windows inside a shell window worked. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151191

Patch Set 1 #

Patch Set 2 : comment #

Total comments: 14

Patch Set 3 : address review comments #

Patch Set 4 : rebase #

Patch Set 5 : fix print preview test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -14 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller.h View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/constrained_window_mac.h View 1 3 chunks +19 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/constrained_window_mac.mm View 1 2 3 4 3 chunks +21 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h View 1 2 3 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
sail
8 years, 4 months ago (2012-08-04 02:53:20 UTC) #1
Avi (use Gerrit)
lgtm
8 years, 4 months ago (2012-08-04 22:50:04 UTC) #2
jeremya
Awesome! I thought this would take a bunch more code than it did :) https://chromiumcodereview.appspot.com/10823176/diff/2001/chrome/browser/ui/cocoa/constrained_window_mac.mm ...
8 years, 4 months ago (2012-08-05 22:32:47 UTC) #3
Robert Sesek
LGTM https://chromiumcodereview.appspot.com/10823176/diff/2001/chrome/browser/ui/cocoa/constrained_window_mac.mm File chrome/browser/ui/cocoa/constrained_window_mac.mm (right): https://chromiumcodereview.appspot.com/10823176/diff/2001/chrome/browser/ui/cocoa/constrained_window_mac.mm#newcode112 chrome/browser/ui/cocoa/constrained_window_mac.mm:112: @protocol(ConstrainedWindowSupport)]) { nit: indent4 from here https://chromiumcodereview.appspot.com/10823176/diff/2001/chrome/browser/ui/cocoa/constrained_window_mac.mm#newcode119 chrome/browser/ui/cocoa/constrained_window_mac.mm:119: ...
8 years, 4 months ago (2012-08-06 22:18:34 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10823176/9001
8 years, 4 months ago (2012-08-08 22:51:59 UTC) #5
commit-bot: I haz the power
Try job failure for 10823176-9001 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 4 months ago (2012-08-08 23:32:33 UTC) #6
sail
http://codereview.chromium.org/10823176/diff/2001/chrome/browser/ui/cocoa/constrained_window_mac.mm File chrome/browser/ui/cocoa/constrained_window_mac.mm (right): http://codereview.chromium.org/10823176/diff/2001/chrome/browser/ui/cocoa/constrained_window_mac.mm#newcode112 chrome/browser/ui/cocoa/constrained_window_mac.mm:112: @protocol(ConstrainedWindowSupport)]) { On 2012/08/06 22:18:34, rsesek wrote: > nit: ...
8 years, 4 months ago (2012-08-09 00:25:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10823176/9001
8 years, 4 months ago (2012-08-09 00:28:17 UTC) #8
jeremya
http://codereview.chromium.org/10823176/diff/2001/chrome/browser/ui/cocoa/constrained_window_mac.mm File chrome/browser/ui/cocoa/constrained_window_mac.mm (right): http://codereview.chromium.org/10823176/diff/2001/chrome/browser/ui/cocoa/constrained_window_mac.mm#newcode116 chrome/browser/ui/cocoa/constrained_window_mac.mm:116: window = [window parentWindow]; On 2012/08/09 00:25:54, sail wrote: ...
8 years, 4 months ago (2012-08-09 00:32:48 UTC) #9
sail
http://codereview.chromium.org/10823176/diff/2001/chrome/browser/ui/cocoa/constrained_window_mac.mm File chrome/browser/ui/cocoa/constrained_window_mac.mm (right): http://codereview.chromium.org/10823176/diff/2001/chrome/browser/ui/cocoa/constrained_window_mac.mm#newcode116 chrome/browser/ui/cocoa/constrained_window_mac.mm:116: window = [window parentWindow]; On 2012/08/09 00:32:48, jeremya wrote: ...
8 years, 4 months ago (2012-08-09 00:40:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10823176/9001
8 years, 4 months ago (2012-08-10 18:05:59 UTC) #11
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h: While running patch -p1 --forward --force; patching file chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h ...
8 years, 4 months ago (2012-08-10 18:06:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10823176/2003
8 years, 4 months ago (2012-08-10 18:19:39 UTC) #13
commit-bot: I haz the power
Try job failure for 10823176-2003 on linux_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=46654 Step "update" is always ...
8 years, 4 months ago (2012-08-10 18:27:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10823176/2003
8 years, 4 months ago (2012-08-10 18:59:57 UTC) #15
commit-bot: I haz the power
Try job failure for 10823176-2003 (retry) on mac_rel for steps "browser_tests, unit_tests". It's a second ...
8 years, 4 months ago (2012-08-10 20:12:48 UTC) #16
sail
Changed the DCHECK(window_controller) to DCHECK(!window || window_controller). This handles the case where a constrained window ...
8 years, 4 months ago (2012-08-10 23:09:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10823176/7004
8 years, 4 months ago (2012-08-10 23:10:34 UTC) #18
commit-bot: I haz the power
Try job failure for 10823176-7004 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-11 01:35:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10823176/7004
8 years, 4 months ago (2012-08-11 04:26:38 UTC) #20
commit-bot: I haz the power
8 years, 4 months ago (2012-08-12 01:57:06 UTC) #21
Change committed as 151191

Powered by Google App Engine
This is Rietveld 408576698