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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 1804023002: Fix page zoom to be frame-centric for out-of-process frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments, exclude part of test since not supported on Android. Created 4 years, 7 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 // Returns the SessionStorageNamespace the render view should use. Might 214 // Returns the SessionStorageNamespace the render view should use. Might
215 // create the SessionStorageNamespace on the fly. 215 // create the SessionStorageNamespace on the fly.
216 virtual SessionStorageNamespace* GetSessionStorageNamespace( 216 virtual SessionStorageNamespace* GetSessionStorageNamespace(
217 SiteInstance* instance); 217 SiteInstance* instance);
218 218
219 // Returns a copy of the map of all session storage namespaces related 219 // Returns a copy of the map of all session storage namespaces related
220 // to this view. 220 // to this view.
221 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap(); 221 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap();
222 222
223 // Returns the zoom level for the pending navigation for the page. If there
224 // is no pending navigation, this returns the zoom level for the current
225 // page..
alexmos 2016/04/27 23:39:51 nit: extra .
wjmaclean 2016/04/28 13:20:11 Done.
226 virtual double GetPendingPageZoomLevel();
227
223 // Returns true if the RenderViewHost will never be visible. 228 // Returns true if the RenderViewHost will never be visible.
224 virtual bool IsNeverVisible(); 229 virtual bool IsNeverVisible();
225 230
226 // Returns the FrameTree the render view should use. Guaranteed to be constant 231 // Returns the FrameTree the render view should use. Guaranteed to be constant
227 // for the lifetime of the render view. 232 // for the lifetime of the render view.
228 // 233 //
229 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer 234 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer
230 // created by the RenderViewHost. 235 // created by the RenderViewHost.
231 virtual FrameTree* GetFrameTree(); 236 virtual FrameTree* GetFrameTree();
232 237
233 // Optional state storage for if the Virtual Keyboard has been requested by 238 // Optional state storage for if the Virtual Keyboard has been requested by
234 // this page or not. If it has, this can be used to suppress things like the 239 // this page or not. If it has, this can be used to suppress things like the
235 // link disambiguation dialog, which doesn't interact well with the virtual 240 // link disambiguation dialog, which doesn't interact well with the virtual
236 // keyboard. 241 // keyboard.
237 virtual void SetIsVirtualKeyboardRequested(bool requested) {} 242 virtual void SetIsVirtualKeyboardRequested(bool requested) {}
238 virtual bool IsVirtualKeyboardRequested(); 243 virtual bool IsVirtualKeyboardRequested();
239 244
240 // Whether the user agent is overridden using the Chrome for Android "Request 245 // Whether the user agent is overridden using the Chrome for Android "Request
241 // Desktop Site" feature. 246 // Desktop Site" feature.
242 virtual bool IsOverridingUserAgent(); 247 virtual bool IsOverridingUserAgent();
243 248
244 protected: 249 protected:
245 virtual ~RenderViewHostDelegate() {} 250 virtual ~RenderViewHostDelegate() {}
246 }; 251 };
247 252
248 } // namespace content 253 } // namespace content
249 254
250 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 255 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698