| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |