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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 uint32_t max_bitmap_size, | 633 uint32_t max_bitmap_size, |
634 bool bypass_cache, | 634 bool bypass_cache, |
635 const ImageDownloadCallback& callback) = 0; | 635 const ImageDownloadCallback& callback) = 0; |
636 | 636 |
637 // Returns true if the WebContents is responsible for displaying a subframe | 637 // Returns true if the WebContents is responsible for displaying a subframe |
638 // in a different process from its parent page. | 638 // in a different process from its parent page. |
639 // TODO: this doesn't really belong here. With site isolation, this should be | 639 // TODO: this doesn't really belong here. With site isolation, this should be |
640 // removed since we can then embed iframes in different processes. | 640 // removed since we can then embed iframes in different processes. |
641 virtual bool IsSubframe() const = 0; | 641 virtual bool IsSubframe() const = 0; |
642 | 642 |
643 // Finds text on a page. | 643 // Finds text on a page. |search_text| should not be empty. |
644 virtual void Find(int request_id, | 644 virtual void Find(int request_id, |
645 const base::string16& search_text, | 645 const base::string16& search_text, |
646 const blink::WebFindOptions& options) = 0; | 646 const blink::WebFindOptions& options) = 0; |
647 | 647 |
648 // Notifies the renderer that the user has closed the FindInPage window | 648 // Notifies the renderer that the user has closed the FindInPage window |
649 // (and what action to take regarding the selection). | 649 // (and what action to take regarding the selection). |
650 virtual void StopFinding(StopFindAction action) = 0; | 650 virtual void StopFinding(StopFindAction action) = 0; |
651 | 651 |
652 // Requests the renderer to insert CSS into the main frame's document. | 652 // Requests the renderer to insert CSS into the main frame's document. |
653 virtual void InsertCSS(const std::string& css) = 0; | 653 virtual void InsertCSS(const std::string& css) = 0; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 | 700 |
701 private: | 701 private: |
702 // This interface should only be implemented inside content. | 702 // This interface should only be implemented inside content. |
703 friend class WebContentsImpl; | 703 friend class WebContentsImpl; |
704 WebContents() {} | 704 WebContents() {} |
705 }; | 705 }; |
706 | 706 |
707 } // namespace content | 707 } // namespace content |
708 | 708 |
709 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 709 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |