MacViews: Remove constrained window dependencies for certificate viewer.

Move constrained_window Mac dependencies to a Cocoa build only. To make the
MacViews browser's certificate viewer work, refactor out common code taken from
the original certificate viewer and subclass into SSLCertificateViewerCocoa and
SSLCertificateViewerMacViews. The MacViews certificate viewer will be created
via a new constrained_window method ShowWebModalDialogWithOverlayViews().

Similarly, NativeWebContentsModalDialogManagerViews is subclassed into a
MacViews specific NativeWebContentsModalDialogManagerViewsMac, which handles
hiding/showing the certificate viewer.

Note that the certificate viewer is not the same as the Views one because OSX
has its own, which is why there is special code for it needed here.

BUG=587239
# Long include line in constrained_window_views.cc, wrapped in an ifdef.
NOPRESUBMIT=true

Review-Url: https://codereview.chromium.org/1779383002
Cr-Commit-Position: refs/heads/master@{#414971}
16 files changed