blob: d093102fbe971ac1d41c0d52be0bf10d572d1e03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_CONTROLS_TABLE_TEST_TABLE_MODEL_H_
#define UI_VIEWS_CONTROLS_TABLE_TEST_TABLE_MODEL_H_
#include "base/compiler_specific.h"
#include "ui/base/models/table_model.h"
class TestTableModel : public ui::TableModel {
public:
explicit TestTableModel(int row_count);
virtual ~TestTableModel();
// ui::TableModel overrides:
virtual int RowCount() OVERRIDE;
virtual string16 GetText(int row, int column_id) OVERRIDE;
virtual gfx::ImageSkia GetIcon(int row) OVERRIDE;
virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE;
private:
int row_count_;
ui::TableModelObserver* observer_;
DISALLOW_COPY_AND_ASSIGN(TestTableModel);
};
#endif // UI_VIEWS_CONTROLS_TABLE_TEST_TABLE_MODEL_H_
|