diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-22 17:37:07 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-22 17:37:07 +0000 |
commit | 046953fab5f374e1bb7a3b34d5e1a4fdca402e90 (patch) | |
tree | 0a752fdbee0c50274c454d579de54fbaa1e3759a /views/controls/table/table_view2.h | |
parent | b1dd948b72d31b79d87591eb334dfabb21c5b82b (diff) | |
download | chromium_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.h | 10 |
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; }; |