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

Side by Side Diff: chrome/browser/bookmarks/bookmark_table_model.h

Issue 21315: Add TableModel to the scaffold, so we don't depend on views. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « no previous file | chrome/browser/bookmarks/bookmark_table_model.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_BOOKMARKS_BOOKMARK_TABLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_TABLE_MODEL_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_TABLE_MODEL_H_ 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_TABLE_MODEL_H_
7 7
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9
10 #include "build/build_config.h"
11
12 #if defined(OS_WIN)
9 #include "chrome/views/table_view.h" 13 #include "chrome/views/table_view.h"
14 #elif defined(OS_POSIX)
15 #include "chrome/common/temp_scaffolding_stubs.h"
16 #endif
10 17
11 // BookmarkTableModel provides a view of the BookmarkModel as a TableModel. 18 // BookmarkTableModel provides a view of the BookmarkModel as a TableModel.
12 // Three variations are provided: 19 // Three variations are provided:
13 // . Recently created bookmarks. 20 // . Recently created bookmarks.
14 // . The children of a particular folder. 21 // . The children of a particular folder.
15 // . All bookmarks matching the specified text. 22 // . All bookmarks matching the specified text.
16 class BookmarkTableModel : public views::TableModel, 23 class BookmarkTableModel : public views::TableModel,
17 public BookmarkModelObserver { 24 public BookmarkModelObserver {
18 public: 25 public:
19 // Methods for creating the various BookmarkTableModels. Ownership passes 26 // Methods for creating the various BookmarkTableModels. Ownership passes
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Builds the path shown in the path column for the specified node. 64 // Builds the path shown in the path column for the specified node.
58 void BuildPath(BookmarkNode* node, std::wstring* path); 65 void BuildPath(BookmarkNode* node, std::wstring* path);
59 66
60 BookmarkModel* model_; 67 BookmarkModel* model_;
61 views::TableModelObserver* observer_; 68 views::TableModelObserver* observer_;
62 69
63 DISALLOW_COPY_AND_ASSIGN(BookmarkTableModel); 70 DISALLOW_COPY_AND_ASSIGN(BookmarkTableModel);
64 }; 71 };
65 72
66 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_TABLE_MODEL_H_ 73 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_TABLE_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_table_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698