| Index: ui/gfx/layout_util.h
|
| diff --git a/ui/gfx/layout_util.h b/ui/gfx/layout_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..65aaae71adda43d782a6b1d108e18a7b48990ef7
|
| --- /dev/null
|
| +++ b/ui/gfx/layout_util.h
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_GFX_LAYOUT_UTIL_H_
|
| +#define UI_GFX_LAYOUT_UTIL_H_
|
| +
|
| +#include "ui/gfx/gfx_export.h"
|
| +
|
| +namespace content {
|
| +class WebContents;
|
| +}
|
| +
|
| +namespace gfx {
|
| +
|
| +class Size;
|
| +
|
| +// A platform-agnostic function to resize a WebContents. The top-left corner of
|
| +// the WebContents does not move during the resizing.
|
| +GFX_EXPORT void ResizeWebContents(content::WebContents* web_contents,
|
| + const gfx::Size& size);
|
| +
|
| +} // namespace gfx
|
| +
|
| +#endif // UI_GFX_LAYOUT_UTIL_H_
|
|
|