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

Issue 1015123003: Extension window.create API accepts state. (Closed)

Created:
5 years, 9 months ago by limasdf
Modified:
5 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extension window.create API accepts state. Adding new 'state' parameter. the 'state' has ["normal", "minimized", "maximized", "fullscreen"] which is same with 'state' parameter from window.update API. BUG=459841 TEST=browser_tests Committed: https://crrev.com/a7c5d3d68ff8d035e59d0a24fc9ffb78a3e6fdb8 Cr-Commit-Position: refs/heads/master@{#325782}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Seperate patch, first add 'state' param #

Patch Set 3 : switch default #

Total comments: 7

Patch Set 4 : update test #

Patch Set 5 : Minimize(), Maximize() after Show() #

Total comments: 1

Patch Set 6 : Make manually minimized if initial_state == minizized #

Total comments: 4

Patch Set 7 : typo #

Patch Set 8 : minimized test #

Total comments: 10

Patch Set 9 : rebase and review comment #

Total comments: 1

Patch Set 10 : consider chromeos #

Total comments: 4

Patch Set 11 : mention crbug #

Total comments: 6

Patch Set 12 : grammer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -27 lines) Patch
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +43 lines, -23 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_test.cc View 1 2 3 4 5 6 7 8 2 chunks +34 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/windows.json View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (9 generated)
limasdf
PTAL! when you have time
5 years, 9 months ago (2015-03-18 16:07:32 UTC) #2
not at google - send to devlin
Awesome. There are 2 changes here, adding the new 'state' parameter to create, and adding ...
5 years, 9 months ago (2015-03-19 15:43:45 UTC) #3
limasdf
On 2015/03/19 15:43:45, kalman wrote: > Awesome. > > There are 2 changes here, adding ...
5 years, 9 months ago (2015-03-19 17:39:33 UTC) #4
limasdf
https://codereview.chromium.org/1015123003/diff/1/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/1/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode196 chrome/browser/extensions/api/tabs/tabs_api.cc:196: default: On 2015/03/19 15:43:45, kalman wrote: > No default ...
5 years, 9 months ago (2015-03-19 17:40:13 UTC) #5
not at google - send to devlin
https://codereview.chromium.org/1015123003/diff/40001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/40001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode621 chrome/browser/extensions/api/tabs/tabs_api.cc:621: controller->SetFullscreenMode(true, extension()->url()); Can you double-check this works? I'm just ...
5 years, 9 months ago (2015-03-19 17:56:31 UTC) #6
limasdf
please! https://codereview.chromium.org/1015123003/diff/40001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/40001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode621 chrome/browser/extensions/api/tabs/tabs_api.cc:621: controller->SetFullscreenMode(true, extension()->url()); On 2015/03/19 17:56:31, kalman wrote: > ...
5 years, 9 months ago (2015-03-20 17:03:46 UTC) #7
limasdf
Sorry. Hold on please. This doesn't seem to work on Mac. sorry. I'll check again.
5 years, 9 months ago (2015-03-20 18:33:11 UTC) #8
not at google - send to devlin
Ok. I am also away next week - perhaps Trent can take over as reviewer ...
5 years, 9 months ago (2015-03-20 19:06:27 UTC) #10
limasdf
Hi taped! :) Could you take a look when you have time? https://codereview.chromium.org/1015123003/diff/40001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc ...
5 years, 9 months ago (2015-03-21 09:31:34 UTC) #12
tapted
It makes sense that maximise doesn't work on Mac since there is no such thing. ...
5 years, 9 months ago (2015-03-22 23:05:18 UTC) #13
limasdf
patch set 4 - doesn't work. just pass initial_show_state when create |Browser|. patch set 5 ...
5 years, 9 months ago (2015-03-22 23:16:47 UTC) #14
limasdf
PTAL. the window cannot initially become minimized. so manually make it minimized. It's same as ...
5 years, 8 months ago (2015-03-30 12:28:00 UTC) #16
not at google - send to devlin
Thanks :-) https://codereview.chromium.org/1015123003/diff/140001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/140001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode630 chrome/browser/extensions/api/tabs/tabs_api.cc:630: // Make window minizmied. Because Window cann't ...
5 years, 8 months ago (2015-03-30 18:00:09 UTC) #17
limasdf
~_~ https://codereview.chromium.org/1015123003/diff/140001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/140001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode630 chrome/browser/extensions/api/tabs/tabs_api.cc:630: // Make window minizmied. Because Window cann't be ...
5 years, 8 months ago (2015-03-31 12:36:11 UTC) #18
not at google - send to devlin
On 2015/03/31 12:36:11, limasdf wrote: > ~_~ > > https://codereview.chromium.org/1015123003/diff/140001/chrome/browser/extensions/api/tabs/tabs_api.cc > File chrome/browser/extensions/api/tabs/tabs_api.cc (right): > ...
5 years, 8 months ago (2015-03-31 14:40:27 UTC) #19
not at google - send to devlin
by testing I mean by hand, not unit testing.
5 years, 8 months ago (2015-03-31 14:40:38 UTC) #20
limasdf
On 2015/03/31 14:40:38, kalman wrote: > by testing I mean by hand, not unit testing. ...
5 years, 8 months ago (2015-03-31 15:28:51 UTC) #21
tapted
On 2015/03/31 12:36:11, limasdf wrote: > ~_~ > > https://codereview.chromium.org/1015123003/diff/140001/chrome/browser/extensions/api/tabs/tabs_api.cc > File chrome/browser/extensions/api/tabs/tabs_api.cc (right): > ...
5 years, 8 months ago (2015-04-01 00:48:26 UTC) #22
limasdf
On 2015/04/01 00:48:26, tapted wrote: > On 2015/03/31 12:36:11, limasdf wrote: > > ~_~ > ...
5 years, 8 months ago (2015-04-01 02:58:28 UTC) #24
tapted
https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode632 chrome/browser/extensions/api/tabs/tabs_api.cc:632: new_window->window()->Minimize(); These additions still don't look right to me. ...
5 years, 8 months ago (2015-04-01 03:41:55 UTC) #25
limasdf
https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode632 chrome/browser/extensions/api/tabs/tabs_api.cc:632: new_window->window()->Minimize(); On 2015/04/01 03:41:55, tapted wrote: > These additions ...
5 years, 8 months ago (2015-04-01 23:59:45 UTC) #26
limasdf
https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode632 chrome/browser/extensions/api/tabs/tabs_api.cc:632: new_window->window()->Minimize(); On 2015/04/01 23:59:45, limasdf wrote: > On 2015/04/01 ...
5 years, 8 months ago (2015-04-02 16:57:48 UTC) #27
tapted
https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode632 chrome/browser/extensions/api/tabs/tabs_api.cc:632: new_window->window()->Minimize(); On 2015/04/02 16:57:48, limasdf wrote: > On 2015/04/01 ...
5 years, 8 months ago (2015-04-15 00:36:12 UTC) #28
limasdf
Thank you for the review! https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode632 chrome/browser/extensions/api/tabs/tabs_api.cc:632: new_window->window()->Minimize(); On 2015/04/15 00:36:12, ...
5 years, 8 months ago (2015-04-15 23:34:50 UTC) #29
tapted
https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/190005/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode632 chrome/browser/extensions/api/tabs/tabs_api.cc:632: new_window->window()->Minimize(); On 2015/04/15 23:34:49, limasdf wrote: > On 2015/04/15 ...
5 years, 8 months ago (2015-04-16 00:31:03 UTC) #30
limasdf
Sorry about late response. I have run from linux(typical), linux(chromeos build), mac, and Windows. Now ...
5 years, 8 months ago (2015-04-17 05:43:08 UTC) #31
tapted
lgtm, but wait for kalman too I've updated http://crbug.com/473228. Ideally we fix that first, but ...
5 years, 8 months ago (2015-04-17 06:46:43 UTC) #32
limasdf
On 2015/04/17 06:46:43, tapted wrote: > lgtm, but wait for kalman too > > I've ...
5 years, 8 months ago (2015-04-17 06:58:08 UTC) #33
limasdf
Benjamin, Could you take a look? https://codereview.chromium.org/1015123003/diff/230001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/230001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode631 chrome/browser/extensions/api/tabs/tabs_api.cc:631: // considered to ...
5 years, 8 months ago (2015-04-17 16:15:57 UTC) #34
not at google - send to devlin
most of my comments are only really true assuming that OS_CHROMEOS doesn't already imply OS_LINUX, ...
5 years, 8 months ago (2015-04-17 16:49:47 UTC) #35
limasdf
https://codereview.chromium.org/1015123003/diff/250001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1015123003/diff/250001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode635 chrome/browser/extensions/api/tabs/tabs_api.cc:635: #if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_WIN) On 2015/04/17 16:49:47, ...
5 years, 8 months ago (2015-04-17 18:33:26 UTC) #36
not at google - send to devlin
Thanks for explaining, lgtm.
5 years, 8 months ago (2015-04-17 19:31:31 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1015123003/270001
5 years, 8 months ago (2015-04-17 19:33:55 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/13336)
5 years, 8 months ago (2015-04-17 20:24:40 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1015123003/270001
5 years, 8 months ago (2015-04-18 04:01:31 UTC) #44
commit-bot: I haz the power
Committed patchset #12 (id:270001)
5 years, 8 months ago (2015-04-18 13:37:42 UTC) #45
commit-bot: I haz the power
5 years, 8 months ago (2015-04-18 13:39:20 UTC) #46
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/a7c5d3d68ff8d035e59d0a24fc9ffb78a3e6fdb8
Cr-Commit-Position: refs/heads/master@{#325782}

Powered by Google App Engine
This is Rietveld 408576698