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

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

Issue 1488653002: Fix scroll restoration when exiting fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trying to fix test broken on Mac Created 5 years 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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 virtual GeolocationServiceContext* GetGeolocationServiceContext(); 144 virtual GeolocationServiceContext* GetGeolocationServiceContext();
145 145
146 // Gets the WakeLockServiceContext associated with this delegate. 146 // Gets the WakeLockServiceContext associated with this delegate.
147 virtual WakeLockServiceContext* GetWakeLockServiceContext(); 147 virtual WakeLockServiceContext* GetWakeLockServiceContext();
148 148
149 // Notification that the frame wants to go into fullscreen mode. 149 // Notification that the frame wants to go into fullscreen mode.
150 // |origin| represents the origin of the frame that requests fullscreen. 150 // |origin| represents the origin of the frame that requests fullscreen.
151 virtual void EnterFullscreenMode(const GURL& origin) {} 151 virtual void EnterFullscreenMode(const GURL& origin) {}
152 152
153 // Notification that the frame wants to go out of fullscreen mode. 153 // Notification that the frame wants to go out of fullscreen mode.
154 virtual void ExitFullscreenMode() {} 154 // |will_cause_resize| can be false in the case where we exit tab fullscreen
155 // into browser fullscreen and thus won't cause bounds to change.
156 virtual void ExitFullscreenMode(bool will_cause_resize) {}
155 157
156 // Let the delegate decide whether postMessage should be delivered to 158 // Let the delegate decide whether postMessage should be delivered to
157 // |target_rfh| from a source frame in the given SiteInstance. This defaults 159 // |target_rfh| from a source frame in the given SiteInstance. This defaults
158 // to false and overrides the RenderFrameHost's decision if true. 160 // to false and overrides the RenderFrameHost's decision if true.
159 virtual bool ShouldRouteMessageEvent( 161 virtual bool ShouldRouteMessageEvent(
160 RenderFrameHost* target_rfh, 162 RenderFrameHost* target_rfh,
161 SiteInstance* source_site_instance) const; 163 SiteInstance* source_site_instance) const;
162 164
163 // Ensure that |source_rfh| has swapped-out RenderViews and 165 // Ensure that |source_rfh| has swapped-out RenderViews and
164 // RenderFrameProxies for itself and for all frames on its opener chain in 166 // RenderFrameProxies for itself and for all frames on its opener chain in
(...skipping 17 matching lines...) Expand all
182 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 184 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
183 #endif 185 #endif
184 186
185 protected: 187 protected:
186 virtual ~RenderFrameHostDelegate() {} 188 virtual ~RenderFrameHostDelegate() {}
187 }; 189 };
188 190
189 } // namespace content 191 } // namespace content
190 192
191 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 193 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698