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

Side by Side Diff: content/public/browser/render_widget_host.h

Issue 2400243002: Remove grow box rect support, browser part. (Closed)
Patch Set: . Created 4 years, 2 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 // Gets the View of this RenderWidgetHost. Can be nullptr, e.g. if the 201 // Gets the View of this RenderWidgetHost. Can be nullptr, e.g. if the
202 // RenderWidget is being destroyed or the render process crashed. You should 202 // RenderWidget is being destroyed or the render process crashed. You should
203 // never cache this pointer since it can become nullptr if the renderer 203 // never cache this pointer since it can become nullptr if the renderer
204 // crashes, instead you should always ask for it using the accessor. 204 // crashes, instead you should always ask for it using the accessor.
205 virtual RenderWidgetHostView* GetView() const = 0; 205 virtual RenderWidgetHostView* GetView() const = 0;
206 206
207 // Returns true if the renderer is loading, false if not. 207 // Returns true if the renderer is loading, false if not.
208 virtual bool IsLoading() const = 0; 208 virtual bool IsLoading() const = 0;
209 209
210 // Called to notify the RenderWidget that the resize rect has changed without
211 // the size of the RenderWidget itself changing.
212 virtual void ResizeRectChanged(const gfx::Rect& new_rect) = 0;
213
214 // Restart the active hang monitor timeout. Clears all existing timeouts and 210 // Restart the active hang monitor timeout. Clears all existing timeouts and
215 // starts with a new one. This can be because the renderer has become 211 // starts with a new one. This can be because the renderer has become
216 // active, the tab is being hidden, or the user has chosen to wait some more 212 // active, the tab is being hidden, or the user has chosen to wait some more
217 // to give the tab a chance to become active and we don't want to display a 213 // to give the tab a chance to become active and we don't want to display a
218 // warning too soon. 214 // warning too soon.
219 virtual void RestartHangMonitorTimeout() = 0; 215 virtual void RestartHangMonitorTimeout() = 0;
220 216
221 // Stops and disables hang monitor. This avoids flakiness in tests that need 217 // Stops and disables hang monitor. This avoids flakiness in tests that need
222 // to observe things like beforeunload dialogs, which could fail if the 218 // to observe things like beforeunload dialogs, which could fail if the
223 // timeout skips the dialog. 219 // timeout skips the dialog.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // Get the screen info corresponding to this render widget. 255 // Get the screen info corresponding to this render widget.
260 virtual void GetScreenInfo(ScreenInfo* result) = 0; 256 virtual void GetScreenInfo(ScreenInfo* result) = 0;
261 257
262 // Sends a compositor proto to the render widget. 258 // Sends a compositor proto to the render widget.
263 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; 259 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0;
264 }; 260 };
265 261
266 } // namespace content 262 } // namespace content
267 263
268 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 264 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698