OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_BASE_WEB_CONTENTS_SIZER_H_ |
| 6 #define UI_BASE_WEB_CONTENTS_SIZER_H_ |
| 7 |
| 8 #include "ui/base/ui_base_export.h" |
| 9 |
| 10 namespace content { |
| 11 class WebContents; |
| 12 } |
| 13 |
| 14 namespace gfx { |
| 15 class Size; |
| 16 } |
| 17 |
| 18 namespace ui { |
| 19 // A platform-agnostic function to resize a WebContents. The top-left corner of |
| 20 // the WebContents does not move during the resizing. |
| 21 UI_BASE_EXPORT void ResizeWebContents(content::WebContents* web_contents, |
| 22 const gfx::Size& size); |
| 23 |
| 24 } // namespace ui |
| 25 |
| 26 #endif // UI_BASE_WEB_CONTENTS_SIZER_H_ |
OLD | NEW |