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

Issue 11363250: Allow Chrome apps to create Ash Panels (apps v2) (Closed)

Created:
8 years, 1 month ago by stevenjb
Modified:
8 years ago
CC:
chromium-reviews, Aaron Boodman, jeremya+watch_chromium.org, sadrul, chromium-apps-reviews_chromium.org, ben+watch_chromium.org
Visibility:
Public.

Description

Allow Chrome apps to create Ash Panels (apps v2) Adds ShellPanelAsh and window_type=panel support to ShellWindow BUG=161102 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170552

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 11

Patch Set 4 : Address feedback and rename ShellPanelAsh -> ShellUtilityWindowAsh #

Patch Set 5 : Fix PanelLayoutManager #

Total comments: 10

Patch Set 6 : Respond to feedback #

Patch Set 7 : Re-upload previous patch #

Patch Set 8 : Multi-icon support #

Total comments: 15

Patch Set 9 : Address feedback and add unit test for PanelLayoutManager minimize/restore #

Total comments: 3

Patch Set 10 : Rebase off issue 11280173 #

Total comments: 9

Patch Set 11 : Address feedback #

Total comments: 3

Patch Set 12 : Rebase #

Patch Set 13 : Add IsNativeViewInAsh test #

Patch Set 14 : Rebase #

Patch Set 15 : Fix ash_shell #

Patch Set 16 : Fix win #

Patch Set 17 : rebase #

