| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_ |
| 6 #define CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_ | 6 #define CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 class WebContents; | 9 class WebContents; |
| 10 } | 10 } |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 class Rect; | 13 class Rect; |
| 14 } | 14 } |
| 15 | 15 |
| 16 // A platform-agnostic function to resize a WebContents. | 16 // A platform-agnostic function to resize a WebContents. |
| 17 // |
| 18 // TODO(miu): DEPRECATED. http://crbug.com/693953 |
| 19 // Call web_contents->GetRenderWidgetHostView()->SetSize() instead. |
| 17 void ResizeWebContents(content::WebContents* web_contents, | 20 void ResizeWebContents(content::WebContents* web_contents, |
| 18 const gfx::Rect& bounds); | 21 const gfx::Rect& bounds); |
| 19 | 22 |
| 20 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_ | 23 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_ |
| OLD | NEW |