| OLD | NEW |
| 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 "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/native_web_keyboard_event.h" | 10 #include "content/public/browser/native_web_keyboard_event.h" |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 // Gets the View of this RenderWidgetHost. Can be nullptr, e.g. if the | 205 // Gets the View of this RenderWidgetHost. Can be nullptr, e.g. if the |
| 206 // RenderWidget is being destroyed or the render process crashed. You should | 206 // RenderWidget is being destroyed or the render process crashed. You should |
| 207 // never cache this pointer since it can become nullptr if the renderer | 207 // never cache this pointer since it can become nullptr if the renderer |
| 208 // crashes, instead you should always ask for it using the accessor. | 208 // crashes, instead you should always ask for it using the accessor. |
| 209 virtual RenderWidgetHostView* GetView() const = 0; | 209 virtual RenderWidgetHostView* GetView() const = 0; |
| 210 | 210 |
| 211 // Returns true if the renderer is loading, false if not. | 211 // Returns true if the renderer is loading, false if not. |
| 212 virtual bool IsLoading() const = 0; | 212 virtual bool IsLoading() const = 0; |
| 213 | 213 |
| 214 // Returns true if this is a RenderViewHost, false if not. | |
| 215 virtual bool IsRenderView() const = 0; | |
| 216 | |
| 217 // Called to notify the RenderWidget that the resize rect has changed without | 214 // Called to notify the RenderWidget that the resize rect has changed without |
| 218 // the size of the RenderWidget itself changing. | 215 // the size of the RenderWidget itself changing. |
| 219 virtual void ResizeRectChanged(const gfx::Rect& new_rect) = 0; | 216 virtual void ResizeRectChanged(const gfx::Rect& new_rect) = 0; |
| 220 | 217 |
| 221 // Restart the active hang monitor timeout. Clears all existing timeouts and | 218 // Restart the active hang monitor timeout. Clears all existing timeouts and |
| 222 // starts with a new one. This can be because the renderer has become | 219 // starts with a new one. This can be because the renderer has become |
| 223 // active, the tab is being hidden, or the user has chosen to wait some more | 220 // active, the tab is being hidden, or the user has chosen to wait some more |
| 224 // to give the tab a chance to become active and we don't want to display a | 221 // to give the tab a chance to become active and we don't want to display a |
| 225 // warning too soon. | 222 // warning too soon. |
| 226 virtual void RestartHangMonitorTimeout() = 0; | 223 virtual void RestartHangMonitorTimeout() = 0; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 248 | 245 |
| 249 // Get the screen info corresponding to this render widget. | 246 // Get the screen info corresponding to this render widget. |
| 250 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) = 0; | 247 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) = 0; |
| 251 // Get the color profile corresponding to this render widget. | 248 // Get the color profile corresponding to this render widget. |
| 252 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0; | 249 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0; |
| 253 }; | 250 }; |
| 254 | 251 |
| 255 } // namespace content | 252 } // namespace content |
| 256 | 253 |
| 257 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 254 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |