summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/html_dialog_window_controller_cppsafe.h
blob: 15c457697bc9bf4802c323011341f985a5cef02a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_COCOA_HTML_DIALOG_WINDOW_CONTROLLER_CPPSAFE_H_
#define CHROME_BROWSER_COCOA_HTML_DIALOG_WINDOW_CONTROLLER_CPPSAFE_H_

// We declare this in a separate file that is safe for including in C++ code.

// TODO(akalin): It would be nice if there were a platform-agnostic way to
// create a browser-independent HTML dialog.  However, this would require
// some invasive changes on the Windows/Linux side.  Remove this file once
// We have this platform-agnostic API.

namespace html_dialog_window_controller {

// Creates and shows an HtmlDialogWindowController with the given
// delegate and profile. The window is automatically destroyed when it is
// closed.
void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, Profile* profile);

}  // namespace html_dialog_window_controller

#endif  // CHROME_BROWSER_COCOA_HTML_DIALOG_WINDOW_CONTROLLER_CPPSAFE_H_