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

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

Issue 789533002: Fullscreen: make fullscreen requests come from RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 #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 <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 virtual void InsertCSS(const std::string& css) = 0; 582 virtual void InsertCSS(const std::string& css) = 0;
583 583
584 // Returns true if audio has recently been audible from the WebContents. 584 // Returns true if audio has recently been audible from the WebContents.
585 virtual bool WasRecentlyAudible() = 0; 585 virtual bool WasRecentlyAudible() = 0;
586 586
587 typedef base::Callback<void(const Manifest&)> GetManifestCallback; 587 typedef base::Callback<void(const Manifest&)> GetManifestCallback;
588 588
589 // Requests the Manifest of the main frame's document. 589 // Requests the Manifest of the main frame's document.
590 virtual void GetManifest(const GetManifestCallback&) = 0; 590 virtual void GetManifest(const GetManifestCallback&) = 0;
591 591
592 // Returns whether the WebContents is associated with a fullscreen tab.
593 virtual bool IsFullscreenForCurrentTab() const = 0;
Charlie Reis 2014/12/10 00:51:21 This doesn't look like it's used outside of conten
mlamouri (slow - plz ping) 2014/12/10 15:47:02 Hmm, I did not meant to have this in this CL. It's
594
592 #if defined(OS_ANDROID) 595 #if defined(OS_ANDROID)
593 CONTENT_EXPORT static WebContents* FromJavaWebContents( 596 CONTENT_EXPORT static WebContents* FromJavaWebContents(
594 jobject jweb_contents_android); 597 jobject jweb_contents_android);
595 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 598 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
596 #elif defined(OS_MACOSX) 599 #elif defined(OS_MACOSX)
597 // Allowing other views disables optimizations which assume that only a single 600 // Allowing other views disables optimizations which assume that only a single
598 // WebContents is present. 601 // WebContents is present.
599 virtual void SetAllowOtherViews(bool allow) = 0; 602 virtual void SetAllowOtherViews(bool allow) = 0;
600 603
601 // Returns true if other views are allowed, false otherwise. 604 // Returns true if other views are allowed, false otherwise.
602 virtual bool GetAllowOtherViews() = 0; 605 virtual bool GetAllowOtherViews() = 0;
603 #endif // OS_ANDROID 606 #endif // OS_ANDROID
604 607
605 private: 608 private:
606 // This interface should only be implemented inside content. 609 // This interface should only be implemented inside content.
607 friend class WebContentsImpl; 610 friend class WebContentsImpl;
608 WebContents() {} 611 WebContents() {}
609 }; 612 };
610 613
611 } // namespace content 614 } // namespace content
612 615
613 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 616 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698