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

Side by Side Diff: app/table_model_observer.h

Issue 126184: Move TableModel out of views/ and into app/.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: addressed comments, build fixes Created 11 years, 6 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 | « app/table_model.cc ('k') | chrome/browser/bookmarks/bookmark_table_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 VIEWS_CONTROL_TABLE_TABLE_MODEL_OBSERVER_H_ 5 #ifndef APP_TABLE_MODEL_OBSERVER_H_
6 #define VIEWS_CONTROL_TABLE_TABLE_MODEL_OBSERVER_H_ 6 #define APP_TABLE_MODEL_OBSERVER_H_
7
8 namespace views {
9 7
10 // 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
11 // observer. 9 // observer.
12 class TableModelObserver { 10 class TableModelObserver {
13 public: 11 public:
14 // Invoked when the model has been completely changed. 12 // Invoked when the model has been completely changed.
15 virtual void OnModelChanged() = 0; 13 virtual void OnModelChanged() = 0;
16 14
17 // Invoked when a range of items has changed. 15 // Invoked when a range of items has changed.
18 virtual void OnItemsChanged(int start, int length) = 0; 16 virtual void OnItemsChanged(int start, int length) = 0;
19 17
20 // Invoked when new items are added. 18 // Invoked when new items are added.
21 virtual void OnItemsAdded(int start, int length) = 0; 19 virtual void OnItemsAdded(int start, int length) = 0;
22 20
23 // Invoked when a range of items has been removed. 21 // Invoked when a range of items has been removed.
24 virtual void OnItemsRemoved(int start, int length) = 0; 22 virtual void OnItemsRemoved(int start, int length) = 0;
25 }; 23 };
26 24
27 } // namespace views 25 #endif // APP_TABLE_MODEL_OBSERVER_H_
28
29 #endif // VIEWS_CONTROL_TABLE_TABLE_MODEL_OBSERVER_H_
OLDNEW
« no previous file with comments | « app/table_model.cc ('k') | chrome/browser/bookmarks/bookmark_table_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698