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

Issue 11578014: Desktop aura: Expand what the ViewsDelegate can do to new windows. (Closed)

Created:
8 years ago by Elliot Glaysher
Modified:
8 years ago
CC:
chromium-reviews, tfarina, ben+watch_chromium.org
Visibility:
Public.

Description

Desktop aura: Expand what the ViewsDelegate can do to new windows. There are actual cases where we have to show dialogs with no parent or context, when there are no browser windows. All of the cases that I can find go through the CreateWindow() interface. CreateWindow() now explicitly sets InitParams::top_level to true. The ViewsDelegate now can do arbitrary manipulations on the InitParams so that when top_level is true and we have no context, we either create a native_widget or set the context based on desktop type. BUG=165759 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173539

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix small bug in CVD and win_aura #

Patch Set 3 : Rebase to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -72 lines) Patch
M chrome/browser/ui/views/chrome_views_delegate.h View 1 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 chunks +39 lines, -14 lines 0 comments Download
M ui/views/test/desktop_test_views_delegate.h View 1 1 chunk +2 lines, -5 lines 0 comments Download
M ui/views/test/desktop_test_views_delegate.cc View 1 1 chunk +8 lines, -12 lines 0 comments Download
M ui/views/test/test_views_delegate.h View 1 1 chunk +2 lines, -5 lines 0 comments Download
M ui/views/test/test_views_delegate.cc View 1 1 chunk +3 lines, -6 lines 0 comments Download
M ui/views/views_delegate.h View 1 1 chunk +3 lines, -7 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 4 chunks +16 lines, -18 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Elliot Glaysher
While 90% of the time that there isn't parent or context is laziness, the rest ...
8 years ago (2012-12-13 23:19:32 UTC) #1
Ben Goodger (Google)
lgtm https://codereview.chromium.org/11578014/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/11578014/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc#newcode186 chrome/browser/ui/views/chrome_views_delegate.cc:186: params->top_level == true) { params->top_level https://codereview.chromium.org/11578014/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc#newcode190 chrome/browser/ui/views/chrome_views_delegate.cc:190: case ...
8 years ago (2012-12-13 23:47:41 UTC) #2
robertshield
Yep, that's what I meant :) LGTM https://codereview.chromium.org/11578014/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/11578014/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc#newcode197 chrome/browser/ui/views/chrome_views_delegate.cc:197: #if defined(USE_ASH) ...
8 years ago (2012-12-14 01:15:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/11578014/2003
8 years ago (2012-12-14 20:56:02 UTC) #4
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-15 00:51:31 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/11578014/16001
8 years ago (2012-12-17 18:24:02 UTC) #6
commit-bot: I haz the power
8 years ago (2012-12-17 21:45:25 UTC) #7
Message was sent while issue was closed.
Change committed as 173539

Powered by Google App Engine
This is Rietveld 408576698