OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |