DescriptionUse a uniform opaque type to represent web contents modal dialogs
Since the WebContentsModalDialog interface is going away, the
platform-independent code in WebContentsModalDialogManager requires an
opaque type with which to identify dialogs.
In a first attempt at this under https://codereview.chromium.org/12224020,
comments indicated that the Mac implementation of the web contents
modal dialog does not fit any of the abstracted native types provided
by ui/gfx/native_widget_types.h. So, define a special typedef
NativeWebContentsModalDialog that uses the existing gfx::NativeView
abstraction on platforms where supported, mainly to document the expected
type. On Mac, we use a void* which is the preferred type for this, per
Sailesh in comments in this review.
BUG=157161
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182878
Patch Set 1 #
Total comments: 2
Patch Set 2 : address review comment #Patch Set 3 : use void* typedef for Mac #Patch Set 4 : update unit test #Patch Set 5 : use ConstrainedWindowMac pointer for NativeWebContentsModalDialog on Cocoa #Patch Set 6 : add TODO #
Total comments: 1
Patch Set 7 : go back to gfx::NativeView on non-Mac #Patch Set 8 : rebase #Patch Set 9 : disable unused webui certificate viewer on linux #Messages
Total messages: 21 (0 generated)
|