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

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

Issue 11639042: views: Convert scoped_arrays to the new scoped_ptr style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | ui/views/painter.cc » ('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) 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_WIN_H_ 5 #ifndef UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_WIN_H_
6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_WIN_H_ 6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_WIN_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 485
486 // The preferred size of the table view. 486 // The preferred size of the table view.
487 gfx::Size preferred_size_; 487 gfx::Size preferred_size_;
488 488
489 int content_offset_; 489 int content_offset_;
490 490
491 // Current sort. 491 // Current sort.
492 SortDescriptors sort_descriptors_; 492 SortDescriptors sort_descriptors_;
493 493
494 // Mappings used when sorted. 494 // Mappings used when sorted.
495 scoped_array<int> view_to_model_; 495 scoped_ptr<int[]> view_to_model_;
496 scoped_array<int> model_to_view_; 496 scoped_ptr<int[]> model_to_view_;
497 497
498 string16 alt_text_; 498 string16 alt_text_;
499 499
500 DISALLOW_COPY_AND_ASSIGN(TableView); 500 DISALLOW_COPY_AND_ASSIGN(TableView);
501 }; 501 };
502 #endif // defined(OS_WIN) 502 #endif // defined(OS_WIN)
503 503
504 } // namespace views 504 } // namespace views
505 505
506 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_WIN_H_ 506 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698