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

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

Issue 1488653002: Fix scroll restoration when exiting fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Accidentally made will_cause_resize always false in previous cleanup. Fixed Created 4 years, 10 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 virtual void GetManifest(const GetManifestCallback& callback) = 0; 669 virtual void GetManifest(const GetManifestCallback& callback) = 0;
670 670
671 typedef base::Callback<void(bool)> HasManifestCallback; 671 typedef base::Callback<void(bool)> HasManifestCallback;
672 672
673 // Returns true if the main frame has a <link> to a web manifest, otherwise 673 // Returns true if the main frame has a <link> to a web manifest, otherwise
674 // false. This method does not guarantee that the manifest exists at the 674 // false. This method does not guarantee that the manifest exists at the
675 // specified location or is valid. 675 // specified location or is valid.
676 virtual void HasManifest(const HasManifestCallback& callback) = 0; 676 virtual void HasManifest(const HasManifestCallback& callback) = 0;
677 677
678 // Requests the renderer to exit fullscreen. 678 // Requests the renderer to exit fullscreen.
679 virtual void ExitFullscreen() = 0; 679 // |will_cause_resize| indicates whether the fullscreen change causes a
680 // view resize. e.g. This will be false when going from tab fullscreen to
681 // browser fullscreen.
682 virtual void ExitFullscreen(bool will_cause_resize) = 0;
680 683
681 // Unblocks requests from renderer for a newly created window. This is 684 // Unblocks requests from renderer for a newly created window. This is
682 // used in showCreatedWindow() or sometimes later in cases where 685 // used in showCreatedWindow() or sometimes later in cases where
683 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests 686 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests
684 // should not yet be resumed. Then the client is responsible for calling this 687 // should not yet be resumed. Then the client is responsible for calling this
685 // as soon as they are ready. 688 // as soon as they are ready.
686 virtual void ResumeLoadingCreatedWebContents() = 0; 689 virtual void ResumeLoadingCreatedWebContents() = 0;
687 690
688 #if defined(OS_ANDROID) 691 #if defined(OS_ANDROID)
689 // Requests to resume the current media session. 692 // Requests to resume the current media session.
(...skipping 18 matching lines...) Expand all
708 711
709 private: 712 private:
710 // This interface should only be implemented inside content. 713 // This interface should only be implemented inside content.
711 friend class WebContentsImpl; 714 friend class WebContentsImpl;
712 WebContents() {} 715 WebContents() {}
713 }; 716 };
714 717
715 } // namespace content 718 } // namespace content
716 719
717 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 720 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/screen_orientation_provider.cc ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698