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

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: Accidentally made will_cause_resize always false in previous cleanup. Fixed Created 4 years, 11 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 virtual GeolocationServiceContext* GetGeolocationServiceContext(); 146 virtual GeolocationServiceContext* GetGeolocationServiceContext();
147 147
148 // Gets the WakeLockServiceContext associated with this delegate. 148 // Gets the WakeLockServiceContext associated with this delegate.
149 virtual WakeLockServiceContext* GetWakeLockServiceContext(); 149 virtual WakeLockServiceContext* GetWakeLockServiceContext();
150 150
151 // Notification that the frame wants to go into fullscreen mode. 151 // Notification that the frame wants to go into fullscreen mode.
152 // |origin| represents the origin of the frame that requests fullscreen. 152 // |origin| represents the origin of the frame that requests fullscreen.
153 virtual void EnterFullscreenMode(const GURL& origin) {} 153 virtual void EnterFullscreenMode(const GURL& origin) {}
154 154
155 // Notification that the frame wants to go out of fullscreen mode. 155 // Notification that the frame wants to go out of fullscreen mode.
156 virtual void ExitFullscreenMode() {} 156 // |will_cause_resize| indicates whether the fullscreen change causes a
157 // view resize. e.g. This will be false when going from tab fullscreen to
158 // browser fullscreen.
159 virtual void ExitFullscreenMode(bool will_cause_resize) {}
157 160
158 // Let the delegate decide whether postMessage should be delivered to 161 // Let the delegate decide whether postMessage should be delivered to
159 // |target_rfh| from a source frame in the given SiteInstance. This defaults 162 // |target_rfh| from a source frame in the given SiteInstance. This defaults
160 // to false and overrides the RenderFrameHost's decision if true. 163 // to false and overrides the RenderFrameHost's decision if true.
161 virtual bool ShouldRouteMessageEvent( 164 virtual bool ShouldRouteMessageEvent(
162 RenderFrameHost* target_rfh, 165 RenderFrameHost* target_rfh,
163 SiteInstance* source_site_instance) const; 166 SiteInstance* source_site_instance) const;
164 167
165 // Ensure that |source_rfh| has swapped-out RenderViews and 168 // Ensure that |source_rfh| has swapped-out RenderViews and
166 // RenderFrameProxies for itself and for all frames on its opener chain in 169 // RenderFrameProxies for itself and for all frames on its opener chain in
(...skipping 17 matching lines...) Expand all
184 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 187 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
185 #endif 188 #endif
186 189
187 protected: 190 protected:
188 virtual ~RenderFrameHostDelegate() {} 191 virtual ~RenderFrameHostDelegate() {}
189 }; 192 };
190 193
191 } // namespace content 194 } // namespace content
192 195
193 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 196 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/guest_view/browser/guest_view_base.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698