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

Side by Side Diff: ui/views/controls/table/table_view2.cc

Issue 8655001: views: Move table and tree directories to ui/views/controls/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exclude native_widget_win_unittest too Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/table/table_view2.h ('k') | ui/views/controls/table/table_view_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "views/controls/table/table_view2.h" 5 #include "ui/views/controls/table/table_view2.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/models/table_model.h" 8 #include "ui/base/models/table_model.h"
9 #include "ui/views/controls/table/table_view_observer.h"
9 #include "views/controls/native/native_view_host.h" 10 #include "views/controls/native/native_view_host.h"
10 #include "views/controls/table/table_view_observer.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 TableView2::TableView2(ui::TableModel* model, 14 TableView2::TableView2(ui::TableModel* model,
15 const std::vector<ui::TableColumn>& columns, 15 const std::vector<ui::TableColumn>& columns,
16 TableTypes table_type, 16 TableTypes table_type,
17 int options) 17 int options)
18 : model_(model), 18 : model_(model),
19 table_type_(table_type), 19 table_type_(table_type),
20 table_view_observer_(NULL), 20 table_view_observer_(NULL),
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 325
326 ui::TableColumn TableView2::GetVisibleColumnAt(int index) { 326 ui::TableColumn TableView2::GetVisibleColumnAt(int index) {
327 DCHECK(index < static_cast<int>(visible_columns_.size())); 327 DCHECK(index < static_cast<int>(visible_columns_.size()));
328 std::map<int, ui::TableColumn>::iterator iter = 328 std::map<int, ui::TableColumn>::iterator iter =
329 all_columns_.find(index); 329 all_columns_.find(index);
330 DCHECK(iter != all_columns_.end()); 330 DCHECK(iter != all_columns_.end());
331 return iter->second; 331 return iter->second;
332 } 332 }
333 333
334 } // namespace views 334 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/table/table_view2.h ('k') | ui/views/controls/table/table_view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698