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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1488653002: Fix scroll restoration when exiting fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from scheib@ Created 4 years, 11 months 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 const ImageDownloadCallback& callback) override; 368 const ImageDownloadCallback& callback) override;
369 bool IsSubframe() const override; 369 bool IsSubframe() const override;
370 void Find(int request_id, 370 void Find(int request_id,
371 const base::string16& search_text, 371 const base::string16& search_text,
372 const blink::WebFindOptions& options) override; 372 const blink::WebFindOptions& options) override;
373 void StopFinding(StopFindAction action) override; 373 void StopFinding(StopFindAction action) override;
374 void InsertCSS(const std::string& css) override; 374 void InsertCSS(const std::string& css) override;
375 bool WasRecentlyAudible() override; 375 bool WasRecentlyAudible() override;
376 void GetManifest(const GetManifestCallback& callback) override; 376 void GetManifest(const GetManifestCallback& callback) override;
377 void HasManifest(const HasManifestCallback& callback) override; 377 void HasManifest(const HasManifestCallback& callback) override;
378 void ExitFullscreen() override; 378 void ExitFullscreen(bool will_cause_resize) override;
379 void ResumeLoadingCreatedWebContents() override; 379 void ResumeLoadingCreatedWebContents() override;
380 #if defined(OS_ANDROID) 380 #if defined(OS_ANDROID)
381 void OnMediaSessionStateChanged(); 381 void OnMediaSessionStateChanged();
382 void ResumeMediaSession() override; 382 void ResumeMediaSession() override;
383 void SuspendMediaSession() override; 383 void SuspendMediaSession() override;
384 void StopMediaSession() override; 384 void StopMediaSession() override;
385 #if !defined(USE_AURA) 385 #if !defined(USE_AURA)
386 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; 386 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override;
387 virtual WebContentsAndroid* GetWebContentsAndroid(); 387 virtual WebContentsAndroid* GetWebContentsAndroid();
388 #endif // !USE_AURA 388 #endif // !USE_AURA
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 bool IsNeverVisible() override; 432 bool IsNeverVisible() override;
433 AccessibilityMode GetAccessibilityMode() const override; 433 AccessibilityMode GetAccessibilityMode() const override;
434 void AccessibilityEventReceived( 434 void AccessibilityEventReceived(
435 const std::vector<AXEventNotificationDetails>& details) override; 435 const std::vector<AXEventNotificationDetails>& details) override;
436 RenderFrameHost* GetGuestByInstanceID( 436 RenderFrameHost* GetGuestByInstanceID(
437 RenderFrameHost* render_frame_host, 437 RenderFrameHost* render_frame_host,
438 int browser_plugin_instance_id) override; 438 int browser_plugin_instance_id) override;
439 GeolocationServiceContext* GetGeolocationServiceContext() override; 439 GeolocationServiceContext* GetGeolocationServiceContext() override;
440 WakeLockServiceContext* GetWakeLockServiceContext() override; 440 WakeLockServiceContext* GetWakeLockServiceContext() override;
441 void EnterFullscreenMode(const GURL& origin) override; 441 void EnterFullscreenMode(const GURL& origin) override;
442 void ExitFullscreenMode() override; 442 void ExitFullscreenMode(bool will_cause_resize) override;
443 bool ShouldRouteMessageEvent( 443 bool ShouldRouteMessageEvent(
444 RenderFrameHost* target_rfh, 444 RenderFrameHost* target_rfh,
445 SiteInstance* source_site_instance) const override; 445 SiteInstance* source_site_instance) const override;
446 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 446 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
447 scoped_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(const GURL& url) override; 447 scoped_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(const GURL& url) override;
448 #if defined(OS_WIN) 448 #if defined(OS_WIN)
449 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; 449 gfx::NativeViewAccessible GetParentNativeViewAccessible() override;
450 #endif 450 #endif
451 451
452 // RenderViewHostDelegate ---------------------------------------------------- 452 // RenderViewHostDelegate ----------------------------------------------------
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 // Adds/removes a callback called on creation of each new WebContents. 1316 // Adds/removes a callback called on creation of each new WebContents.
1317 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1317 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1318 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1318 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1319 1319
1320 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1320 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1321 }; 1321 };
1322 1322
1323 } // namespace content 1323 } // namespace content
1324 1324
1325 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1325 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698