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

Issue 11147037: Add a 'hidden' option to chrome.app.window.create() (Closed)

Created:
8 years, 2 months ago by jeremya
Modified:
8 years, 1 month ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, tfarina, jeremya+watch_chromium.org, Dmitry Titov, dcheng, Aaron Boodman, jennb, jianli, tapted, koz (OOO until 15th September)
Visibility:
Public.

Description

Add a 'hidden' option to chrome.app.window.create() This also adds AppWindow.show()/hide(), to manipulate the visibility of the window once it has been created. R=asargent@chromium.org,ben@chromium.org BUG=131742 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164016

Patch Set 1 #

Patch Set 2 : rename 'createHidden' to 'hidden' for less redundancy #

Total comments: 4

Patch Set 3 : Unimplement BrowserView::Hide #

Patch Set 4 : gtk, cocoa impl #

Patch Set 5 : rebase #

Patch Set 6 : fix compile #

Patch Set 7 : Update TestBrowserWindow #

Patch Set 8 : fix ash tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -15 lines) Patch
M chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.h View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/base_window.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/shell_window_gtk.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/shell_window_gtk.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/shell_window_views.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/shell_window_views.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/app_current_window_internal.idl View 1 2 3 4 1 chunk +4 lines, -11 lines 0 comments Download
M chrome/common/extensions/api/app_window.idl View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jeremya
Hi folks, This is a first smash at implementing this, and doesn't yet compile on ...
8 years, 2 months ago (2012-10-16 02:55:16 UTC) #1
benwells
https://codereview.chromium.org/11147037/diff/3001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/11147037/diff/3001/chrome/browser/ui/views/frame/browser_view.cc#newcode615 chrome/browser/ui/views/frame/browser_view.cc:615: frame_->Hide(); Is this implementation used by anything? If not, ...
8 years, 2 months ago (2012-10-16 05:54:54 UTC) #2
jeremya
https://codereview.chromium.org/11147037/diff/3001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/11147037/diff/3001/chrome/browser/ui/views/frame/browser_view.cc#newcode615 chrome/browser/ui/views/frame/browser_view.cc:615: frame_->Hide(); On 2012/10/16 05:54:55, benwells wrote: > Is this ...
8 years, 2 months ago (2012-10-16 06:31:32 UTC) #3
Ben Goodger (Google)
qq. if you're adding a method like 'show' to window, are you going to need ...
8 years, 2 months ago (2012-10-16 18:16:23 UTC) #4
jeremya
On 2012/10/16 18:16:23, Ben Goodger (Google) wrote: > qq. if you're adding a method like ...
8 years, 2 months ago (2012-10-16 23:04:18 UTC) #5
jeremya
Regarding keeping the app alive, I've filed crbug.com/156259. tldr: hidden windows shouldn't keep the app ...
8 years, 2 months ago (2012-10-17 02:45:22 UTC) #6
Ben Goodger (Google)
views bits lgtm
8 years, 2 months ago (2012-10-17 16:28:19 UTC) #7
asargent_no_longer_on_chrome
lgtm
8 years, 2 months ago (2012-10-17 16:45:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/11147037/19001
8 years, 2 months ago (2012-10-23 00:08:25 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 2 months ago (2012-10-23 00:25:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/11147037/28002
8 years, 2 months ago (2012-10-23 04:23:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/11147037/21013
8 years, 2 months ago (2012-10-24 23:18:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/11147037/34002
8 years, 2 months ago (2012-10-25 00:44:49 UTC) #13
commit-bot: I haz the power
8 years, 1 month ago (2012-10-25 04:59:18 UTC) #14
Change committed as 164016

Powered by Google App Engine
This is Rietveld 408576698