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 <functional> | 10 #include <functional> |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 void InsertCSS(const std::string& css) override; | 388 void InsertCSS(const std::string& css) override; |
389 bool WasRecentlyAudible() override; | 389 bool WasRecentlyAudible() override; |
390 void GetManifest(const GetManifestCallback& callback) override; | 390 void GetManifest(const GetManifestCallback& callback) override; |
391 void HasManifest(const HasManifestCallback& callback) override; | 391 void HasManifest(const HasManifestCallback& callback) override; |
392 void ExitFullscreen(bool will_cause_resize) override; | 392 void ExitFullscreen(bool will_cause_resize) override; |
393 void ResumeLoadingCreatedWebContents() override; | 393 void ResumeLoadingCreatedWebContents() override; |
394 void OnMediaSessionStateChanged(); | 394 void OnMediaSessionStateChanged(); |
395 void ResumeMediaSession() override; | 395 void ResumeMediaSession() override; |
396 void SuspendMediaSession() override; | 396 void SuspendMediaSession() override; |
397 void StopMediaSession() override; | 397 void StopMediaSession() override; |
| 398 void OnMediaMetadataChanged(); |
398 | 399 |
399 #if defined(OS_ANDROID) | 400 #if defined(OS_ANDROID) |
400 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 401 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
401 virtual WebContentsAndroid* GetWebContentsAndroid(); | 402 virtual WebContentsAndroid* GetWebContentsAndroid(); |
402 void ActivateNearestFindResult(float x, float y) override; | 403 void ActivateNearestFindResult(float x, float y) override; |
403 void RequestFindMatchRects(int current_version) override; | 404 void RequestFindMatchRects(int current_version) override; |
404 #elif defined(OS_MACOSX) | 405 #elif defined(OS_MACOSX) |
405 void SetAllowOtherViews(bool allow) override; | 406 void SetAllowOtherViews(bool allow) override; |
406 bool GetAllowOtherViews() override; | 407 bool GetAllowOtherViews() override; |
407 #endif | 408 #endif |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1401 // Adds/removes a callback called on creation of each new WebContents. | 1402 // Adds/removes a callback called on creation of each new WebContents. |
1402 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1403 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1403 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1404 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1404 | 1405 |
1405 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1406 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1406 }; | 1407 }; |
1407 | 1408 |
1408 } // namespace content | 1409 } // namespace content |
1409 | 1410 |
1410 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1411 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |