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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 class WebContentsView; | 85 class WebContentsView; |
86 class WebContentsViewDelegate; | 86 class WebContentsViewDelegate; |
87 struct AXEventNotificationDetails; | 87 struct AXEventNotificationDetails; |
88 struct ColorSuggestion; | 88 struct ColorSuggestion; |
89 struct FaviconURL; | 89 struct FaviconURL; |
90 struct LoadNotificationDetails; | 90 struct LoadNotificationDetails; |
91 struct MHTMLGenerationParams; | 91 struct MHTMLGenerationParams; |
92 struct ResourceRedirectDetails; | 92 struct ResourceRedirectDetails; |
93 struct ResourceRequestDetails; | 93 struct ResourceRequestDetails; |
94 | 94 |
| 95 namespace mojom { |
| 96 class CreateNewWindowParams; |
| 97 } |
| 98 |
95 #if defined(OS_ANDROID) | 99 #if defined(OS_ANDROID) |
96 class WebContentsAndroid; | 100 class WebContentsAndroid; |
97 #endif | 101 #endif |
98 | 102 |
99 #if defined(ENABLE_PLUGINS) | 103 #if defined(ENABLE_PLUGINS) |
100 class PepperPlaybackObserver; | 104 class PepperPlaybackObserver; |
101 #endif | 105 #endif |
102 | 106 |
103 // Factory function for the implementations that content knows about. Takes | 107 // Factory function for the implementations that content knows about. Takes |
104 // ownership of |delegate|. | 108 // ownership of |delegate|. |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 void OnUserInteraction(RenderWidgetHostImpl* render_widget_host, | 533 void OnUserInteraction(RenderWidgetHostImpl* render_widget_host, |
530 const blink::WebInputEvent::Type type) override; | 534 const blink::WebInputEvent::Type type) override; |
531 void OnIgnoredUIEvent() override; | 535 void OnIgnoredUIEvent() override; |
532 void Activate() override; | 536 void Activate() override; |
533 void UpdatePreferredSize(const gfx::Size& pref_size) override; | 537 void UpdatePreferredSize(const gfx::Size& pref_size) override; |
534 void CreateNewWindow( | 538 void CreateNewWindow( |
535 SiteInstance* source_site_instance, | 539 SiteInstance* source_site_instance, |
536 int32_t route_id, | 540 int32_t route_id, |
537 int32_t main_frame_route_id, | 541 int32_t main_frame_route_id, |
538 int32_t main_frame_widget_route_id, | 542 int32_t main_frame_widget_route_id, |
539 const ViewHostMsg_CreateWindow_Params& params, | 543 const mojom::CreateNewWindowParams& params, |
540 SessionStorageNamespace* session_storage_namespace) override; | 544 SessionStorageNamespace* session_storage_namespace) override; |
541 void CreateNewWidget(int32_t render_process_id, | 545 void CreateNewWidget(int32_t render_process_id, |
542 int32_t route_id, | 546 int32_t route_id, |
543 blink::WebPopupType popup_type) override; | 547 blink::WebPopupType popup_type) override; |
544 void CreateNewFullscreenWidget(int32_t render_process_id, | 548 void CreateNewFullscreenWidget(int32_t render_process_id, |
545 int32_t route_id) override; | 549 int32_t route_id) override; |
546 void ShowCreatedWindow(int process_id, | 550 void ShowCreatedWindow(int process_id, |
547 int route_id, | 551 int route_id, |
548 WindowOpenDisposition disposition, | 552 WindowOpenDisposition disposition, |
549 const gfx::Rect& initial_rect, | 553 const gfx::Rect& initial_rect, |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1477 // Adds/removes a callback called on creation of each new WebContents. | 1481 // Adds/removes a callback called on creation of each new WebContents. |
1478 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1482 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1479 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1483 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1480 | 1484 |
1481 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1485 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1482 }; | 1486 }; |
1483 | 1487 |
1484 } // namespace content | 1488 } // namespace content |
1485 | 1489 |
1486 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1490 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |