diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 11:40:04 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 11:40:04 +0000 |
commit | 1a5c97540834be79830865a401368c75f3138381 (patch) | |
tree | 433545cba236b0c628ae8d0002ccf98bce5411ce /views/examples/table_example.h | |
parent | 7d121994978c05073f4d63bf44311465fcdb2251 (diff) | |
download | chromium_src-1a5c97540834be79830865a401368c75f3138381.zip chromium_src-1a5c97540834be79830865a401368c75f3138381.tar.gz chromium_src-1a5c97540834be79830865a401368c75f3138381.tar.bz2 |
views: Move the implementation of more examples from header to source file.
BUG=None
TEST=run out/Debug/views_examples, everything should works as before.
Review URL: http://codereview.chromium.org/6347030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/examples/table_example.h')
-rw-r--r-- | views/examples/table_example.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/views/examples/table_example.h b/views/examples/table_example.h index a9e6ebc..081e0de 100644 --- a/views/examples/table_example.h +++ b/views/examples/table_example.h @@ -15,17 +15,14 @@ #include "views/controls/table/table_view_observer.h" #include "views/examples/example_base.h" #include "views/layout/fill_layout.h" - -using ui::TableModel; -using ui::TableModelObserver; // TODO(beng): remove these +#include "views/layout/grid_layout.h" namespace examples { -class TableExample - : public ExampleBase, - public TableModel, - public views::ButtonListener, - public views::TableViewObserver { +class TableExample : public ExampleBase, + public ui::TableModel, + public views::ButtonListener, + public views::TableViewObserver { public: explicit TableExample(ExamplesMain* main) : ExampleBase(main) { } @@ -95,7 +92,7 @@ class TableExample layout->AddView(column4_visible_checkbox_); } - // TableModel implementation: + // Overridden from ui::TableModel: virtual int RowCount() { return 10; } @@ -115,10 +112,10 @@ class TableExample return row % 2 ? icon1 : icon2; } - virtual void SetObserver(TableModelObserver* observer) { + virtual void SetObserver(ui::TableModelObserver* observer) { } - // TableViewObserver implementation: + // Overridden from views::TableViewObserver: virtual void OnSelectionChanged() { PrintStatus(L"Selection changed"); } |