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

Unified Diff: views/controls/table/table_view2.cc

Issue 7983050: views: Get rid of TableView2::CreateWrapper(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « views/controls/table/table_view2.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/table/table_view2.cc
diff --git a/views/controls/table/table_view2.cc b/views/controls/table/table_view2.cc
index e387066fb01d2ed9afc0fcfe2c914a1376b44700..d3e28e58ab93dac313981cfb792208d72a19fed1 100644
--- a/views/controls/table/table_view2.cc
+++ b/views/controls/table/table_view2.cc
@@ -11,8 +11,6 @@
namespace views {
-// TableView2 ------------------------------------------------------------------
-
TableView2::TableView2(ui::TableModel* model,
const std::vector<ui::TableColumn>& columns,
TableTypes table_type,
@@ -308,7 +306,7 @@ void TableView2::ViewHierarchyChanged(bool is_add, View* parent, View* child) {
if (is_add && !native_wrapper_ && GetWidget()) {
// The native wrapper's lifetime will be managed by the view hierarchy after
// we call AddChildView.
- native_wrapper_ = CreateWrapper();
+ native_wrapper_ = NativeTableWrapper::CreateNativeWrapper(this);
AddChildView(native_wrapper_->GetView());
}
}
@@ -333,11 +331,4 @@ ui::TableColumn TableView2::GetVisibleColumnAt(int index) {
return iter->second;
}
-////////////////////////////////////////////////////////////////////////////////
-// NativeTable2, protected:
-
-NativeTableWrapper* TableView2::CreateWrapper() {
- return NativeTableWrapper::CreateNativeWrapper(this);
-}
-
} // namespace views
« no previous file with comments | « views/controls/table/table_view2.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698