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

Side by Side Diff: app/table_model_observer.h

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « app/table_model.h ('k') | app/tree_model.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 APP_TABLE_MODEL_OBSERVER_H_ 5 #ifndef APP_TABLE_MODEL_OBSERVER_H_
6 #define APP_TABLE_MODEL_OBSERVER_H_ 6 #define APP_TABLE_MODEL_OBSERVER_H_
7 7
8 // Observer for a TableModel. Anytime the model changes, it must notify its 8 // Observer for a TableModel. Anytime the model changes, it must notify its
9 // observer. 9 // observer.
10 class TableModelObserver { 10 class TableModelObserver {
11 public: 11 public:
12 // Invoked when the model has been completely changed. 12 // Invoked when the model has been completely changed.
13 virtual void OnModelChanged() = 0; 13 virtual void OnModelChanged() = 0;
14 14
15 // Invoked when a range of items has changed. 15 // Invoked when a range of items has changed.
16 virtual void OnItemsChanged(int start, int length) = 0; 16 virtual void OnItemsChanged(int start, int length) = 0;
17 17
18 // Invoked when new items are added. 18 // Invoked when new items are added.
19 virtual void OnItemsAdded(int start, int length) = 0; 19 virtual void OnItemsAdded(int start, int length) = 0;
20 20
21 // Invoked when a range of items has been removed. 21 // Invoked when a range of items has been removed.
22 virtual void OnItemsRemoved(int start, int length) = 0; 22 virtual void OnItemsRemoved(int start, int length) = 0;
23
24 protected:
25 ~TableModelObserver() {}
26 }; 23 };
27 24
28 #endif // APP_TABLE_MODEL_OBSERVER_H_ 25 #endif // APP_TABLE_MODEL_OBSERVER_H_
OLDNEW
« no previous file with comments | « app/table_model.h ('k') | app/tree_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698