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

Unified Diff: views/layout/box_layout.h

Issue 6332013: views: Forward declare "class View;" in layout_manager.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « chrome/browser/ui/views/frame/browser_view_layout.cc ('k') | views/layout/box_layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/layout/box_layout.h
diff --git a/views/layout/box_layout.h b/views/layout/box_layout.h
index fde203c1f9039876f257096d9af5e09f29039815..e2910b49421369bc74db265de992dbe2c2a3d3f5 100644
--- a/views/layout/box_layout.h
+++ b/views/layout/box_layout.h
@@ -7,10 +7,17 @@
#pragma once
#include "base/basictypes.h"
+#include "base/compiler_specific.h"
#include "views/layout/layout_manager.h"
+namespace gfx {
+class Size;
+}
+
namespace views {
+class View;
+
// A Layout manager that arranges child views vertically or horizontally in a
// side-by-side fashion with spacing around and between the child views. The
// child views are always sized according to their preferred size. If the
@@ -31,11 +38,11 @@ class BoxLayout : public LayoutManager {
int inside_border_horizontal_spacing,
int inside_border_vertical_spacing,
int between_child_spacing);
- virtual ~BoxLayout() {}
+ virtual ~BoxLayout();
// Overridden from views::LayoutManager:
- virtual void Layout(View* host);
- virtual gfx::Size GetPreferredSize(View* host);
+ virtual void Layout(View* host) OVERRIDE;
+ virtual gfx::Size GetPreferredSize(View* host) OVERRIDE;
private:
const Orientation orientation_;
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view_layout.cc ('k') | views/layout/box_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698