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

Issue 13588007: Implement WebContentsModalDialogManagerDelegate for ShellWindow (Closed)

Created:
7 years, 8 months ago by Mike Wittman
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, jeremya+watch_chromium.org, tfarina, sail+watch_chromium.org, chromium-apps-reviews_chromium.org, dvh, Lei Zhang
Visibility:
Public.

Description

Implement WebContentsModalDialogManagerDelegate for ShellWindow Use the web contents modal dialog positioning abstraction for app shell windows. Implement support for Views and Gtk, stubs for Cocoa. This abstraction will support the use of WebContents in code outside of src/chrome/browser by allowing dialogs modal to web contents to be hosted on any window containing a WebContents and giving the host control over the positioning, without the host having to know the type of the dialog and vice versa. The interface has already been implemented for the browser window; this implements it for the other window that currently hosts WebContents, ShellWindow. BUG=157161, 225945 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192878

Patch Set 1 #

Patch Set 2 : Add OVERRIDEs #

Total comments: 6

Patch Set 3 : Remove newlines in headers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -9 lines) Patch
M chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm View 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/native_app_window.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/native_app_window_gtk.h View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc View 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/native_app_window_views.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/native_app_window_views.cc View 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc View 2 chunks +24 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Mike Wittman
PTAL Ben: chrome/browser/ui/views/* Elliot: chrome/browser/ui/gtk/* Sailesh: chrome/browser/ui/cocoa/* Aaron: chrome/browser/ui/extensions/*
7 years, 8 months ago (2013-04-03 23:11:32 UTC) #1
Elliot Glaysher
gtk lgtm
7 years, 8 months ago (2013-04-04 17:03:34 UTC) #2
Ben Goodger (Google)
lgtm https://codereview.chromium.org/13588007/diff/4001/chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h File chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h (right): https://codereview.chromium.org/13588007/diff/4001/chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h#newcode118 chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h:118: delete nl
7 years, 8 months ago (2013-04-04 17:34:33 UTC) #3
jeremya
Could you expand the commit message a little? What is this needed for?
7 years, 8 months ago (2013-04-04 18:13:34 UTC) #4
Mike Wittman
On 2013/04/04 18:13:34, jeremya wrote: > Could you expand the commit message a little? What ...
7 years, 8 months ago (2013-04-04 18:32:09 UTC) #5
jeremya
https://codereview.chromium.org/13588007/diff/4001/chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc File chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc (right): https://codereview.chromium.org/13588007/diff/4001/chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc#newcode360 chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc:360: OnPositionRequiresUpdate()); This code could live in OnNativeWindowChanged(), I think. ...
7 years, 8 months ago (2013-04-04 19:59:17 UTC) #6
Mike Wittman
https://codereview.chromium.org/13588007/diff/4001/chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h File chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h (right): https://codereview.chromium.org/13588007/diff/4001/chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h#newcode118 chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h:118: On 2013/04/04 17:34:33, Ben Goodger (Google) wrote: > delete ...
7 years, 8 months ago (2013-04-04 22:56:07 UTC) #7
sail
cocoa/* LGTM
7 years, 8 months ago (2013-04-05 15:04:24 UTC) #8
Mike Wittman
-aa who is ooo +miket Mike, can you review the chrome/browser/ui/extensions part of this change?
7 years, 8 months ago (2013-04-05 15:35:13 UTC) #9
benwells
c/b/ui/extensions lgtm
7 years, 8 months ago (2013-04-07 23:02:46 UTC) #10
Mike Wittman
On 2013/04/07 23:02:46, benwells wrote: > c/b/ui/extensions lgtm Thanks! Comitting.
7 years, 8 months ago (2013-04-08 16:26:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wittman@chromium.org/13588007/14001
7 years, 8 months ago (2013-04-08 16:27:12 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-08 16:36:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wittman@chromium.org/13588007/14001
7 years, 8 months ago (2013-04-08 19:24:01 UTC) #14
commit-bot: I haz the power
7 years, 8 months ago (2013-04-08 20:20:04 UTC) #15
Message was sent while issue was closed.
Change committed as 192878

Powered by Google App Engine
This is Rietveld 408576698