#include "chrome/browser/ui/views/media_router/web_contents_display_observer_view.h"
#include <memory>
#include <utility>
#include "chrome/browser/ui/browser_list.h"
#include "content/public/browser/web_contents.h"
#include "ui/display/screen.h"
#include "ui/views/widget/widget.h"
namespace media_router {
std::unique_ptr<WebContentsDisplayObserver> WebContentsDisplayObserver::Create(
content::WebContents* web_contents,
base::RepeatingClosure callback) { … }
WebContentsDisplayObserverView::WebContentsDisplayObserverView(
content::WebContents* web_contents,
base::RepeatingClosure callback)
: … { … }
WebContentsDisplayObserverView::~WebContentsDisplayObserverView() { … }
void WebContentsDisplayObserverView::OnBrowserSetLastActive(Browser* browser) { … }
void WebContentsDisplayObserverView::OnWidgetDestroying(views::Widget* widget) { … }
void WebContentsDisplayObserverView::OnWidgetBoundsChanged(
views::Widget* widget,
const gfx::Rect& new_bounds) { … }
const display::Display& WebContentsDisplayObserverView::GetCurrentDisplay()
const { … }
void WebContentsDisplayObserverView::WebContentsDestroyed() { … }
void WebContentsDisplayObserverView::CheckForDisplayChange() { … }
display::Display WebContentsDisplayObserverView::GetDisplayNearestWidget()
const { … }
}