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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2496203003: Add printing tests to ensure window.print() works for subframes.
Patch Set: Created 4 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <memory>
12 #include <set> 13 #include <set>
13 #include <string> 14 #include <string>
15 #include <utility>
14 #include <vector> 16 #include <vector>
15 17
16 #include "base/callback.h" 18 #include "base/callback.h"
17 #include "base/compiler_specific.h" 19 #include "base/compiler_specific.h"
18 #include "base/gtest_prod_util.h" 20 #include "base/gtest_prod_util.h"
19 #include "base/macros.h" 21 #include "base/macros.h"
20 #include "base/memory/weak_ptr.h" 22 #include "base/memory/weak_ptr.h"
21 #include "base/strings/string16.h" 23 #include "base/strings/string16.h"
22 #include "base/time/time.h" 24 #include "base/time/time.h"
23 #include "build/build_config.h" 25 #include "build/build_config.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // RenderFrameHost 127 // RenderFrameHost
126 int GetRoutingID() override; 128 int GetRoutingID() override;
127 AXTreeIDRegistry::AXTreeID GetAXTreeID() override; 129 AXTreeIDRegistry::AXTreeID GetAXTreeID() override;
128 SiteInstanceImpl* GetSiteInstance() override; 130 SiteInstanceImpl* GetSiteInstance() override;
129 RenderProcessHost* GetProcess() override; 131 RenderProcessHost* GetProcess() override;
130 RenderWidgetHostView* GetView() override; 132 RenderWidgetHostView* GetView() override;
131 RenderFrameHostImpl* GetParent() override; 133 RenderFrameHostImpl* GetParent() override;
132 int GetFrameTreeNodeId() override; 134 int GetFrameTreeNodeId() override;
133 const std::string& GetFrameName() override; 135 const std::string& GetFrameName() override;
134 bool IsCrossProcessSubframe() override; 136 bool IsCrossProcessSubframe() override;
135 const GURL& GetLastCommittedURL() override; 137 const GURL& GetLastCommittedURL() const override;
136 url::Origin GetLastCommittedOrigin() override; 138 url::Origin GetLastCommittedOrigin() override;
137 gfx::NativeView GetNativeView() override; 139 gfx::NativeView GetNativeView() override;
138 void AddMessageToConsole(ConsoleMessageLevel level, 140 void AddMessageToConsole(ConsoleMessageLevel level,
139 const std::string& message) override; 141 const std::string& message) override;
140 void ExecuteJavaScript(const base::string16& javascript) override; 142 void ExecuteJavaScript(const base::string16& javascript) override;
141 void ExecuteJavaScript(const base::string16& javascript, 143 void ExecuteJavaScript(const base::string16& javascript,
142 const JavaScriptResultCallback& callback) override; 144 const JavaScriptResultCallback& callback) override;
143 void ExecuteJavaScriptInIsolatedWorld( 145 void ExecuteJavaScriptInIsolatedWorld(
144 const base::string16& javascript, 146 const base::string16& javascript,
145 const JavaScriptResultCallback& callback, 147 const JavaScriptResultCallback& callback,
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 LoFiState last_navigation_lofi_state_; 1048 LoFiState last_navigation_lofi_state_;
1047 1049
1048 mojo::Binding<mojom::FrameHost> frame_host_binding_; 1050 mojo::Binding<mojom::FrameHost> frame_host_binding_;
1049 mojom::FramePtr frame_; 1051 mojom::FramePtr frame_;
1050 1052
1051 // If this is true then this object was created in response to a renderer 1053 // If this is true then this object was created in response to a renderer
1052 // initiated request. Init() will be called, and until then navigation 1054 // initiated request. Init() will be called, and until then navigation
1053 // requests should be queued. 1055 // requests should be queued.
1054 bool waiting_for_init_; 1056 bool waiting_for_init_;
1055 1057
1056 typedef std::pair<CommonNavigationParams, BeginNavigationParams> 1058 using PendingNavigation =
1057 PendingNavigation; 1059 std::pair<CommonNavigationParams, BeginNavigationParams>;
1058 std::unique_ptr<PendingNavigation> pendinging_navigate_; 1060 std::unique_ptr<PendingNavigation> pendinging_navigate_;
1059 1061
1060 // Callback for responding when 1062 // Callback for responding when
1061 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. 1063 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes.
1062 TextSurroundingSelectionCallback text_surrounding_selection_callback_; 1064 TextSurroundingSelectionCallback text_surrounding_selection_callback_;
1063 1065
1064 std::vector<std::unique_ptr<service_manager::InterfaceRegistry>> 1066 std::vector<std::unique_ptr<service_manager::InterfaceRegistry>>
1065 media_registries_; 1067 media_registries_;
1066 1068
1067 std::unique_ptr<AssociatedInterfaceProviderImpl> 1069 std::unique_ptr<AssociatedInterfaceProviderImpl>
1068 remote_associated_interfaces_; 1070 remote_associated_interfaces_;
1069 // NOTE: This must be the last member. 1071 // NOTE: This must be the last member.
1070 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1072 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1071 1073
1072 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1074 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1073 }; 1075 };
1074 1076
1075 } // namespace content 1077 } // namespace content
1076 1078
1077 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1079 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698