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

Issue 10919046: Allow panels to be created as detached panels. (Closed)

Created:
8 years, 3 months ago by jennb
Modified:
8 years, 3 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, yoshiki+watch_chromium.org, Dmitry Titov, dcheng, Aaron Boodman, jennb, jianli
Visibility:
Public.

Description

Allow panels to be created as detached panels. Default position is supplied if not specified in chrome.windows.create. Cleaned up window/popup/panel bounds logic in CreateWindowFunction. TBR=yoshiki,stevenjb BUG=145615 TEST=New tests added. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155071 Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=155080 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155152

Patch Set 1 #

Total comments: 6

Patch Set 2 : missed one usage of CreatePanel in mac unittest #

Patch Set 3 : minor edits #

Patch Set 4 : fix test failures #

Patch Set 5 : Synced #

Total comments: 10

Patch Set 6 : feedback changes #

Patch Set 7 : forgot cocoa unittest again. sigh. #

Total comments: 6

Patch Set 8 : more feedback changes #

Patch Set 9 : Synced #

Patch Set 10 : avoid panel_create_mode being unused_var in Ash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -97 lines) Patch
M chrome/browser/extensions/api/tabs/tabs.cc View 1 2 3 4 5 6 7 8 9 4 chunks +78 lines, -68 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/window_open_apitest.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/base_panel_browser_test.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/base_panel_browser_test.cc View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/panels/detached_panel_browsertest.cc View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/detached_panel_strip.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/detached_panel_strip.cc View 1 2 3 4 5 6 7 3 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_cocoa_unittest.mm View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_manager.h View 1 2 3 4 5 3 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.cc View 1 2 3 4 5 5 chunks +34 lines, -14 lines 0 comments Download
M chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_view.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/windows.json View 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/window_open/panel_detached/manifest.json View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/window_open/panel_detached/test.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/api_test/window_open/panel_detached/test.js View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jennb
jianli - for overall review mihai - for extensions changes stevenjb - make sure my ...
8 years, 3 months ago (2012-08-31 22:58:33 UTC) #1
jianli
Some initial reviews. http://codereview.chromium.org/10919046/diff/1/chrome/browser/ui/panels/detached_panel_strip.cc File chrome/browser/ui/panels/detached_panel_strip.cc (right): http://codereview.chromium.org/10919046/diff/1/chrome/browser/ui/panels/detached_panel_strip.cc#newcode15 chrome/browser/ui/panels/detached_panel_strip.cc:15: const int kPanelTilePixels = 10; Why ...
8 years, 3 months ago (2012-08-31 23:25:55 UTC) #2
jennb
http://codereview.chromium.org/10919046/diff/1/chrome/browser/ui/panels/detached_panel_strip.cc File chrome/browser/ui/panels/detached_panel_strip.cc (right): http://codereview.chromium.org/10919046/diff/1/chrome/browser/ui/panels/detached_panel_strip.cc#newcode15 chrome/browser/ui/panels/detached_panel_strip.cc:15: const int kPanelTilePixels = 10; On 2012/08/31 23:25:55, jianli ...
8 years, 3 months ago (2012-08-31 23:31:14 UTC) #3
jianli
http://codereview.chromium.org/10919046/diff/20/chrome/browser/extensions/api/tabs/tabs.cc File chrome/browser/extensions/api/tabs/tabs.cc (right): http://codereview.chromium.org/10919046/diff/20/chrome/browser/extensions/api/tabs/tabs.cc#newcode546 chrome/browser/extensions/api/tabs/tabs.cc:546: PanelManager::GetInstance()->GetDefaultDetachedPanelOrigin()); Why not just passing (0, 0) and letting ...
8 years, 3 months ago (2012-09-04 21:58:47 UTC) #4
jennb
http://codereview.chromium.org/10919046/diff/20/chrome/browser/extensions/api/tabs/tabs.cc File chrome/browser/extensions/api/tabs/tabs.cc (right): http://codereview.chromium.org/10919046/diff/20/chrome/browser/extensions/api/tabs/tabs.cc#newcode546 chrome/browser/extensions/api/tabs/tabs.cc:546: PanelManager::GetInstance()->GetDefaultDetachedPanelOrigin()); On 2012/09/04 21:58:47, jianli wrote: > Why not ...
8 years, 3 months ago (2012-09-04 23:02:43 UTC) #5
jianli
lgtm http://codereview.chromium.org/10919046/diff/11004/chrome/browser/ui/panels/detached_panel_strip.cc File chrome/browser/ui/panels/detached_panel_strip.cc (right): http://codereview.chromium.org/10919046/diff/11004/chrome/browser/ui/panels/detached_panel_strip.cc#newcode252 chrome/browser/ui/panels/detached_panel_strip.cc:252: void DetachedPanelStrip::OffsetDefaultPanelOrigin() { nit: Probably better name like ...
8 years, 3 months ago (2012-09-05 20:21:40 UTC) #6
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/10919046/diff/11004/chrome/test/data/extensions/api_test/window_open/panel_detached/test.js File chrome/test/data/extensions/api_test/window_open/panel_detached/test.js (right): http://codereview.chromium.org/10919046/diff/11004/chrome/test/data/extensions/api_test/window_open/panel_detached/test.js#newcode6 chrome/test/data/extensions/api_test/window_open/panel_detached/test.js:6: chrome.test.assertEq('panel', win.type); Nit: indented one too many times. ...
8 years, 3 months ago (2012-09-05 20:36:59 UTC) #7
jennb
http://codereview.chromium.org/10919046/diff/11004/chrome/browser/ui/panels/detached_panel_strip.cc File chrome/browser/ui/panels/detached_panel_strip.cc (right): http://codereview.chromium.org/10919046/diff/11004/chrome/browser/ui/panels/detached_panel_strip.cc#newcode252 chrome/browser/ui/panels/detached_panel_strip.cc:252: void DetachedPanelStrip::OffsetDefaultPanelOrigin() { On 2012/09/05 20:21:40, jianli wrote: > ...
8 years, 3 months ago (2012-09-05 21:11:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennb@chromium.org/10919046/4008
8 years, 3 months ago (2012-09-05 21:21:50 UTC) #9
commit-bot: I haz the power
Change committed as 155071
8 years, 3 months ago (2012-09-06 00:30:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennb@chromium.org/10919046/8032
8 years, 3 months ago (2012-09-06 04:46:45 UTC) #11
commit-bot: I haz the power
8 years, 3 months ago (2012-09-06 09:10:53 UTC) #12
Change committed as 155152

Powered by Google App Engine
This is Rietveld 408576698