Chromium Code Reviews| Index: chrome/browser/prerender/prerender_contents.h |
| diff --git a/chrome/browser/prerender/prerender_contents.h b/chrome/browser/prerender/prerender_contents.h |
| index 9a48784a6fdc2bcba3cd159b51fe00f7a58722ae..a15aa7bcbf8f09c4c6a935058d84db3e7cef9cfb 100644 |
| --- a/chrome/browser/prerender/prerender_contents.h |
| +++ b/chrome/browser/prerender/prerender_contents.h |
| @@ -23,7 +23,7 @@ |
| #include "content/public/browser/notification_registrar.h" |
| #include "content/public/browser/web_contents_observer.h" |
| #include "content/public/common/referrer.h" |
| -#include "ui/gfx/geometry/size.h" |
| +#include "ui/gfx/geometry/rect.h" |
| class Profile; |
| @@ -110,12 +110,12 @@ class PrerenderContents : public content::NotificationObserver, |
| // Start rendering the contents in the prerendered state. If |
| // |is_control_group| is true, this will go through some of the mechanics of |
| - // starting a prerender, without actually creating the RenderView. |size| |
| - // indicates the rectangular dimensions that the prerendered page should be. |
| + // starting a prerender, without actually creating the RenderView. |bounds| |
| + // indicates the rectangular dimensions that the prerendered page should have. |
|
pasko
2016/08/22 15:17:58
it is not only the dimensions, but the 4 values de
Yusuf
2016/08/22 16:38:49
Done.
|
| // |session_storage_namespace| indicates the namespace that the prerendered |
| // page should be part of. |
| virtual void StartPrerendering( |
| - const gfx::Size& size, |
| + const gfx::Rect& bounds, |
| content::SessionStorageNamespace* session_storage_namespace); |
| // Verifies that the prerendering is not using too many resources, and kills |
| @@ -343,8 +343,8 @@ class PrerenderContents : public content::NotificationObserver, |
| // Origin for this prerender. |
| Origin origin_; |
| - // The size of the WebView from the launching page. |
| - gfx::Size size_; |
| + // The bounds of the WebView from the launching page. |
| + gfx::Rect bounds_; |
| typedef std::vector<history::HistoryAddPageArgs> AddPageVector; |