summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/web_contents_sizer.h
blob: b7021dc9816377de36d1cb5725833b884e452597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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 CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_
#define CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_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.
void ResizeWebContents(content::WebContents* web_contents,
                       const gfx::Size& size);

#endif  // CHROME_BROWSER_UI_WEB_CONTENTS_SIZER_H_