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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
683 // (but can be null if not applicable). | 683 // (but can be null if not applicable). |
684 void SetIsLoading(bool is_loading, | 684 void SetIsLoading(bool is_loading, |
685 bool to_different_document, | 685 bool to_different_document, |
686 LoadNotificationDetails* details) override; | 686 LoadNotificationDetails* details) override; |
687 | 687 |
688 typedef base::Callback<void(WebContents*)> CreatedCallback; | 688 typedef base::Callback<void(WebContents*)> CreatedCallback; |
689 | 689 |
690 // Forces overscroll to be disabled (used by touch emulation). | 690 // Forces overscroll to be disabled (used by touch emulation). |
691 void SetForceDisableOverscrollContent(bool force_disable); | 691 void SetForceDisableOverscrollContent(bool force_disable); |
692 | 692 |
693 // Returns the outer WebContents of this WebContents if any. | |
694 // Note that without --site-per-process, this will return the WebContents | |
695 // of our BrowserPluginEmbedder. | |
Charlie Reis
2015/09/24 05:09:14
nit: of the BrowserPluginEmbedder, if |this| is a
lazyboy
2015/09/28 03:37:16
Done.
| |
696 WebContentsImpl* GetOuterWebContents(); | |
Charlie Reis
2015/09/24 05:09:14
nit: Declare this above GetBrowserPluginGuest(), s
lazyboy
2015/09/28 03:37:16
Done.
| |
697 | |
693 AudioStreamMonitor* audio_stream_monitor() { | 698 AudioStreamMonitor* audio_stream_monitor() { |
694 return &audio_stream_monitor_; | 699 return &audio_stream_monitor_; |
695 } | 700 } |
696 | 701 |
697 bool has_audio_power_save_blocker_for_testing() const { | 702 bool has_audio_power_save_blocker_for_testing() const { |
698 return audio_power_save_blocker_; | 703 return audio_power_save_blocker_; |
699 } | 704 } |
700 | 705 |
701 bool has_video_power_save_blocker_for_testing() const { | 706 bool has_video_power_save_blocker_for_testing() const { |
702 return video_power_save_blocker_; | 707 return video_power_save_blocker_; |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1326 // Adds/removes a callback called on creation of each new WebContents. | 1331 // Adds/removes a callback called on creation of each new WebContents. |
1327 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1332 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1328 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1333 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1329 | 1334 |
1330 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1335 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1331 }; | 1336 }; |
1332 | 1337 |
1333 } // namespace content | 1338 } // namespace content |
1334 | 1339 |
1335 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1340 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |