Index: ui/base/web_contents_sizer.h |
diff --git a/ui/base/web_contents_sizer.h b/ui/base/web_contents_sizer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bc72ab0bb7025f40d4cd729ddf71ecb77659dd08 |
--- /dev/null |
+++ b/ui/base/web_contents_sizer.h |
@@ -0,0 +1,26 @@ |
+// 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_BASE_WEB_CONTENTS_SIZER_H_ |
+#define UI_BASE_WEB_CONTENTS_SIZER_H_ |
+ |
+#include "ui/base/ui_base_export.h" |
+ |
+namespace content { |
+class WebContents; |
+} |
+ |
+namespace gfx { |
+class Size; |
+} |
+ |
+namespace ui { |
+// A platform-agnostic function to resize a WebContents. The top-left corner of |
+// the WebContents does not move during the resizing. |
+UI_BASE_EXPORT void ResizeWebContents(content::WebContents* web_contents, |
+ const gfx::Size& size); |
+ |
+} // namespace ui |
+ |
+#endif // UI_BASE_WEB_CONTENTS_SIZER_H_ |