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

Side by Side Diff: chrome/browser/ui/cocoa/modal_dialog_client_cocoa.h

Issue 866263008: MacViews: Unify web contents modal dialog types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ValidationMessageBubble
Patch Set: Fixes for tapted Created 5 years, 9 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 2015 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 #ifndef CHROME_BROWSER_UI_COCOA_MODAL_DIALOG_CLIENT_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_MODAL_DIALOG_CLIENT_COCOA_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
tapted 2015/03/02 04:28:50 nit: move to .mm?
Andre 2015/03/02 18:47:31 Done.
10
11 class SingleWebContentsDialogManagerCocoa;
12 @protocol ConstrainedWindowSheet;
13
14 namespace content {
15 class WebContents;
16 }
17
18 // A base class for showing a ConstrainedWindowSheet over a WebContents.
19 class ModalDialogClientCocoa {
20 public:
21 ModalDialogClientCocoa();
22 virtual ~ModalDialogClientCocoa();
23
24 SingleWebContentsDialogManagerCocoa* manager() const { return manager_; }
25 void set_manager(SingleWebContentsDialogManagerCocoa* manager) {
26 manager_ = manager;
27 }
28
29 // Shows |sheet| as a modal dialog over |contents|.
30 void Show(id<ConstrainedWindowSheet> sheet, content::WebContents* contents);
31
32 // Closes the sheet dialog.
33 void Close();
34
35 // Called when the dialog is closing.
36 virtual void OnDialogClosing() = 0;
37
38 private:
39 SingleWebContentsDialogManagerCocoa* manager_;
40
41 DISALLOW_COPY_AND_ASSIGN(ModalDialogClientCocoa);
42 };
43
44 #endif // CHROME_BROWSER_UI_COCOA_MODAL_DIALOG_CLIENT_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698