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

Side by Side Diff: chrome/views/table_view.h

Issue 20112: Cleanup forward declared classes that are not needed. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/views/native_control.h ('k') | chrome/views/view.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_TABLE_VIEW_H_ 5 #ifndef CHROME_VIEWS_TABLE_VIEW_H_
6 #define CHROME_VIEWS_TABLE_VIEW_H_ 6 #define CHROME_VIEWS_TABLE_VIEW_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <windows.h> 11 #include <windows.h>
12 #endif // defined(OS_WIN) 12 #endif // defined(OS_WIN)
13 13
14 #include <map> 14 #include <map>
15 #include <unicode/coll.h> 15 #include <unicode/coll.h>
16 #include <unicode/uchar.h> 16 #include <unicode/uchar.h>
17 #include <vector> 17 #include <vector>
18 18
19 #include "base/logging.h" 19 #include "base/logging.h"
20 #include "chrome/common/l10n_util.h" 20 #include "chrome/common/l10n_util.h"
21 #if defined(OS_WIN) 21 #if defined(OS_WIN)
22 // TODO(port): remove the ifdef when native_control.h is ported. 22 // TODO(port): remove the ifdef when native_control.h is ported.
23 #include "chrome/views/native_control.h" 23 #include "chrome/views/native_control.h"
24 #endif // defined(OS_WIN) 24 #endif // defined(OS_WIN)
25 #include "SkColor.h" 25 #include "skia/include/SkColor.h"
26 26
27 class SkBitmap; 27 class SkBitmap;
28 28
29 // A TableView is a view that displays multiple rows with any number of columns. 29 // A TableView is a view that displays multiple rows with any number of columns.
30 // TableView is driven by a TableModel. The model returns the contents 30 // TableView is driven by a TableModel. The model returns the contents
31 // to display. TableModel also has an Observer which is used to notify 31 // to display. TableModel also has an Observer which is used to notify
32 // TableView of changes to the model so that the display may be updated 32 // TableView of changes to the model so that the display may be updated
33 // appropriately. 33 // appropriately.
34 // 34 //
35 // TableView itself has an observer that is notified when the selection 35 // TableView itself has an observer that is notified when the selection
36 // changes. 36 // changes.
37 // 37 //
38 // Tables may be sorted either by directly invoking SetSortDescriptors or by 38 // Tables may be sorted either by directly invoking SetSortDescriptors or by
39 // marking the column as sortable and the user doing a gesture to sort the 39 // marking the column as sortable and the user doing a gesture to sort the
40 // contents. TableView itself maintains the sort so that the underlying model 40 // contents. TableView itself maintains the sort so that the underlying model
41 // isn't effected. 41 // isn't effected.
42 // 42 //
43 // When a table is sorted the model coordinates do not necessarily match the 43 // When a table is sorted the model coordinates do not necessarily match the
44 // view coordinates. All table methods are in terms of the model. If you need to 44 // view coordinates. All table methods are in terms of the model. If you need to
45 // convert to view coordinates use model_to_view. 45 // convert to view coordinates use model_to_view.
46 // 46 //
47 // Sorting is done by a locale sensitive string sort. You can customize the 47 // Sorting is done by a locale sensitive string sort. You can customize the
48 // sort by way of overriding CompareValues. 48 // sort by way of overriding CompareValues.
49 // 49 //
50 // TableView is a wrapper around the window type ListView in report mode. 50 // TableView is a wrapper around the window type ListView in report mode.
51 namespace views { 51 namespace views {
52 52
53 class HWNDView;
54 class ListView; 53 class ListView;
55 class ListViewParent; 54 class ListViewParent;
56 class TableView; 55 class TableView;
57 struct TableColumn; 56 struct TableColumn;
58 57
59 // The cells in the first column of a table can contain: 58 // The cells in the first column of a table can contain:
60 // - only text 59 // - only text
61 // - a small icon (16x16) and some text 60 // - a small icon (16x16) and some text
62 // - a check box and some text 61 // - a check box and some text
63 enum TableTypes { 62 enum TableTypes {
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 scoped_array<int> view_to_model_; 667 scoped_array<int> view_to_model_;
669 scoped_array<int> model_to_view_; 668 scoped_array<int> model_to_view_;
670 669
671 DISALLOW_COPY_AND_ASSIGN(TableView); 670 DISALLOW_COPY_AND_ASSIGN(TableView);
672 }; 671 };
673 #endif // defined(OS_WIN) 672 #endif // defined(OS_WIN)
674 673
675 } // namespace views 674 } // namespace views
676 675
677 #endif // CHROME_VIEWS_TABLE_VIEW_H_ 676 #endif // CHROME_VIEWS_TABLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/views/native_control.h ('k') | chrome/views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698