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

Side by Side Diff: ui/views/controls/table/table_view.h

Issue 2344703002: Fix task manager's default sizing. (Closed)
Patch Set: rabbit holes Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_ 5 #ifndef UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_
6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_ 6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // TODO(sky): rename to observer_. 334 // TODO(sky): rename to observer_.
335 TableViewObserver* table_view_observer_; 335 TableViewObserver* table_view_observer_;
336 336
337 // The selection, in terms of the model. 337 // The selection, in terms of the model.
338 ui::ListSelectionModel selection_model_; 338 ui::ListSelectionModel selection_model_;
339 339
340 gfx::FontList font_list_; 340 gfx::FontList font_list_;
341 341
342 int row_height_; 342 int row_height_;
343 343
344 // Width of the ScrollView last time Layout() was invoked. Used to determine
345 // when we should invoke UpdateVisibleColumnSizes().
346 int last_parent_width_;
347
348 // The width we layout to. This may differ from |last_parent_width_|.
349 int layout_width_;
350
351 // Current sort. 344 // Current sort.
352 SortDescriptors sort_descriptors_; 345 SortDescriptors sort_descriptors_;
353 346
354 // Mappings used when sorted. 347 // Mappings used when sorted.
355 std::vector<int> view_to_model_; 348 std::vector<int> view_to_model_;
356 std::vector<int> model_to_view_; 349 std::vector<int> model_to_view_;
357 350
358 std::unique_ptr<TableViewRowBackgroundPainter> row_background_painter_; 351 std::unique_ptr<TableViewRowBackgroundPainter> row_background_painter_;
359 352
360 TableGrouper* grouper_; 353 TableGrouper* grouper_;
361 354
362 // True if in SetVisibleColumnWidth(). 355 // True if in SetVisibleColumnWidth().
363 bool in_set_visible_column_width_; 356 bool in_set_visible_column_width_;
364 357
365 DISALLOW_COPY_AND_ASSIGN(TableView); 358 DISALLOW_COPY_AND_ASSIGN(TableView);
366 }; 359 };
367 360
368 } // namespace views 361 } // namespace views
369 362
370 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_ 363 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698