Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package


// 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.


#include "gfx/native_widget_types.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.  Returns the created window.
// Make sure to use the returned window only when you know it is safe
// to do so, i.e. before OnDialogClosed() is called on the delegate.
gfx::NativeWindow ShowHtmlDialog(
    HtmlDialogUIDelegate* delegate, Profile* profile);

}  // namespace html_dialog_window_controller


Generated by  Doxygen 1.6.0   Back to index