summaryrefslogtreecommitdiffstats
path: root/views/controls
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 05:27:12 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 05:27:12 +0000
commitd2fb877c070f15e785d98acc490487b6064f4b0a (patch)
tree40c75639e25f72e1fc263f1020a6d45649cfe575 /views/controls
parenta82cda8f92f6bf18732b6cff0f5e1a1374201db6 (diff)
downloadchromium_src-d2fb877c070f15e785d98acc490487b6064f4b0a.zip
chromium_src-d2fb877c070f15e785d98acc490487b6064f4b0a.tar.gz
chromium_src-d2fb877c070f15e785d98acc490487b6064f4b0a.tar.bz2
Cleanup: Remove unneeded forward declarations in views.
BUG=none TEST=none Review URL: http://codereview.chromium.org/8536004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls')
-rw-r--r--views/controls/menu/menu_host.h1
-rw-r--r--views/controls/menu/menu_item_view.h10
-rw-r--r--views/controls/menu/native_menu_host.h6
-rw-r--r--views/controls/menu/native_menu_host_delegate.h5
-rw-r--r--views/controls/scrollbar/native_scroll_bar_gtk.h7
-rw-r--r--views/controls/table/table_view.h2
-rw-r--r--views/controls/textfield/textfield_views_model.h4
7 files changed, 10 insertions, 25 deletions
diff --git a/views/controls/menu/menu_host.h b/views/controls/menu/menu_host.h
index 7fd76a6..377f128 100644
--- a/views/controls/menu/menu_host.h
+++ b/views/controls/menu/menu_host.h
@@ -13,7 +13,6 @@
namespace views {
-class NativeMenuHost;
class NativeWidget;
class SubmenuView;
class View;
diff --git a/views/controls/menu/menu_item_view.h b/views/controls/menu/menu_item_view.h
index 4111d81..eb6de52 100644
--- a/views/controls/menu/menu_item_view.h
+++ b/views/controls/menu/menu_item_view.h
@@ -9,18 +9,15 @@
#include <string>
#include <vector>
-#include "build/build_config.h"
-
-#if defined(OS_WIN)
-#include <windows.h>
-#endif
-
#include "base/logging.h"
#include "base/string16.h"
+#include "build/build_config.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "views/view.h"
#if defined(OS_WIN)
+#include <windows.h>
+
#include "ui/gfx/native_theme.h"
#endif
@@ -38,7 +35,6 @@ namespace internal {
class MenuRunnerImpl;
}
-class MenuButton;
struct MenuConfig;
class MenuController;
class MenuDelegate;
diff --git a/views/controls/menu/native_menu_host.h b/views/controls/menu/native_menu_host.h
index 8a1a0f8..44db75a 100644
--- a/views/controls/menu/native_menu_host.h
+++ b/views/controls/menu/native_menu_host.h
@@ -7,12 +7,10 @@
#include "ui/gfx/native_widget_types.h"
-namespace gfx {
-class Rect;
-}
-
namespace views {
+
class NativeWidget;
+
namespace internal {
class NativeMenuHostDelegate;
}
diff --git a/views/controls/menu/native_menu_host_delegate.h b/views/controls/menu/native_menu_host_delegate.h
index 8baf714..664760a 100644
--- a/views/controls/menu/native_menu_host_delegate.h
+++ b/views/controls/menu/native_menu_host_delegate.h
@@ -6,9 +6,11 @@
#define VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
namespace views {
+
class MenuHost;
-class RootView;
+
namespace internal {
+
class NativeWidgetDelegate;
class NativeMenuHostDelegate {
@@ -28,4 +30,3 @@ class NativeMenuHostDelegate {
} // namespace views
#endif // VIEWS_CONTROLS_MENU_NATIVE_MENU_HOST_DELEGATE_H_
-
diff --git a/views/controls/scrollbar/native_scroll_bar_gtk.h b/views/controls/scrollbar/native_scroll_bar_gtk.h
index 04acbae..350a48d 100644
--- a/views/controls/scrollbar/native_scroll_bar_gtk.h
+++ b/views/controls/scrollbar/native_scroll_bar_gtk.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -11,8 +11,6 @@
namespace views {
-class ScrollBarContainer;
-
/////////////////////////////////////////////////////////////////////////////
//
// NativeScrollBarGtk
@@ -76,5 +74,4 @@ class NativeScrollBarGtk : public NativeControlGtk,
} // namespace views
-#endif // #ifndef VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_GTK_H_
-
+#endif // VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_GTK_H_
diff --git a/views/controls/table/table_view.h b/views/controls/table/table_view.h
index c469999..092bedd 100644
--- a/views/controls/table/table_view.h
+++ b/views/controls/table/table_view.h
@@ -26,8 +26,6 @@
typedef struct tagNMLVCUSTOMDRAW NMLVCUSTOMDRAW;
#endif // defined(OS_WIN)
-class SkBitmap;
-
namespace gfx {
class Font;
}
diff --git a/views/controls/textfield/textfield_views_model.h b/views/controls/textfield/textfield_views_model.h
index 103673b..02d5db8 100644
--- a/views/controls/textfield/textfield_views_model.h
+++ b/views/controls/textfield/textfield_views_model.h
@@ -19,10 +19,7 @@
#include "views/views_export.h"
namespace gfx {
-class Canvas;
-class Font;
class RenderText;
-struct StyleRange;
} // namespace gfx
namespace ui {
@@ -54,7 +51,6 @@ enum MergeType {
// It supports editing, selection and cursor manipulation.
class VIEWS_EXPORT TextfieldViewsModel {
public:
-
// Delegate interface implemented by the textfield view class to provided
// additional functionalities required by the model.
class VIEWS_EXPORT Delegate {