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 | 684 |
685 // Finds text on a page. |search_text| should not be empty. | 685 // Finds text on a page. |search_text| should not be empty. |
686 virtual void Find(int request_id, | 686 virtual void Find(int request_id, |
687 const base::string16& search_text, | 687 const base::string16& search_text, |
688 const blink::WebFindOptions& options) = 0; | 688 const blink::WebFindOptions& options) = 0; |
689 | 689 |
690 // Notifies the renderer that the user has closed the FindInPage window | 690 // Notifies the renderer that the user has closed the FindInPage window |
691 // (and what action to take regarding the selection). | 691 // (and what action to take regarding the selection). |
692 virtual void StopFinding(StopFindAction action) = 0; | 692 virtual void StopFinding(StopFindAction action) = 0; |
693 | 693 |
694 // Requests the renderer to insert CSS into the main frame's document. | |
695 virtual void InsertCSS(const std::string& css) = 0; | |
696 | |
697 // Returns true if audio has recently been audible from the WebContents. | 694 // Returns true if audio has recently been audible from the WebContents. |
698 virtual bool WasRecentlyAudible() = 0; | 695 virtual bool WasRecentlyAudible() = 0; |
699 | 696 |
700 // The callback invoked when the renderer responds to a request for the main | 697 // The callback invoked when the renderer responds to a request for the main |
701 // frame document's manifest. The url will be empty if the document specifies | 698 // frame document's manifest. The url will be empty if the document specifies |
702 // no manifest, and the manifest will be empty if any other failures occurred. | 699 // no manifest, and the manifest will be empty if any other failures occurred. |
703 typedef base::Callback<void(const GURL&, const Manifest&)> | 700 typedef base::Callback<void(const GURL&, const Manifest&)> |
704 GetManifestCallback; | 701 GetManifestCallback; |
705 | 702 |
706 // Requests the manifest URL and the Manifest of the main frame's document. | 703 // Requests the manifest URL and the Manifest of the main frame's document. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 | 752 |
756 private: | 753 private: |
757 // This interface should only be implemented inside content. | 754 // This interface should only be implemented inside content. |
758 friend class WebContentsImpl; | 755 friend class WebContentsImpl; |
759 WebContents() {} | 756 WebContents() {} |
760 }; | 757 }; |
761 | 758 |
762 } // namespace content | 759 } // namespace content |
763 | 760 |
764 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 761 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |