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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 } | 685 } |
686 | 686 |
687 bool has_audio_power_save_blocker_for_testing() const { | 687 bool has_audio_power_save_blocker_for_testing() const { |
688 return audio_power_save_blocker_; | 688 return audio_power_save_blocker_; |
689 } | 689 } |
690 | 690 |
691 bool has_video_power_save_blocker_for_testing() const { | 691 bool has_video_power_save_blocker_for_testing() const { |
692 return video_power_save_blocker_; | 692 return video_power_save_blocker_; |
693 } | 693 } |
694 | 694 |
| 695 void OnFindReply(int request_id, |
| 696 int number_of_matches, |
| 697 const gfx::Rect& selection_rect, |
| 698 int active_match_ordinal, |
| 699 bool final_update); |
| 700 |
695 private: | 701 private: |
696 friend class TestNavigationObserver; | 702 friend class TestNavigationObserver; |
697 friend class WebContentsAddedObserver; | 703 friend class WebContentsAddedObserver; |
698 friend class WebContentsObserver; | 704 friend class WebContentsObserver; |
699 friend class WebContents; // To implement factory methods. | 705 friend class WebContents; // To implement factory methods. |
700 | 706 |
701 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); | 707 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, NoJSMessageOnInterstitials); |
702 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); | 708 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, UpdateTitle); |
703 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FindOpenerRVHWhenPending); | 709 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, FindOpenerRVHWhenPending); |
704 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, | 710 FRIEND_TEST_ALL_PREFIXES(WebContentsImplTest, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 int maximum_percent); | 790 int maximum_percent); |
785 void OnEnumerateDirectory(int request_id, const base::FilePath& path); | 791 void OnEnumerateDirectory(int request_id, const base::FilePath& path); |
786 | 792 |
787 void OnRegisterProtocolHandler(const std::string& protocol, | 793 void OnRegisterProtocolHandler(const std::string& protocol, |
788 const GURL& url, | 794 const GURL& url, |
789 const base::string16& title, | 795 const base::string16& title, |
790 bool user_gesture); | 796 bool user_gesture); |
791 void OnUnregisterProtocolHandler(const std::string& protocol, | 797 void OnUnregisterProtocolHandler(const std::string& protocol, |
792 const GURL& url, | 798 const GURL& url, |
793 bool user_gesture); | 799 bool user_gesture); |
794 void OnFindReply(int request_id, | |
795 int number_of_matches, | |
796 const gfx::Rect& selection_rect, | |
797 int active_match_ordinal, | |
798 bool final_update); | |
799 #if defined(OS_ANDROID) | 800 #if defined(OS_ANDROID) |
800 void OnFindMatchRectsReply(int version, | 801 void OnFindMatchRectsReply(int version, |
801 const std::vector<gfx::RectF>& rects, | 802 const std::vector<gfx::RectF>& rects, |
802 const gfx::RectF& active_rect); | 803 const gfx::RectF& active_rect); |
803 | 804 |
804 void OnOpenDateTimeDialog( | 805 void OnOpenDateTimeDialog( |
805 const ViewHostMsg_DateTimeDialogValue_Params& value); | 806 const ViewHostMsg_DateTimeDialogValue_Params& value); |
806 #endif | 807 #endif |
807 void OnPepperPluginHung(int plugin_child_id, | 808 void OnPepperPluginHung(int plugin_child_id, |
808 const base::FilePath& path, | 809 const base::FilePath& path, |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1248 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1249 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
1249 | 1250 |
1250 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1251 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
1251 | 1252 |
1252 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1253 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1253 }; | 1254 }; |
1254 | 1255 |
1255 } // namespace content | 1256 } // namespace content |
1256 | 1257 |
1257 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1258 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |