| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 const ImageDownloadCallback& callback) override; | 406 const ImageDownloadCallback& callback) override; |
| 407 bool IsSubframe() const override; | 407 bool IsSubframe() const override; |
| 408 void Find(int request_id, | 408 void Find(int request_id, |
| 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; | |
| 417 void SuspendMediaSession() override; | |
| 418 void StopMediaSession() override; | |
| 419 void OnPasswordInputShownOnHttp() override; | 416 void OnPasswordInputShownOnHttp() override; |
| 420 void OnCreditCardInputShownOnHttp() override; | 417 void OnCreditCardInputShownOnHttp() override; |
| 421 void SetIsOverlayContent(bool is_overlay_content) override; | 418 void SetIsOverlayContent(bool is_overlay_content) override; |
| 422 | 419 |
| 423 #if defined(OS_ANDROID) | 420 #if defined(OS_ANDROID) |
| 424 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 421 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
| 425 virtual WebContentsAndroid* GetWebContentsAndroid(); | 422 virtual WebContentsAndroid* GetWebContentsAndroid(); |
| 426 void ActivateNearestFindResult(float x, float y) override; | 423 void ActivateNearestFindResult(float x, float y) override; |
| 427 void RequestFindMatchRects(int current_version) override; | 424 void RequestFindMatchRects(int current_version) override; |
| 428 service_manager::InterfaceProvider* GetJavaInterfaces() override; | 425 service_manager::InterfaceProvider* GetJavaInterfaces() override; |
| 429 #elif defined(OS_MACOSX) | 426 #elif defined(OS_MACOSX) |
| 430 void SetAllowOtherViews(bool allow) override; | 427 void SetAllowOtherViews(bool allow) override; |
| 431 bool GetAllowOtherViews() override; | 428 bool GetAllowOtherViews() override; |
| 432 #endif | 429 #endif |
| 433 | 430 |
| 434 // This method is called when the MediaSession state has changed, and will | |
| 435 // notify the WebContents observers. | |
| 436 void OnMediaSessionStateChanged(); | |
| 437 // This method is called when the MediaSession metadata has changed, and will | |
| 438 // notify the WebContents observers. | |
| 439 void OnMediaSessionMetadataChanged(); | |
| 440 | |
| 441 // Implementation of PageNavigator. | 431 // Implementation of PageNavigator. |
| 442 WebContents* OpenURL(const OpenURLParams& params) override; | 432 WebContents* OpenURL(const OpenURLParams& params) override; |
| 443 | 433 |
| 444 // Implementation of IPC::Sender. | 434 // Implementation of IPC::Sender. |
| 445 bool Send(IPC::Message* message) override; | 435 bool Send(IPC::Message* message) override; |
| 446 | 436 |
| 447 // RenderFrameHostDelegate --------------------------------------------------- | 437 // RenderFrameHostDelegate --------------------------------------------------- |
| 448 bool OnMessageReceived(RenderFrameHost* render_frame_host, | 438 bool OnMessageReceived(RenderFrameHost* render_frame_host, |
| 449 const IPC::Message& message) override; | 439 const IPC::Message& message) override; |
| 450 void OnAssociatedInterfaceRequest( | 440 void OnAssociatedInterfaceRequest( |
| (...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 // Adds/removes a callback called on creation of each new WebContents. | 1449 // Adds/removes a callback called on creation of each new WebContents. |
| 1460 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1450 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1461 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1451 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1462 | 1452 |
| 1463 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1453 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1464 }; | 1454 }; |
| 1465 | 1455 |
| 1466 } // namespace content | 1456 } // namespace content |
| 1467 | 1457 |
| 1468 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1458 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |