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

Unified Diff: ui/views/examples/table_example.h

Issue 11827007: Couple of tweaks for tables: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comment Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/table/table_view_views.cc ('k') | ui/views/examples/table_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/table_example.h
diff --git a/ui/views/examples/table_example.h b/ui/views/examples/table_example.h
index f7ed268647ee96a3b55aae9362eb41e4674d2f7d..8eab347b5a110cda4ca8ab864ecd3b0b22aba5d5 100644
--- a/ui/views/examples/table_example.h
+++ b/ui/views/examples/table_example.h
@@ -12,6 +12,7 @@
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/models/table_model.h"
#include "ui/views/controls/button/button.h"
+#include "ui/views/controls/table/table_grouper.h"
#include "ui/views/controls/table/table_view.h"
#include "ui/views/controls/table/table_view_observer.h"
#include "ui/views/examples/example_base.h"
@@ -27,10 +28,12 @@ class TableView;
namespace examples {
-class TableExample : public ExampleBase,
- public ui::TableModel,
- public TableViewObserver,
- public ButtonListener {
+class TableExample
+ : public ExampleBase,
+ public ui::TableModel,
+ public views::TableGrouper,
tfarina 2013/01/08 23:01:24 nit: you shouldn't need views:: here, as TableExam
+ public TableViewObserver,
+ public ButtonListener {
public:
TableExample();
virtual ~TableExample();
@@ -44,6 +47,9 @@ class TableExample : public ExampleBase,
virtual gfx::ImageSkia GetIcon(int row) OVERRIDE;
virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE;
+ // views::TableGrouper:
+ virtual void GetGroupRange(int model_index, GroupRange* range) OVERRIDE;
+
// TableViewObserver:
virtual void OnSelectionChanged() OVERRIDE;
virtual void OnDoubleClick() OVERRIDE;
« no previous file with comments | « ui/views/controls/table/table_view_views.cc ('k') | ui/views/examples/table_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698