| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 class WebContentsViewDelegate; | 78 class WebContentsViewDelegate; |
| 79 struct AXEventNotificationDetails; | 79 struct AXEventNotificationDetails; |
| 80 struct ColorSuggestion; | 80 struct ColorSuggestion; |
| 81 struct FaviconURL; | 81 struct FaviconURL; |
| 82 struct LoadNotificationDetails; | 82 struct LoadNotificationDetails; |
| 83 struct ResourceRedirectDetails; | 83 struct ResourceRedirectDetails; |
| 84 struct ResourceRequestDetails; | 84 struct ResourceRequestDetails; |
| 85 | 85 |
| 86 #if defined(OS_ANDROID) && !defined(USE_AURA) | 86 #if defined(OS_ANDROID) && !defined(USE_AURA) |
| 87 class WebContentsAndroid; | 87 class WebContentsAndroid; |
| 88 class MediaSession; |
| 88 #endif | 89 #endif |
| 89 | 90 |
| 90 // Factory function for the implementations that content knows about. Takes | 91 // Factory function for the implementations that content knows about. Takes |
| 91 // ownership of |delegate|. | 92 // ownership of |delegate|. |
| 92 WebContentsView* CreateWebContentsView( | 93 WebContentsView* CreateWebContentsView( |
| 93 WebContentsImpl* web_contents, | 94 WebContentsImpl* web_contents, |
| 94 WebContentsViewDelegate* delegate, | 95 WebContentsViewDelegate* delegate, |
| 95 RenderViewHostDelegateView** render_view_host_delegate_view); | 96 RenderViewHostDelegateView** render_view_host_delegate_view); |
| 96 | 97 |
| 97 class CONTENT_EXPORT WebContentsImpl | 98 class CONTENT_EXPORT WebContentsImpl |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 const base::string16& search_text, | 374 const base::string16& search_text, |
| 374 const blink::WebFindOptions& options) override; | 375 const blink::WebFindOptions& options) override; |
| 375 void StopFinding(StopFindAction action) override; | 376 void StopFinding(StopFindAction action) override; |
| 376 void InsertCSS(const std::string& css) override; | 377 void InsertCSS(const std::string& css) override; |
| 377 bool WasRecentlyAudible() override; | 378 bool WasRecentlyAudible() override; |
| 378 void GetManifest(const GetManifestCallback& callback) override; | 379 void GetManifest(const GetManifestCallback& callback) override; |
| 379 void HasManifest(const HasManifestCallback& callback) override; | 380 void HasManifest(const HasManifestCallback& callback) override; |
| 380 void ExitFullscreen() override; | 381 void ExitFullscreen() override; |
| 381 void ResumeLoadingCreatedWebContents() override; | 382 void ResumeLoadingCreatedWebContents() override; |
| 382 #if defined(OS_ANDROID) | 383 #if defined(OS_ANDROID) |
| 383 void OnMediaSessionStateChanged(); | 384 void OnMediaSessionStateChanged(MediaSession* session); |
| 384 void ResumeMediaSession() override; | 385 void ResumeMediaSession() override; |
| 385 void SuspendMediaSession() override; | 386 void SuspendMediaSession() override; |
| 386 void StopMediaSession() override; | 387 void StopMediaSession() override; |
| 387 #if !defined(USE_AURA) | 388 #if !defined(USE_AURA) |
| 388 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 389 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
| 389 virtual WebContentsAndroid* GetWebContentsAndroid(); | 390 virtual WebContentsAndroid* GetWebContentsAndroid(); |
| 390 #endif // !USE_AURA | 391 #endif // !USE_AURA |
| 391 #elif defined(OS_MACOSX) | 392 #elif defined(OS_MACOSX) |
| 392 void SetAllowOtherViews(bool allow) override; | 393 void SetAllowOtherViews(bool allow) override; |
| 393 bool GetAllowOtherViews() override; | 394 bool GetAllowOtherViews() override; |
| (...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 // Adds/removes a callback called on creation of each new WebContents. | 1322 // Adds/removes a callback called on creation of each new WebContents. |
| 1322 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1323 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1323 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1324 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1324 | 1325 |
| 1325 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1326 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1326 }; | 1327 }; |
| 1327 | 1328 |
| 1328 } // namespace content | 1329 } // namespace content |
| 1329 | 1330 |
| 1330 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1331 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |