| Index: chrome/browser/ui/views/frame/browser_view.cc
|
| diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
|
| index 7d097c6ef6783c3f2aba24620284d0e46e0b0bbf..1748e299a0413454828018176e38f158dda32a59 100644
|
| --- a/chrome/browser/ui/views/frame/browser_view.cc
|
| +++ b/chrome/browser/ui/views/frame/browser_view.cc
|
| @@ -589,7 +589,7 @@ void BrowserView::ShowInactive() {
|
| }
|
|
|
| void BrowserView::SetBounds(const gfx::Rect& bounds) {
|
| - SetFullscreen(false);
|
| + SetFullscreen(false, GURL(), false);
|
| GetWidget()->SetBounds(bounds);
|
| }
|
|
|
| @@ -750,12 +750,14 @@ bool BrowserView::IsMinimized() const {
|
| return frame_->IsMinimized();
|
| }
|
|
|
| -void BrowserView::SetFullscreen(bool fullscreen) {
|
| +void BrowserView::SetFullscreen(bool fullscreen,
|
| + const GURL& url,
|
| + bool ask_permission) {
|
| if (IsFullscreen() == fullscreen)
|
| return; // Nothing to do.
|
|
|
| -#if defined(OS_WIN) && !defined(USE_AURA)
|
| - ProcessFullscreen(fullscreen);
|
| +#if defined(OS_WIN)
|
| + ProcessFullscreen(fullscreen, url, ask_permission);
|
| #else
|
| // On Linux changing fullscreen is async. Ask the window to change it's
|
| // fullscreen state, and when done invoke ProcessFullscreen.
|
| @@ -772,7 +774,7 @@ bool BrowserView::IsFullscreenBubbleVisible() const {
|
| }
|
|
|
| void BrowserView::FullScreenStateChanged() {
|
| - ProcessFullscreen(IsFullscreen());
|
| + ProcessFullscreen(IsFullscreen(), GURL(), false);
|
| }
|
|
|
| void BrowserView::RestoreFocus() {
|
| @@ -2166,7 +2168,9 @@ bool BrowserView::UpdateChildViewAndLayout(views::View* new_view,
|
| return changed;
|
| }
|
|
|
| -void BrowserView::ProcessFullscreen(bool fullscreen) {
|
| +void BrowserView::ProcessFullscreen(bool fullscreen,
|
| + const GURL& url,
|
| + bool ask_permission) {
|
| // Reduce jankiness during the following position changes by:
|
| // * Hiding the window until it's in the final position
|
| // * Ignoring all intervening Layout() calls, which resize the webpage and
|
| @@ -2215,8 +2219,8 @@ void BrowserView::ProcessFullscreen(bool fullscreen) {
|
| bool is_kiosk =
|
| CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode);
|
| if (!is_kiosk) {
|
| - fullscreen_bubble_.reset(new FullscreenExitBubbleViews(GetWidget(),
|
| - browser_.get()));
|
| + fullscreen_bubble_.reset(new FullscreenExitBubbleViews(
|
| + GetWidget(), browser_.get(), url, ask_permission));
|
| }
|
| } else {
|
| #if defined(OS_WIN) && !defined(USE_AURA)
|
| @@ -2236,7 +2240,6 @@ void BrowserView::ProcessFullscreen(bool fullscreen) {
|
| #endif
|
| }
|
|
|
| -
|
| void BrowserView::LoadAccelerators() {
|
| #if defined(USE_AURA)
|
| // TODO(beng):
|
|
|