| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 class WebContentsView; | 81 class WebContentsView; |
| 82 class WebContentsViewDelegate; | 82 class WebContentsViewDelegate; |
| 83 struct AXEventNotificationDetails; | 83 struct AXEventNotificationDetails; |
| 84 struct ColorSuggestion; | 84 struct ColorSuggestion; |
| 85 struct FaviconURL; | 85 struct FaviconURL; |
| 86 struct LoadNotificationDetails; | 86 struct LoadNotificationDetails; |
| 87 struct MHTMLGenerationParams; | 87 struct MHTMLGenerationParams; |
| 88 struct ResourceRedirectDetails; | 88 struct ResourceRedirectDetails; |
| 89 struct ResourceRequestDetails; | 89 struct ResourceRequestDetails; |
| 90 | 90 |
| 91 namespace mojom { |
| 92 class CreateWindowParams; |
| 93 } |
| 94 |
| 91 #if defined(OS_ANDROID) | 95 #if defined(OS_ANDROID) |
| 92 class WebContentsAndroid; | 96 class WebContentsAndroid; |
| 93 #endif | 97 #endif |
| 94 | 98 |
| 95 #if defined(ENABLE_PLUGINS) | 99 #if defined(ENABLE_PLUGINS) |
| 96 class PepperPlaybackObserver; | 100 class PepperPlaybackObserver; |
| 97 #endif | 101 #endif |
| 98 | 102 |
| 99 // Factory function for the implementations that content knows about. Takes | 103 // Factory function for the implementations that content knows about. Takes |
| 100 // ownership of |delegate|. | 104 // ownership of |delegate|. |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 void OnUserInteraction(RenderWidgetHostImpl* render_widget_host, | 527 void OnUserInteraction(RenderWidgetHostImpl* render_widget_host, |
| 524 const blink::WebInputEvent::Type type) override; | 528 const blink::WebInputEvent::Type type) override; |
| 525 void OnIgnoredUIEvent() override; | 529 void OnIgnoredUIEvent() override; |
| 526 void Activate() override; | 530 void Activate() override; |
| 527 void UpdatePreferredSize(const gfx::Size& pref_size) override; | 531 void UpdatePreferredSize(const gfx::Size& pref_size) override; |
| 528 void CreateNewWindow( | 532 void CreateNewWindow( |
| 529 SiteInstance* source_site_instance, | 533 SiteInstance* source_site_instance, |
| 530 int32_t route_id, | 534 int32_t route_id, |
| 531 int32_t main_frame_route_id, | 535 int32_t main_frame_route_id, |
| 532 int32_t main_frame_widget_route_id, | 536 int32_t main_frame_widget_route_id, |
| 533 const ViewHostMsg_CreateWindow_Params& params, | 537 const mojom::CreateWindowParams& params, |
| 534 SessionStorageNamespace* session_storage_namespace) override; | 538 SessionStorageNamespace* session_storage_namespace) override; |
| 535 void CreateNewWidget(int32_t render_process_id, | 539 void CreateNewWidget(int32_t render_process_id, |
| 536 int32_t route_id, | 540 int32_t route_id, |
| 537 blink::WebPopupType popup_type) override; | 541 blink::WebPopupType popup_type) override; |
| 538 void CreateNewFullscreenWidget(int32_t render_process_id, | 542 void CreateNewFullscreenWidget(int32_t render_process_id, |
| 539 int32_t route_id) override; | 543 int32_t route_id) override; |
| 540 void ShowCreatedWindow(int process_id, | 544 void ShowCreatedWindow(int process_id, |
| 541 int route_id, | 545 int route_id, |
| 542 WindowOpenDisposition disposition, | 546 WindowOpenDisposition disposition, |
| 543 const gfx::Rect& initial_rect, | 547 const gfx::Rect& initial_rect, |
| (...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 // Adds/removes a callback called on creation of each new WebContents. | 1471 // Adds/removes a callback called on creation of each new WebContents. |
| 1468 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1472 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1469 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1473 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1470 | 1474 |
| 1471 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1475 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1472 }; | 1476 }; |
| 1473 | 1477 |
| 1474 } // namespace content | 1478 } // namespace content |
| 1475 | 1479 |
| 1476 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1480 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |