| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 // Notifies the renderer that the user has closed the FindInPage window | 684 // Notifies the renderer that the user has closed the FindInPage window |
| 685 // (and what action to take regarding the selection). | 685 // (and what action to take regarding the selection). |
| 686 virtual void StopFinding(StopFindAction action) = 0; | 686 virtual void StopFinding(StopFindAction action) = 0; |
| 687 | 687 |
| 688 // Requests the renderer to insert CSS into the main frame's document. | 688 // Requests the renderer to insert CSS into the main frame's document. |
| 689 virtual void InsertCSS(const std::string& css) = 0; | 689 virtual void InsertCSS(const std::string& css) = 0; |
| 690 | 690 |
| 691 // Returns true if audio has recently been audible from the WebContents. | 691 // Returns true if audio has recently been audible from the WebContents. |
| 692 virtual bool WasRecentlyAudible() = 0; | 692 virtual bool WasRecentlyAudible() = 0; |
| 693 | 693 |
| 694 typedef base::Callback<void(const Manifest&)> GetManifestCallback; | 694 typedef base::Callback<void(const GURL&, const Manifest&)> |
| 695 GetManifestCallback; |
| 695 | 696 |
| 696 // Requests the Manifest of the main frame's document. | 697 // Requests the manifest URL and the Manifest of the main frame's document. |
| 697 virtual void GetManifest(const GetManifestCallback& callback) = 0; | 698 virtual void GetManifest(const GetManifestCallback& callback) = 0; |
| 698 | 699 |
| 699 typedef base::Callback<void(bool)> HasManifestCallback; | 700 typedef base::Callback<void(bool)> HasManifestCallback; |
| 700 | 701 |
| 701 // Returns true if the main frame has a <link> to a web manifest, otherwise | 702 // Returns true if the main frame has a <link> to a web manifest, otherwise |
| 702 // false. This method does not guarantee that the manifest exists at the | 703 // false. This method does not guarantee that the manifest exists at the |
| 703 // specified location or is valid. | 704 // specified location or is valid. |
| 704 virtual void HasManifest(const HasManifestCallback& callback) = 0; | 705 virtual void HasManifest(const HasManifestCallback& callback) = 0; |
| 705 | 706 |
| 706 // Requests the renderer to exit fullscreen. | 707 // Requests the renderer to exit fullscreen. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 | 753 |
| 753 private: | 754 private: |
| 754 // This interface should only be implemented inside content. | 755 // This interface should only be implemented inside content. |
| 755 friend class WebContentsImpl; | 756 friend class WebContentsImpl; |
| 756 WebContents() {} | 757 WebContents() {} |
| 757 }; | 758 }; |
| 758 | 759 |
| 759 } // namespace content | 760 } // namespace content |
| 760 | 761 |
| 761 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 762 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |