Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Unified Diff: ui/gfx/layout_util.h

Issue 209023003: Remove references to WebContentsView::SizeContents from chrome/ and app/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change WebKit->Blink in a comment as suggested by avi. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/layout_util.cc » ('j') | ui/gfx/layout_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
sky 2014/04/02 14:39:42 We don't want ui/gfx to depend upon content.
erikchen 2014/04/02 17:10:41 Okay! Can you please tell me where you want this l
+ const gfx::Size& size);
+
+} // namespace gfx
+
+#endif // UI_GFX_LAYOUT_UTIL_H_
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/layout_util.cc » ('j') | ui/gfx/layout_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698