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

Issue 658383003: Componentize Constrained Window Views (Closed)

Created:
6 years, 2 months ago by oshima
Modified:
6 years, 1 month ago
Reviewers:
msw, sky, Greg Billock, blundell
CC:
chromium-reviews, asanka, extensions-reviews_chromium.org, zea+watch_chromium.org, pvalenzuela+watch_chromium.org, benquan, tfarina, benjhayden+dwatch_chromium.org, Dane Wallinga, dyu1, chromium-apps-reviews_chromium.org, estade+watch_chromium.org, Ilya Sherman, tim+watch_chromium.org, rouslan+autofillwatch_chromium.org, maniscalco+watch_chromium.org, Greg Billock, Finnur
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

Componentize Constrained Window Views * Added ConstrainedWindowViewsClient to delegate browser/extensions dependent code. BUG=410499 Committed: https://crrev.com/136691ad8af860f6bd89f17b9f3c9693c7d780bc Cr-Commit-Position: refs/heads/master@{#301203}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : gn #

Total comments: 41

Patch Set 4 : #

Patch Set 5 : fixed tests #

Patch Set 6 : owners #

Patch Set 7 : rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -454 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/DEPS View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/autofill_dialog_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 4 5 6 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc View 3 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/chrome_constrained_window_views_client.h View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/chrome_constrained_window_views_client.cc View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/collected_cookies_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/confirm_bubble_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/confirm_bubble_views_unittest.cc View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/ui/views/constrained_window_views.h View 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/browser/ui/views/constrained_window_views.cc View 1 chunk +0 lines, -169 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/ui/views/constrained_window_views_unittest.cc View 1 chunk +0 lines, -154 lines 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/desktop_media_picker_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_danger_prompt_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_feedback_dialog_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_in_progress_dialog_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/edit_search_engine_dialog.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/external_protocol_dialog.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/hung_renderer_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/javascript_app_modal_dialog_views.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/login_prompt_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/pdf_password_dialog.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/signed_certificate_timestamps_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/simple_message_box_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/update_recommended_message_box.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/test/base/browser_with_test_window_test.cc View 1 2 3 4 3 chunks +9 lines, -2 lines 3 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A components/constrained_window.gypi View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A components/constrained_window/BUILD.gn View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A + components/constrained_window/DEPS View 1 chunk +2 lines, -1 line 0 comments Download
A components/constrained_window/OWNERS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A + components/constrained_window/constrained_window_views.h View 1 3 chunks +11 lines, -4 lines 0 comments Download
A + components/constrained_window/constrained_window_views.cc View 1 2 3 4 9 chunks +33 lines, -28 lines 0 comments Download
A components/constrained_window/constrained_window_views_client.h View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A + components/constrained_window/constrained_window_views_unittest.cc View 2 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 39 (20 generated)
oshima
6 years, 2 months ago (2014-10-22 00:52:46 UTC) #8
blundell
//components LGTM, but I defer to msw@ on reviewing the actual code going into the ...
6 years, 2 months ago (2014-10-22 13:49:54 UTC) #9
oshima
https://codereview.chromium.org/658383003/diff/130001/components/constrained_window.gypi File components/constrained_window.gypi (right): https://codereview.chromium.org/658383003/diff/130001/components/constrained_window.gypi#newcode7 components/constrained_window.gypi:7: 'target_name': 'constrained_window', On 2014/10/22 13:49:54, blundell wrote: > There ...
6 years, 2 months ago (2014-10-22 17:09:52 UTC) #11
msw
https://codereview.chromium.org/658383003/diff/160001/chrome/browser/ui/views/chrome_constrained_window_views_client.cc File chrome/browser/ui/views/chrome_constrained_window_views_client.cc (right): https://codereview.chromium.org/658383003/diff/160001/chrome/browser/ui/views/chrome_constrained_window_views_client.cc#newcode8 chrome/browser/ui/views/chrome_constrained_window_views_client.cc:8: #include "components/constrained_window/constrained_window_views_client.h" nit: not needed if included by the ...
6 years, 2 months ago (2014-10-22 21:32:44 UTC) #12
Andre
https://codereview.chromium.org/658383003/diff/160001/chrome/chrome_browser_ui.gypi File chrome/chrome_browser_ui.gypi (right): https://codereview.chromium.org/658383003/diff/160001/chrome/chrome_browser_ui.gypi#newcode2777 chrome/chrome_browser_ui.gypi:2777: '<(DEPTH)/components/components.gyp:constrained_window', On 2014/10/22 21:32:43, msw wrote: > This perhaps ...
6 years, 2 months ago (2014-10-22 21:45:04 UTC) #14
oshima
+finnur, gbillock are you ok to be the owner of this component ? https://codereview.chromium.org/658383003/diff/160001/chrome/browser/ui/views/chrome_constrained_window_views_client.cc File ...
6 years, 2 months ago (2014-10-22 22:39:09 UTC) #17
Finnur
https://codereview.chromium.org/658383003/diff/160001/components/OWNERS File components/OWNERS (right): https://codereview.chromium.org/658383003/diff/160001/components/OWNERS#newcode17 components/OWNERS:17: per-file constrained_window*=ben@chromium.org I don't think I'd be an effective ...
6 years, 2 months ago (2014-10-23 09:05:51 UTC) #18
msw
lgtm, not that i want to be an owner of this either! We really need ...
6 years, 1 month ago (2014-10-23 18:49:05 UTC) #19
oshima
https://codereview.chromium.org/658383003/diff/160001/components/OWNERS File components/OWNERS (right): https://codereview.chromium.org/658383003/diff/160001/components/OWNERS#newcode17 components/OWNERS:17: per-file constrained_window*=ben@chromium.org On 2014/10/23 09:05:50, Finnur wrote: > I ...
6 years, 1 month ago (2014-10-23 20:54:47 UTC) #20
oshima
based on git blame, you probably needs to be one of owners :) I'll ask ...
6 years, 1 month ago (2014-10-23 20:59:16 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/658383003/220001
6 years, 1 month ago (2014-10-23 21:01:30 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/27340) chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/19648)
6 years, 1 month ago (2014-10-23 21:15:09 UTC) #27
oshima
+sky for chrome/test/base change
6 years, 1 month ago (2014-10-24 15:34:42 UTC) #32
sky
LGTM https://codereview.chromium.org/658383003/diff/300001/chrome/test/base/browser_with_test_window_test.cc File chrome/test/base/browser_with_test_window_test.cc (right): https://codereview.chromium.org/658383003/diff/300001/chrome/test/base/browser_with_test_window_test.cc#newcode125 chrome/test/base/browser_with_test_window_test.cc:125: SetConstrainedWindowViewsClient(scoped_ptr<ConstrainedWindowViewsClient>()); I think there was a conversion from ...
6 years, 1 month ago (2014-10-24 18:04:22 UTC) #33
oshima
https://codereview.chromium.org/658383003/diff/300001/chrome/test/base/browser_with_test_window_test.cc File chrome/test/base/browser_with_test_window_test.cc (right): https://codereview.chromium.org/658383003/diff/300001/chrome/test/base/browser_with_test_window_test.cc#newcode125 chrome/test/base/browser_with_test_window_test.cc:125: SetConstrainedWindowViewsClient(scoped_ptr<ConstrainedWindowViewsClient>()); On 2014/10/24 18:04:22, sky wrote: > I think ...
6 years, 1 month ago (2014-10-24 20:36:47 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/658383003/300001
6 years, 1 month ago (2014-10-24 20:39:23 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:300001)
6 years, 1 month ago (2014-10-24 21:54:28 UTC) #37
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/136691ad8af860f6bd89f17b9f3c9693c7d780bc Cr-Commit-Position: refs/heads/master@{#301203}
6 years, 1 month ago (2014-10-24 21:55:08 UTC) #38
blundell
6 years, 1 month ago (2014-10-27 06:54:45 UTC) #39
Message was sent while issue was closed.
https://codereview.chromium.org/658383003/diff/300001/chrome/test/base/browse...
File chrome/test/base/browser_with_test_window_test.cc (right):

https://codereview.chromium.org/658383003/diff/300001/chrome/test/base/browse...
chrome/test/base/browser_with_test_window_test.cc:125:
SetConstrainedWindowViewsClient(scoped_ptr<ConstrainedWindowViewsClient>());
On 2014/10/24 20:36:47, oshima wrote:
> On 2014/10/24 18:04:22, sky wrote:
> > I think there was a conversion from nullptr->scoped_ptr<X>?
> 
> Hmm, it didn't work.
> 
> ../../chrome/test/base/browser_with_test_window_test.cc:125:42: error:
expected
> ')'
>  
>
SetConstrainedWindowViewsClient(nullptr->scoped_ptr<ConstrainedWindowViewsClient>);
> 
> (I tried ..scoped_ptr<X>() but got the same error)
> 
> 
> 
> I may be doing something wrong, but it's actuall longer than above, so I'll
> leave it as is.

I think the idea is that you now can do
SetConstrainedWindowViewsClient(nullptr), and the conversion happens
automagically.

Powered by Google App Engine
This is Rietveld 408576698