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

Issue 387993004: MacViews: Change Widget context type to NativeWindow (Closed)

Created:
6 years, 5 months ago by Andre
Modified:
6 years, 5 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina, ben+views_chromium.org, James Su, tdanderson+views_chromium.org, mac-views-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Change the type of InitParams.context from gfx::NativeView to gfx::NativeWindow. With aura, gfx::NativeView and gfx::NativeWindow both map to aura::Window. But on Mac they map to different types (NSWindow and NSView), so they can't be used interchangeably. |context| is used to determine the desktop type, and most of the call sites are looking to pass a window instead of a view. By changing context's type to gfx::NativeWindow, we get these call sites to compile with MacViews while maintaining previous behavior with aura. BUG=390755 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283126

Patch Set 1 : #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -28 lines) Patch
M chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc View 1 1 chunk +1 line, -1 line 2 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/examples_window.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/examples_window.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/examples_window_with_content.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/examples_window_with_content.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/examples_with_content_main_exe.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/test/views_test_base.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/test/views_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/test/views_test_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/test/views_test_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/test/views_test_helper_aura.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/test/views_test_helper_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/widget.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/widget/widget.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/window/dialog_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views_content_client/views_content_client.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Andre
Trent, WDYT?
6 years, 5 months ago (2014-07-11 23:28:44 UTC) #1
tapted
lgtm - I can't really see any downsides to this.. I would just spruce up ...
6 years, 5 months ago (2014-07-14 00:33:14 UTC) #2
tapted
oh, and there should be a `BUG=` -- 390755 is probably appropriate
6 years, 5 months ago (2014-07-14 00:36:20 UTC) #3
Andre
Scott, PTAL. https://codereview.chromium.org/387993004/diff/40001/chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc File chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc (right): https://codereview.chromium.org/387993004/diff/40001/chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc#newcode101 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc:101: : public testing::Test { On 2014/07/14 00:33:14, ...
6 years, 5 months ago (2014-07-14 17:49:10 UTC) #4
sky
LGTM
6 years, 5 months ago (2014-07-14 21:05:21 UTC) #5
Andre
The CQ bit was checked by andresantoso@chromium.org
6 years, 5 months ago (2014-07-14 21:05:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/387993004/40001
6 years, 5 months ago (2014-07-14 21:07:59 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-15 01:33:06 UTC) #8
Message was sent while issue was closed.
Change committed as 283126

Powered by Google App Engine
This is Rietveld 408576698