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

Issue 11369039: Add setBounds method and browsertest for get/set bounds to app window API (Closed)

Created:
8 years, 1 month ago by asargent_no_longer_on_chrome
Modified:
8 years ago
Reviewers:
jeremya
CC:
chromium-reviews, Aaron Boodman, jeremya+watch_chromium.org, darin-cc_chromium.org, tfarina, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Add setBounds method and browsertest for get/set bounds to app window API Also fixed a bug where the window bounds were often not set after creation until the window was moved/resized. BUG=134068 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=169391

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebased, responded to review feedback #

Total comments: 7

Patch Set 3 : removed caching of setBounds values #

Patch Set 4 : rebased against trunk #

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -4 lines) Patch
M chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.h View 1 chunk +9 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 2 chunks +25 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/app_window/app_window_apitest.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/app_current_window_internal.idl View 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/app_window.idl View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/app_window_custom_bindings.js View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_bounds/background.js View 1 1 chunk +20 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_bounds/main.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_bounds/main.js View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_bounds/manifest.json View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
asargent_no_longer_on_chrome
This still has the not-yet-committed changes from http://codereview.chromium.org/11193049/, but the setBounds specific stuff and browser ...
8 years, 1 month ago (2012-11-02 00:30:14 UTC) #1
asargent_no_longer_on_chrome
Oops, just realized I meant "Add *setBounds*..." not "Add getBounds..." for the CL description.
8 years, 1 month ago (2012-11-02 00:31:19 UTC) #2
jeremya
On 2012/11/02 00:31:19, Antony Sargent wrote: > Oops, just realized I meant "Add *setBounds*..." not ...
8 years, 1 month ago (2012-11-02 00:47:45 UTC) #3
jeremya
http://codereview.chromium.org/11369039/diff/1/chrome/browser/extensions/api/app_window/app_window_apitest.cc File chrome/browser/extensions/api/app_window/app_window_apitest.cc (right): http://codereview.chromium.org/11369039/diff/1/chrome/browser/extensions/api/app_window/app_window_apitest.cc#newcode31 chrome/browser/extensions/api/app_window/app_window_apitest.cc:31: int slop = 10; What other platforms are these ...
8 years, 1 month ago (2012-11-02 05:06:41 UTC) #4
asargent_no_longer_on_chrome
Ok, new version up. Sorry for rebasing in middle of review, but should be easier ...
8 years, 1 month ago (2012-11-09 20:25:34 UTC) #5
jeremya
Oops, sorry I missed this yesterday! http://codereview.chromium.org/11369039/diff/3003/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc File chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc (right): http://codereview.chromium.org/11369039/diff/3003/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc#newcode103 chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc:103: window->GetBaseWindow()->SetBounds(bounds); I think ...
8 years, 1 month ago (2012-11-13 06:16:30 UTC) #6
asargent_no_longer_on_chrome
https://codereview.chromium.org/11369039/diff/3003/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc File chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc (right): https://codereview.chromium.org/11369039/diff/3003/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc#newcode103 chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc:103: window->GetBaseWindow()->SetBounds(bounds); On 2012/11/13 06:16:30, jeremya wrote: > I think ...
8 years, 1 month ago (2012-11-14 05:22:12 UTC) #7
asargent_no_longer_on_chrome
Ok, as discussed offline, I removed the caching of values from setBounds and updated the ...
8 years, 1 month ago (2012-11-17 06:20:49 UTC) #8
jeremya
lgtm
8 years, 1 month ago (2012-11-18 22:21:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asargent@chromium.org/11369039/18001
8 years, 1 month ago (2012-11-22 03:55:07 UTC) #10
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-22 03:55:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asargent@chromium.org/11369039/31001
8 years ago (2012-11-24 22:09:25 UTC) #12
commit-bot: I haz the power
8 years ago (2012-11-25 04:28:32 UTC) #13
Message was sent while issue was closed.
Change committed as 169391

Powered by Google App Engine
This is Rietveld 408576698