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

Side by Side Diff: components/constrained_window/native_web_contents_modal_dialog_manager_views_mac.h

Issue 1779383002: MacViews: Remove constrained window dependencies for certificate viewer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rsesek@ review - merge displayForWebContents & initWithCertificate, etc. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/constrained_window/native_web_contents_modal_dialog_manager _views.h"
6
7 namespace web_modal {
8 class SingleWebContentsDialogManagerDelegate;
9 }
10
11 namespace constrained_window {
12
13 // Class for parenting a Mac Cocoa sheet on a views tab modal dialog off of a
14 // views browser, e.g. for tab-modal Cocoa sheets. Since Cocoa sheets are modal
15 // to the parent window, the sheet is instead parented to an invisible views
16 // overlay window which is tab-modal.
17 class NativeWebContentsModalDialogManagerViewsMac
18 : public NativeWebContentsModalDialogManagerViews {
19 public:
20 NativeWebContentsModalDialogManagerViewsMac(
21 gfx::NativeWindow dialog,
22 web_modal::SingleWebContentsDialogManagerDelegate* native_delegate);
23
24 // NativeWebContentsModalDialogManagerViews:
25 void OnPositionRequiresUpdate() override;
26 void ShowWidget(views::Widget* widget) override;
27 void HideWidget(views::Widget* widget) override;
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(NativeWebContentsModalDialogManagerViewsMac);
31 };
32
33 } // namespace constrained_window
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698