| OLD | NEW |
| 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 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // Expands all the children of the selected folder. | 70 // Expands all the children of the selected folder. |
| 71 void ExpandAll(BookmarkNode* node); | 71 void ExpandAll(BookmarkNode* node); |
| 72 | 72 |
| 73 // Returns the selected folder in the tree, which may be null. | 73 // Returns the selected folder in the tree, which may be null. |
| 74 BookmarkNode* GetSelectedFolder(); | 74 BookmarkNode* GetSelectedFolder(); |
| 75 | 75 |
| 76 // Returns the selection of the table. | 76 // Returns the selection of the table. |
| 77 std::vector<BookmarkNode*> GetSelectedTableNodes(); | 77 std::vector<BookmarkNode*> GetSelectedTableNodes(); |
| 78 | 78 |
| 79 virtual void PaintBackground(ChromeCanvas* canvas); | 79 virtual void PaintBackground(gfx::Canvas* canvas); |
| 80 | 80 |
| 81 virtual gfx::Size GetPreferredSize(); | 81 virtual gfx::Size GetPreferredSize(); |
| 82 | 82 |
| 83 // WindowDelegate methods. | 83 // WindowDelegate methods. |
| 84 virtual bool CanResize() const { return true; } | 84 virtual bool CanResize() const { return true; } |
| 85 virtual bool CanMaximize() const { return true; } | 85 virtual bool CanMaximize() const { return true; } |
| 86 virtual std::wstring GetWindowTitle() const; | 86 virtual std::wstring GetWindowTitle() const; |
| 87 virtual std::wstring GetWindowName() const; | 87 virtual std::wstring GetWindowName() const; |
| 88 virtual View* GetContentsView() { return this; } | 88 virtual View* GetContentsView() { return this; } |
| 89 // TODO(sky): implement these when we have an icon. | 89 // TODO(sky): implement these when we have an icon. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // Import/export file dialog. | 212 // Import/export file dialog. |
| 213 scoped_refptr<SelectFileDialog> select_file_dialog_; | 213 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 214 | 214 |
| 215 // Factory used for delaying search. | 215 // Factory used for delaying search. |
| 216 ScopedRunnableMethodFactory<BookmarkManagerView> search_factory_; | 216 ScopedRunnableMethodFactory<BookmarkManagerView> search_factory_; |
| 217 | 217 |
| 218 DISALLOW_COPY_AND_ASSIGN(BookmarkManagerView); | 218 DISALLOW_COPY_AND_ASSIGN(BookmarkManagerView); |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_ | 221 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_ |
| OLD | NEW |