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

Issue 699553002: MacViews: Add a CreateChromeConstrainedWindowViewsClient stub (Closed)

Created:
6 years, 1 month ago by tapted
Modified:
6 years, 1 month ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org, mac-views-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

MacViews: Add a CreateChromeConstrainedWindowViewsClient stub The MacViews "chrome" compile regressed in r301203 This adds a stub that just returns scoped_ptr<ConstrainedWindowViewsClient>(nullptr) and fixes some NativeWindow/NativeView inconsistencies (popup_manager->GetHostView() returns a view). The component is compiled on MacViews, since it will eventually be needed. At link time for `chrome`, everything except the a pure virtual destructor call will be culled since they are unused, but this approach keeps component usage consistent with the test targets, which do have the whole component. note that components_unittests ConstrainedWindowViewsTest.* all pass on a MacViews build except for one check against a dialog size (constrained_window_views_unittest.cc line 142). BUG=390755, 410499 Committed: https://crrev.com/313354c4fea32e7dc12130621062a1ca402cc03d Cr-Commit-Position: refs/heads/master@{#302552}

Patch Set 1 #

Total comments: 1

Patch Set 2 : don't forget gn #

Total comments: 4

Patch Set 3 : window->view #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -8 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/chrome_constrained_window_views_client.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/ui/views/chrome_constrained_window_views_client_mac.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 3 chunks +4 lines, -1 line 0 comments Download
M components/constrained_window/constrained_window_views.h View 1 chunk +1 line, -1 line 0 comments Download
M components/constrained_window/constrained_window_views.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/constrained_window/constrained_window_views_client.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
tapted
Hi Michael, please take a look. I think this is the right approach. Another approach ...
6 years, 1 month ago (2014-11-03 07:11:42 UTC) #2
tapted
https://codereview.chromium.org/699553002/diff/20001/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/699553002/diff/20001/chrome/browser/ui/views/chrome_constrained_window_views_client.cc#newcode31 chrome/browser/ui/views/chrome_constrained_window_views_client.cc:31: Browser* browser = chrome::FindBrowserWithWindow(parent); note this line only works ...
6 years, 1 month ago (2014-11-03 07:19:05 UTC) #3
msw
lgtm with a nit https://codereview.chromium.org/699553002/diff/20001/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/699553002/diff/20001/chrome/browser/ui/views/chrome_constrained_window_views_client.cc#newcode31 chrome/browser/ui/views/chrome_constrained_window_views_client.cc:31: Browser* browser = chrome::FindBrowserWithWindow(parent); On ...
6 years, 1 month ago (2014-11-03 19:20:33 UTC) #4
tapted
https://codereview.chromium.org/699553002/diff/20001/components/constrained_window/constrained_window_views_client.h File components/constrained_window/constrained_window_views_client.h (right): https://codereview.chromium.org/699553002/diff/20001/components/constrained_window/constrained_window_views_client.h#newcode27 components/constrained_window/constrained_window_views_client.h:27: // Returns the modal window host for the |parent| ...
6 years, 1 month ago (2014-11-04 00:14:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699553002/40001
6 years, 1 month ago (2014-11-04 00:18:02 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-04 02:24:10 UTC) #8
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 02:24:34 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/313354c4fea32e7dc12130621062a1ca402cc03d
Cr-Commit-Position: refs/heads/master@{#302552}

Powered by Google App Engine
This is Rietveld 408576698