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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 const base::string16& search_text, | 409 const base::string16& search_text, |
410 const blink::WebFindOptions& options) override; | 410 const blink::WebFindOptions& options) override; |
411 void StopFinding(StopFindAction action) override; | 411 void StopFinding(StopFindAction action) override; |
412 bool WasRecentlyAudible() override; | 412 bool WasRecentlyAudible() override; |
413 void GetManifest(const GetManifestCallback& callback) override; | 413 void GetManifest(const GetManifestCallback& callback) override; |
414 void ExitFullscreen(bool will_cause_resize) override; | 414 void ExitFullscreen(bool will_cause_resize) override; |
415 void ResumeLoadingCreatedWebContents() override; | 415 void ResumeLoadingCreatedWebContents() override; |
416 void ResumeMediaSession() override; | 416 void ResumeMediaSession() override; |
417 void SuspendMediaSession() override; | 417 void SuspendMediaSession() override; |
418 void StopMediaSession() override; | 418 void StopMediaSession() override; |
| 419 void DidReceiveMediaSessionAction( |
| 420 blink::mojom::MediaSessionAction action) override; |
419 void OnPasswordInputShownOnHttp() override; | 421 void OnPasswordInputShownOnHttp() override; |
420 void OnCreditCardInputShownOnHttp() override; | 422 void OnCreditCardInputShownOnHttp() override; |
421 void SetIsOverlayContent(bool is_overlay_content) override; | 423 void SetIsOverlayContent(bool is_overlay_content) override; |
422 | 424 |
423 #if defined(OS_ANDROID) | 425 #if defined(OS_ANDROID) |
424 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 426 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
425 virtual WebContentsAndroid* GetWebContentsAndroid(); | 427 virtual WebContentsAndroid* GetWebContentsAndroid(); |
426 void ActivateNearestFindResult(float x, float y) override; | 428 void ActivateNearestFindResult(float x, float y) override; |
427 void RequestFindMatchRects(int current_version) override; | 429 void RequestFindMatchRects(int current_version) override; |
428 service_manager::InterfaceProvider* GetJavaInterfaces() override; | 430 service_manager::InterfaceProvider* GetJavaInterfaces() override; |
429 #elif defined(OS_MACOSX) | 431 #elif defined(OS_MACOSX) |
430 void SetAllowOtherViews(bool allow) override; | 432 void SetAllowOtherViews(bool allow) override; |
431 bool GetAllowOtherViews() override; | 433 bool GetAllowOtherViews() override; |
432 #endif | 434 #endif |
433 | 435 |
434 // This method is called when the MediaSession state has changed, and will | 436 // This method is called when the MediaSession state has changed, and will |
435 // notify the WebContents observers. | 437 // notify the WebContents observers. |
436 void OnMediaSessionStateChanged(); | 438 void OnMediaSessionStateChanged(); |
437 // This method is called when the MediaSession metadata has changed, and will | 439 // This method is called when the MediaSession metadata has changed, and will |
438 // notify the WebContents observers. | 440 // notify the WebContents observers. |
439 void OnMediaSessionMetadataChanged(); | 441 void OnMediaSessionMetadataChanged(); |
| 442 // This method is called when the MediaSession has enabled an action, and will |
| 443 // notify the WebContentsObservers. |
| 444 void OnMediaSessionEnabledAction(blink::mojom::MediaSessionAction action); |
| 445 // This method is called when the MediaSession has disabled an action, and |
| 446 // will |
| 447 // notify the WebContentsObservers. |
| 448 void OnMediaSessionDisabledAction(blink::mojom::MediaSessionAction action); |
440 | 449 |
441 // Implementation of PageNavigator. | 450 // Implementation of PageNavigator. |
442 WebContents* OpenURL(const OpenURLParams& params) override; | 451 WebContents* OpenURL(const OpenURLParams& params) override; |
443 | 452 |
444 // Implementation of IPC::Sender. | 453 // Implementation of IPC::Sender. |
445 bool Send(IPC::Message* message) override; | 454 bool Send(IPC::Message* message) override; |
446 | 455 |
447 // RenderFrameHostDelegate --------------------------------------------------- | 456 // RenderFrameHostDelegate --------------------------------------------------- |
448 bool OnMessageReceived(RenderFrameHost* render_frame_host, | 457 bool OnMessageReceived(RenderFrameHost* render_frame_host, |
449 const IPC::Message& message) override; | 458 const IPC::Message& message) override; |
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1459 // Adds/removes a callback called on creation of each new WebContents. | 1468 // Adds/removes a callback called on creation of each new WebContents. |
1460 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1469 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1461 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1470 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1462 | 1471 |
1463 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1472 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1464 }; | 1473 }; |
1465 | 1474 |
1466 } // namespace content | 1475 } // namespace content |
1467 | 1476 |
1468 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1477 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |