| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 void Find(int request_id, | 377 void Find(int request_id, |
| 378 const base::string16& search_text, | 378 const base::string16& search_text, |
| 379 const blink::WebFindOptions& options) override; | 379 const blink::WebFindOptions& options) override; |
| 380 void StopFinding(StopFindAction action) override; | 380 void StopFinding(StopFindAction action) override; |
| 381 void InsertCSS(const std::string& css) override; | 381 void InsertCSS(const std::string& css) override; |
| 382 bool WasRecentlyAudible() override; | 382 bool WasRecentlyAudible() override; |
| 383 void GetManifest(const GetManifestCallback& callback) override; | 383 void GetManifest(const GetManifestCallback& callback) override; |
| 384 void HasManifest(const HasManifestCallback& callback) override; | 384 void HasManifest(const HasManifestCallback& callback) override; |
| 385 void ExitFullscreen(bool will_cause_resize) override; | 385 void ExitFullscreen(bool will_cause_resize) override; |
| 386 void ResumeLoadingCreatedWebContents() override; | 386 void ResumeLoadingCreatedWebContents() override; |
| 387 #if defined(OS_ANDROID) | |
| 388 void OnMediaSessionStateChanged(); | 387 void OnMediaSessionStateChanged(); |
| 389 void ResumeMediaSession() override; | 388 void ResumeMediaSession() override; |
| 390 void SuspendMediaSession() override; | 389 void SuspendMediaSession() override; |
| 391 void StopMediaSession() override; | 390 void StopMediaSession() override; |
| 392 | 391 |
| 392 #if defined(OS_ANDROID) |
| 393 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 393 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
| 394 virtual WebContentsAndroid* GetWebContentsAndroid(); | 394 virtual WebContentsAndroid* GetWebContentsAndroid(); |
| 395 #elif defined(OS_MACOSX) | 395 #elif defined(OS_MACOSX) |
| 396 void SetAllowOtherViews(bool allow) override; | 396 void SetAllowOtherViews(bool allow) override; |
| 397 bool GetAllowOtherViews() override; | 397 bool GetAllowOtherViews() override; |
| 398 #endif | 398 #endif |
| 399 | 399 |
| 400 // Implementation of PageNavigator. | 400 // Implementation of PageNavigator. |
| 401 WebContents* OpenURL(const OpenURLParams& params) override; | 401 WebContents* OpenURL(const OpenURLParams& params) override; |
| 402 | 402 |
| (...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 // Adds/removes a callback called on creation of each new WebContents. | 1356 // Adds/removes a callback called on creation of each new WebContents. |
| 1357 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1357 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1358 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1358 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1359 | 1359 |
| 1360 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1360 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1361 }; | 1361 }; |
| 1362 | 1362 |
| 1363 } // namespace content | 1363 } // namespace content |
| 1364 | 1364 |
| 1365 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1365 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |