Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: ui/views/controls/webview/webview.cc

Issue 1488653002: Fix scroll restoration when exiting fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trying to fix test broken on Mac Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/controls/webview/webview.h" 5 #include "ui/views/controls/webview/webview.h"
6 6
7 #include "content/public/browser/browser_accessibility_state.h" 7 #include "content/public/browser/browser_accessibility_state.h"
8 #include "content/public/browser/browser_context.h" 8 #include "content/public/browser/browser_context.h"
9 #include "content/public/browser/navigation_controller.h" 9 #include "content/public/browser/navigation_controller.h"
10 #include "content/public/browser/render_process_host.h" 10 #include "content/public/browser/render_process_host.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 void WebView::DidShowFullscreenWidget(int routing_id) { 284 void WebView::DidShowFullscreenWidget(int routing_id) {
285 if (embed_fullscreen_widget_mode_enabled_) 285 if (embed_fullscreen_widget_mode_enabled_)
286 ReattachForFullscreenChange(true); 286 ReattachForFullscreenChange(true);
287 } 287 }
288 288
289 void WebView::DidDestroyFullscreenWidget(int routing_id) { 289 void WebView::DidDestroyFullscreenWidget(int routing_id) {
290 if (embed_fullscreen_widget_mode_enabled_) 290 if (embed_fullscreen_widget_mode_enabled_)
291 ReattachForFullscreenChange(false); 291 ReattachForFullscreenChange(false);
292 } 292 }
293 293
294 void WebView::DidToggleFullscreenModeForTab(bool entered_fullscreen) { 294 void WebView::DidToggleFullscreenModeForTab(bool entered_fullscreen,
295 bool will_cause_resize) {
295 if (embed_fullscreen_widget_mode_enabled_) 296 if (embed_fullscreen_widget_mode_enabled_)
296 ReattachForFullscreenChange(entered_fullscreen); 297 ReattachForFullscreenChange(entered_fullscreen);
297 } 298 }
298 299
299 void WebView::DidAttachInterstitialPage() { 300 void WebView::DidAttachInterstitialPage() {
300 NotifyAccessibilityWebContentsChanged(); 301 NotifyAccessibilityWebContentsChanged();
301 } 302 }
302 303
303 void WebView::DidDetachInterstitialPage() { 304 void WebView::DidDetachInterstitialPage() {
304 NotifyAccessibilityWebContentsChanged(); 305 NotifyAccessibilityWebContentsChanged();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 if (!contents) { 391 if (!contents) {
391 content::WebContents::CreateParams create_params( 392 content::WebContents::CreateParams create_params(
392 browser_context, NULL); 393 browser_context, NULL);
393 return content::WebContents::Create(create_params); 394 return content::WebContents::Create(create_params);
394 } 395 }
395 396
396 return contents; 397 return contents;
397 } 398 }
398 399
399 } // namespace views 400 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698