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

Issue 25449002: Add chrome.app.window.[get|set][Min|Max][Width|Height] (Closed)

Created:
7 years, 2 months ago by jackhou1
Modified:
7 years, 1 month ago
Reviewers:
tapted, benwells
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, scheib+watch_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org, scheib
Visibility:
Public.

Description

Add chrome.app.window.[get|set][Min|Max][Width|Height] For API proposal: http://goo.gl/nd2Pc2 This implements the bindings for the API. BUG=305477 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231780

Patch Set 1 : Based off http://crrev.com/26740003 #

Patch Set 2 : Rebase. Use ShellWindow::Set[Min|Max]imumSize. Update tests. #

Total comments: 3

Patch Set 3 : Address comment #

Patch Set 4 : Sync and rebase #

Total comments: 4

Patch Set 5 : Address comments #

Total comments: 2

Patch Set 6 : Address comment #

Patch Set 7 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -13 lines) Patch
M apps/app_window_contents.cc View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.h View 1 2 3 4 5 6 1 chunk +40 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 5 6 3 chunks +60 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 4 5 6 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/app_current_window_internal.idl View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/app_window.idl View 1 2 3 4 5 2 chunks +36 lines, -4 lines 0 comments Download
M chrome/renderer/resources/extensions/app_window_custom_bindings.js View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/windows_api/test.js View 1 2 3 4 5 1 chunk +144 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jackhou1
7 years, 2 months ago (2013-10-16 06:21:27 UTC) #1
tapted
lgtm, I'm not too intimate with the API bindings logic though (but it seems right). ...
7 years, 2 months ago (2013-10-16 23:31:51 UTC) #2
jackhou1
https://codereview.chromium.org/25449002/diff/25001/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/25449002/diff/25001/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc#newcode144 chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc:144: min_size.set_width(params->min_width.get() ? *(params->min_width) : 0); On 2013/10/16 23:31:52, tapted ...
7 years, 2 months ago (2013-10-17 03:56:49 UTC) #3
jackhou1
scheib, please review all
7 years, 2 months ago (2013-10-17 03:57:34 UTC) #4
jackhou1
scheib: ping.
7 years, 2 months ago (2013-10-21 09:02:22 UTC) #5
benwells
I'll take a look ...
7 years, 2 months ago (2013-10-21 21:18:57 UTC) #6
benwells
https://codereview.chromium.org/25449002/diff/42001/chrome/common/extensions/api/app_window.idl File chrome/common/extensions/api/app_window.idl (right): https://codereview.chromium.org/25449002/diff/42001/chrome/common/extensions/api/app_window.idl#newcode177 chrome/common/extensions/api/app_window.idl:177: // Get the current minimum width of the window. ...
7 years, 2 months ago (2013-10-21 21:30:05 UTC) #7
mlamouri (slow - plz ping)
On 2013/10/21 21:30:05, benwells wrote: > https://codereview.chromium.org/25449002/diff/42001/chrome/common/extensions/api/app_window.idl > File chrome/common/extensions/api/app_window.idl (right): > > https://codereview.chromium.org/25449002/diff/42001/chrome/common/extensions/api/app_window.idl#newcode177 > ...
7 years, 2 months ago (2013-10-22 03:40:54 UTC) #8
jackhou1
> Wouldn't be better to have attributes instead of setter/getter here? Given that > everything ...
7 years, 2 months ago (2013-10-22 05:20:29 UTC) #9
benwells
lgtm https://codereview.chromium.org/25449002/diff/132001/chrome/common/extensions/api/app_window.idl File chrome/common/extensions/api/app_window.idl (right): https://codereview.chromium.org/25449002/diff/132001/chrome/common/extensions/api/app_window.idl#newcode193 chrome/common/extensions/api/app_window.idl:193: // Set the current minimum width of the ...
7 years, 2 months ago (2013-10-22 21:03:02 UTC) #10
jackhou1
https://codereview.chromium.org/25449002/diff/132001/chrome/common/extensions/api/app_window.idl File chrome/common/extensions/api/app_window.idl (right): https://codereview.chromium.org/25449002/diff/132001/chrome/common/extensions/api/app_window.idl#newcode193 chrome/common/extensions/api/app_window.idl:193: // Set the current minimum width of the window. ...
7 years, 2 months ago (2013-10-23 01:54:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/25449002/352001
7 years, 1 month ago (2013-10-30 04:12:15 UTC) #12
commit-bot: I haz the power
7 years, 1 month ago (2013-10-30 09:29:26 UTC) #13
Message was sent while issue was closed.
Change committed as 231780

Powered by Google App Engine
This is Rietveld 408576698