| 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_VIEWS_BOOKMARK_MANAGER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "base/task.h" | 9 #include "base/task.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_context_menu.h" | 10 #include "chrome/browser/bookmarks/bookmark_context_menu.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 int y, | 146 int y, |
| 147 bool is_mouse_gesture); | 147 bool is_mouse_gesture); |
| 148 | 148 |
| 149 // ViewMenuDelegate. | 149 // ViewMenuDelegate. |
| 150 virtual void RunMenu(views::View* source, const CPoint& pt, HWND hwnd); | 150 virtual void RunMenu(views::View* source, const CPoint& pt, HWND hwnd); |
| 151 | 151 |
| 152 // MenuDelegate. | 152 // MenuDelegate. |
| 153 virtual void ExecuteCommand(int id); | 153 virtual void ExecuteCommand(int id); |
| 154 | 154 |
| 155 // SelectFileDialog::Listener. | 155 // SelectFileDialog::Listener. |
| 156 virtual void FileSelected(const std::wstring& path, void* params); | 156 virtual void FileSelected(const std::wstring& path, |
| 157 int index, void* params); |
| 157 virtual void FileSelectionCanceled(void* params); | 158 virtual void FileSelectionCanceled(void* params); |
| 158 | 159 |
| 159 // Creates the table model to use when searching. This returns NULL if there | 160 // Creates the table model to use when searching. This returns NULL if there |
| 160 // is no search text. | 161 // is no search text. |
| 161 BookmarkTableModel* CreateSearchTableModel(); | 162 BookmarkTableModel* CreateSearchTableModel(); |
| 162 | 163 |
| 163 // Sets the model of the table and its parent node. If |is_search| is true, | 164 // Sets the model of the table and its parent node. If |is_search| is true, |
| 164 // it means the table is showing search results. | 165 // it means the table is showing search results. |
| 165 void SetTableModel(BookmarkTableModel* new_table_model, | 166 void SetTableModel(BookmarkTableModel* new_table_model, |
| 166 BookmarkNode* parent_node, | 167 BookmarkNode* parent_node, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // Import/export file dialog. | 212 // Import/export file dialog. |
| 212 scoped_refptr<SelectFileDialog> select_file_dialog_; | 213 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 213 | 214 |
| 214 // Factory used for delaying search. | 215 // Factory used for delaying search. |
| 215 ScopedRunnableMethodFactory<BookmarkManagerView> search_factory_; | 216 ScopedRunnableMethodFactory<BookmarkManagerView> search_factory_; |
| 216 | 217 |
| 217 DISALLOW_COPY_AND_ASSIGN(BookmarkManagerView); | 218 DISALLOW_COPY_AND_ASSIGN(BookmarkManagerView); |
| 218 }; | 219 }; |
| 219 | 220 |
| 220 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_ | 221 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_ |
| OLD | NEW |