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

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

Issue 2928643003: Propagate auto-resize viewport values to OOPIF processes (Closed)
Patch Set: Created 3 years, 6 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_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // element accepts text input. 259 // element accepts text input.
260 virtual void FocusedNodeTouched(bool editable) {} 260 virtual void FocusedNodeTouched(bool editable) {}
261 261
262 // Return this object cast to a WebContents, if it is one. If the object is 262 // Return this object cast to a WebContents, if it is one. If the object is
263 // not a WebContents, returns nullptr. 263 // not a WebContents, returns nullptr.
264 virtual WebContents* GetAsWebContents(); 264 virtual WebContents* GetAsWebContents();
265 265
266 // Notifies that a CompositorFrame was received from the renderer. 266 // Notifies that a CompositorFrame was received from the renderer.
267 virtual void DidReceiveCompositorFrame() {} 267 virtual void DidReceiveCompositorFrame() {}
268 268
269 // Gets the size set by a top-level frame with auto-resize enabled.
270 virtual gfx::Size GetAutoResizeSize();
271
272 // Reset the auto-size value, to indicate that auto-size is no longer active.
273 virtual void ResetAutoResizeSize() {}
274
269 protected: 275 protected:
270 virtual ~RenderWidgetHostDelegate() {} 276 virtual ~RenderWidgetHostDelegate() {}
271 }; 277 };
272 278
273 } // namespace content 279 } // namespace content
274 280
275 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 281 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698