Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2363573002: Move ViewHostMsg_CreateWindow to mojom (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 // Adds/removes a callback called on creation of each new WebContents. 1483 // Adds/removes a callback called on creation of each new WebContents.
1480 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1484 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1481 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1485 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1482 1486
1483 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1487 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1484 }; 1488 };
1485 1489
1486 } // namespace content 1490 } // namespace content
1487 1491
1488 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1492 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/security_exploit_browsertest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698