Patch Set 18 : Fix mac and win builds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -989 lines) Patch
M ash/shell/panel_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/panel_frame_view.h View 1 2 3 6 7 8 9 1 chunk +8 lines, -1 line 0 comments Download
M ash/wm/panel_frame_view.cc View 1 2 3 4 5 6 7 8 9 8 chunks +26 lines, -7 lines 0 comments Download
M ash/wm/panel_layout_manager.h View 4 chunks +10 lines, -0 lines 0 comments Download
M ash/wm/panel_layout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +40 lines, -22 lines 0 comments Download
M ash/wm/panel_layout_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc View 1 2 3 4 5 6 7 8 9 5 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/native_app_window_views.h View 1 2 3 4 5 6 7 8 9 5 chunks +27 lines, -30 lines 0 comments Download
M chrome/browser/ui/views/extensions/native_app_window_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +196 lines, -482 lines 0 comments Download
A chrome/browser/ui/views/extensions/shell_window_frame_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +77 lines, -0 lines 0 comments Download
A + chrome/browser/ui/views/extensions/shell_window_frame_view.cc View 1 2 3 4 5 6 7 8 9 8 chunks +8 lines, -416 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/app_window.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 33 (0 generated)
stevenjb
This ready for a preliminary review. The implementation lacks polish, but it should allow us ...
8 years, 1 month ago (2012-11-14 23:27:25 UTC) #1
jeremya
Some general questions: - how will frameless windows/draggable regions come into this? Is that supportable ...
8 years, 1 month ago (2012-11-15 01:09:25 UTC) #2
stevenjb (google-dont-use)
On Wed, Nov 14, 2012 at 5:09 PM, <jeremya@chromium.org> wrote: > Some general questions: > ...
8 years, 1 month ago (2012-11-15 01:15:44 UTC) #3
flackr
https://codereview.chromium.org/11363250/diff/4001/ash/shell/panel_window.cc File ash/shell/panel_window.cc (right): https://codereview.chromium.org/11363250/diff/4001/ash/shell/panel_window.cc#newcode79 ash/shell/panel_window.cc:79: return new PanelFrameView(widget, true); On 2012/11/15 01:09:25, jeremya wrote: ...
8 years, 1 month ago (2012-11-15 16:04:17 UTC) #4
Ben Goodger (Google)
On Wed, Nov 14, 2012 at 5:09 PM, <jeremya@chromium.org> wrote: > Some general questions: > ...
8 years, 1 month ago (2012-11-15 18:25:01 UTC) #5
stevenjb
PTAL: * Addressed feedback * Renamed ShellPanelAsh -> ShellUtilityWindowAsh ("Utility Window" is the new term ...
8 years, 1 month ago (2012-11-16 23:42:40 UTC) #6
jeremya
https://chromiumcodereview.appspot.com/11363250/diff/15001/chrome/browser/ui/ash/shell_utility_window_ash.cc File chrome/browser/ui/ash/shell_utility_window_ash.cc (right): https://chromiumcodereview.appspot.com/11363250/diff/15001/chrome/browser/ui/ash/shell_utility_window_ash.cc#newcode49 chrome/browser/ui/ash/shell_utility_window_ash.cc:49: window_->Init(params); Bounds should refer to content bounds, not window ...
8 years, 1 month ago (2012-11-19 00:04:23 UTC) #7
stevenjb
PTAL https://chromiumcodereview.appspot.com/11363250/diff/15001/chrome/browser/ui/ash/shell_utility_window_ash.cc File chrome/browser/ui/ash/shell_utility_window_ash.cc (right): https://chromiumcodereview.appspot.com/11363250/diff/15001/chrome/browser/ui/ash/shell_utility_window_ash.cc#newcode49 chrome/browser/ui/ash/shell_utility_window_ash.cc:49: window_->Init(params); On 2012/11/19 00:04:24, jeremya wrote: > Bounds ...
8 years, 1 month ago (2012-11-19 21:38:43 UTC) #8
flackr
LGTM. Seems to be something weird going on with the side by side view on ...
8 years, 1 month ago (2012-11-19 21:59:33 UTC) #9
stevenjb
On 2012/11/19 21:59:33, flackr wrote: > LGTM. Seems to be something weird going on with ...
8 years, 1 month ago (2012-11-19 22:17:00 UTC) #10
stevenjb
OK, diffs should work now. Thanks for letting me know.
8 years, 1 month ago (2012-11-19 22:21:18 UTC) #11
stevenjb
I forgot that I had already done all of the heavy lifting to support multiple ...
8 years, 1 month ago (2012-11-19 23:36:01 UTC) #12
stevenjb
+sky@ for chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc and OWNER lgtm for chrome/browser/ui/ash and ash/wm
8 years, 1 month ago (2012-11-19 23:38:01 UTC) #13
sky
Can you add test coverage of the changes to PanelLayoutManager? https://codereview.chromium.org/11363250/diff/22003/ash/wm/panel_frame_view.cc File ash/wm/panel_frame_view.cc (right): https://codereview.chromium.org/11363250/diff/22003/ash/wm/panel_frame_view.cc#newcode38 ...
8 years, 1 month ago (2012-11-20 02:05:05 UTC) #14
stevenjb
https://codereview.chromium.org/11363250/diff/22003/ash/wm/panel_frame_view.cc File ash/wm/panel_frame_view.cc (right): https://codereview.chromium.org/11363250/diff/22003/ash/wm/panel_frame_view.cc#newcode38 ash/wm/panel_frame_view.cc:38: return gfx::Insets(0, 0, title_height, 0); On 2012/11/20 02:05:05, sky ...
8 years, 1 month ago (2012-11-20 21:20:57 UTC) #15
stevenjb
+jamescook@ for changes to FramePainter
8 years, 1 month ago (2012-11-20 21:21:40 UTC) #16
James Cook
On 2012/11/20 21:21:40, stevenjb (chromium) wrote: > +jamescook@ for changes to FramePainter ash/wm/frame_painter.* LGTM with ...
8 years, 1 month ago (2012-11-20 22:08:27 UTC) #17
James Cook
https://codereview.chromium.org/11363250/diff/15004/ash/wm/frame_painter.cc File ash/wm/frame_painter.cc (right): https://codereview.chromium.org/11363250/diff/15004/ash/wm/frame_painter.cc#newcode498 ash/wm/frame_painter.cc:498: return (bottom_y - 1) + kHeaderContentSeparatorSize; nit: Consider documenting ...
8 years, 1 month ago (2012-11-20 22:08:41 UTC) #18
sky
https://codereview.chromium.org/11363250/diff/22003/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc (right): https://codereview.chromium.org/11363250/diff/22003/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc#newcode27 chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc:27: return base::IntToString(shell_window->session_id().id()); On 2012/11/20 21:20:58, stevenjb (chromium) wrote: > ...
8 years, 1 month ago (2012-11-20 22:15:51 UTC) #19
stevenjb
https://codereview.chromium.org/11363250/diff/22003/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc (right): https://codereview.chromium.org/11363250/diff/22003/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc#newcode27 chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc:27: return base::IntToString(shell_window->session_id().id()); On 2012/11/20 22:15:51, sky wrote: > On ...
8 years, 1 month ago (2012-11-20 22:29:10 UTC) #20
sky
https://codereview.chromium.org/11363250/diff/22003/chrome/browser/ui/ash/shell_utility_window_ash.h File chrome/browser/ui/ash/shell_utility_window_ash.h (right): https://codereview.chromium.org/11363250/diff/22003/chrome/browser/ui/ash/shell_utility_window_ash.h#newcode31 chrome/browser/ui/ash/shell_utility_window_ash.h:31: class ShellUtilityWindowAsh : public NativeShellWindow, On 2012/11/20 21:20:58, stevenjb ...
8 years, 1 month ago (2012-11-21 00:39:41 UTC) #21
stevenjb
OK, this has been re-factored with the final result of https://codereview.chromium.org/11280173/. Some other changes made ...
8 years ago (2012-11-29 02:30:38 UTC) #22
jeremya
https://codereview.chromium.org/11363250/diff/27001/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/11363250/diff/27001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode150 chrome/browser/extensions/api/app_window/app_window_api.cc:150: create_params.window_type = ShellWindow::WINDOW_TYPE_PANEL; If these panels are only allowed ...
8 years ago (2012-11-29 02:49:04 UTC) #23
stevenjb
https://codereview.chromium.org/11363250/diff/27001/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/11363250/diff/27001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode150 chrome/browser/extensions/api/app_window/app_window_api.cc:150: create_params.window_type = ShellWindow::WINDOW_TYPE_PANEL; On 2012/11/29 02:49:05, jeremya wrote: > ...
8 years ago (2012-11-29 03:11:25 UTC) #24
jeremya
lgtm
8 years ago (2012-11-29 03:33:04 UTC) #25
James Cook
LGTM for ash/wm/* https://codereview.chromium.org/11363250/diff/14020/ash/wm/panel_layout_manager_unittest.cc File ash/wm/panel_layout_manager_unittest.cc (right): https://codereview.chromium.org/11363250/diff/14020/ash/wm/panel_layout_manager_unittest.cc#newcode264 ash/wm/panel_layout_manager_unittest.cc:264: TEST_F(PanelLayoutManagerTest, MinimizeRestorePanel) { Thanks for adding ...
8 years ago (2012-11-29 16:52:00 UTC) #26
Ben Goodger (Google)
https://codereview.chromium.org/11363250/diff/14020/chrome/browser/ui/views/extensions/native_app_window_views.cc File chrome/browser/ui/views/extensions/native_app_window_views.cc (right): https://codereview.chromium.org/11363250/diff/14020/chrome/browser/ui/views/extensions/native_app_window_views.cc#newcode326 chrome/browser/ui/views/extensions/native_app_window_views.cc:326: #if defined(USE_ASH) USE_ASH is not exclusive anymore. I think ...
8 years ago (2012-11-29 17:15:38 UTC) #27
stevenjb
ptal https://codereview.chromium.org/11363250/diff/14020/chrome/browser/ui/views/extensions/native_app_window_views.cc File chrome/browser/ui/views/extensions/native_app_window_views.cc (right): https://codereview.chromium.org/11363250/diff/14020/chrome/browser/ui/views/extensions/native_app_window_views.cc#newcode326 chrome/browser/ui/views/extensions/native_app_window_views.cc:326: #if defined(USE_ASH) On 2012/11/29 17:15:39, Ben Goodger (Google) ...
8 years ago (2012-11-29 18:43:36 UTC) #28
Ben Goodger (Google)
lgtm
8 years ago (2012-11-29 18:46:16 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11363250/13023
8 years ago (2012-11-29 19:43:56 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11363250/20087
8 years ago (2012-11-30 17:53:50 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11363250/28018
8 years ago (2012-11-30 18:50:39 UTC) #32
commit-bot: I haz the power
8 years ago (2012-11-30 21:37:17 UTC) #33
Message was sent while issue was closed.
Change committed as 170552

Powered by Google App Engine
This is Rietveld 408576698