blob: 9e4dae387eaa38a8f2ebfcff486e238edbc0cefa [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_MEDIA_PICKER_UTILS_H_
#define CHROME_BROWSER_UI_VIEWS_MEDIA_PICKER_UTILS_H_
#include "ui/gfx/native_widget_types.h"
namespace content {
class WebContents;
}
namespace views {
class Widget;
class WidgetDelegate;
} // namespace views
class Browser;
bool IsMediaPickerModalWindow(content::WebContents* web_contents);
// Creates a dialog and hides an extension popup if present.
// If `web_contents` is not a background page then the dialog will be shown
// modal to the `web_contents`. Otherwise, the dialog is shown in a separate
// window.
views::Widget* CreateMediaPickerDialogWidget(Browser* browser,
content::WebContents* web_contents,
views::WidgetDelegate* delegate,
gfx::NativeWindow context,
gfx::NativeView parent);
#endif // CHROME_BROWSER_UI_VIEWS_MEDIA_PICKER_UTILS_H_