summaryrefslogtreecommitdiffstats
path: root/views/controls/table/table_view2.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-22 17:37:07 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-22 17:37:07 +0000
commit046953fab5f374e1bb7a3b34d5e1a4fdca402e90 (patch)
tree0a752fdbee0c50274c454d579de54fbaa1e3759a /views/controls/table/table_view2.h
parentb1dd948b72d31b79d87591eb334dfabb21c5b82b (diff)
downloadchromium_src-046953fab5f374e1bb7a3b34d5e1a4fdca402e90.zip
chromium_src-046953fab5f374e1bb7a3b34d5e1a4fdca402e90.tar.gz
chromium_src-046953fab5f374e1bb7a3b34d5e1a4fdca402e90.tar.bz2
views: Get rid of TableView2::CreateWrapper().
This is called only once, better to inline it in the call site, less code. R=sky@chromium.org Review URL: http://codereview.chromium.org/7983050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/table/table_view2.h')
-rw-r--r--views/controls/table/table_view2.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/views/controls/table/table_view2.h b/views/controls/table/table_view2.h
index 600bf52..58f5c0b 100644
--- a/views/controls/table/table_view2.h
+++ b/views/controls/table/table_view2.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/compiler_specific.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/models/table_model_observer.h"
#include "ui/gfx/canvas.h"
@@ -17,8 +18,6 @@
#include "views/controls/table/table_view.h"
#include "views/view.h"
-class SkBitmap;
-
namespace ui {
struct TableColumn;
class TableModel;
@@ -198,8 +197,9 @@ class VIEWS_EXPORT TableView2 : public View, public ui::TableModelObserver {
virtual gfx::NativeView GetTestingHandle();
protected:
- virtual NativeTableWrapper* CreateWrapper();
- virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
+ virtual void ViewHierarchyChanged(bool is_add,
+ View* parent,
+ View* child) OVERRIDE;
private:
friend class ListViewParent;
@@ -213,7 +213,7 @@ class VIEWS_EXPORT TableView2 : public View, public ui::TableModelObserver {
// cast from GetWindowLongPtr would break the pointer if it is pointing to a
// subclass (in the OO sense of TableView).
struct TableViewWrapper {
- explicit TableViewWrapper(TableView2* view) : table_view(view) { }
+ explicit TableViewWrapper(TableView2* view) : table_view(view) {}
TableView2* table_view;
};