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 CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_
6#define CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_
7
8namespace content {
9class WebContents;
10}
11
12namespace gfx {
13class Size;
14}
15
16// A platform-agnostic function to resize a WebContents. The top-left corner of
17// the WebContents does not move during the resizing.
18void ResizeWebContents(content::WebContents* web_contents,
19                       const gfx::Size& size);
20
21#endif  // CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_
22