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

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: make try happy Created 5 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_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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 virtual void InsertCSS(const std::string& css) = 0; 589 virtual void InsertCSS(const std::string& css) = 0;
590 590
591 // Returns true if audio has recently been audible from the WebContents. 591 // Returns true if audio has recently been audible from the WebContents.
592 virtual bool WasRecentlyAudible() = 0; 592 virtual bool WasRecentlyAudible() = 0;
593 593
594 typedef base::Callback<void(const Manifest&)> GetManifestCallback; 594 typedef base::Callback<void(const Manifest&)> GetManifestCallback;
595 595
596 // Requests the Manifest of the main frame's document. 596 // Requests the Manifest of the main frame's document.
597 virtual void GetManifest(const GetManifestCallback&) = 0; 597 virtual void GetManifest(const GetManifestCallback&) = 0;
598 598
599 // Requests the renderer to exit fullscreen.
600 virtual void ExitFullscreen() = 0;
601
599 #if defined(OS_ANDROID) 602 #if defined(OS_ANDROID)
600 CONTENT_EXPORT static WebContents* FromJavaWebContents( 603 CONTENT_EXPORT static WebContents* FromJavaWebContents(
601 jobject jweb_contents_android); 604 jobject jweb_contents_android);
602 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 605 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
603 #elif defined(OS_MACOSX) 606 #elif defined(OS_MACOSX)
604 // Allowing other views disables optimizations which assume that only a single 607 // Allowing other views disables optimizations which assume that only a single
605 // WebContents is present. 608 // WebContents is present.
606 virtual void SetAllowOtherViews(bool allow) = 0; 609 virtual void SetAllowOtherViews(bool allow) = 0;
607 610
608 // Returns true if other views are allowed, false otherwise. 611 // Returns true if other views are allowed, false otherwise.
609 virtual bool GetAllowOtherViews() = 0; 612 virtual bool GetAllowOtherViews() = 0;
610 #endif // OS_ANDROID 613 #endif // OS_ANDROID
611 614
612 private: 615 private:
613 // This interface should only be implemented inside content. 616 // This interface should only be implemented inside content.
614 friend class WebContentsImpl; 617 friend class WebContentsImpl;
615 WebContents() {} 618 WebContents() {}
616 }; 619 };
617 620
618 } // namespace content 621 } // namespace content
619 622
620 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 623 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_view_host.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698