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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. |
90 //virtual SkBitmap GetWindowIcon(); | 90 //virtual SkBitmap GetWindowIcon(); |
91 //virtual bool ShouldShowWindowIcon() const { return true; } | 91 //virtual bool ShouldShowWindowIcon() const { return true; } |
92 virtual void WindowClosing(); | 92 virtual void WindowClosing(); |
93 | 93 |
94 Profile* profile() const { return profile_; } | 94 Profile* profile() const { return profile_; } |
95 | 95 |
| 96 protected: |
| 97 // View methods. |
| 98 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
| 99 |
96 private: | 100 private: |
97 // TableViewObserver methods. | 101 // TableViewObserver methods. |
98 virtual void OnSelectionChanged() {} | 102 virtual void OnSelectionChanged() {} |
99 // Overriden to open the selected table nodes in the current browser. | 103 // Overriden to open the selected table nodes in the current browser. |
100 virtual void OnDoubleClick(); | 104 virtual void OnDoubleClick(); |
101 virtual void OnMiddleClick(); | 105 virtual void OnMiddleClick(); |
102 virtual void OnTableViewDelete(views::TableView* table); | 106 virtual void OnTableViewDelete(views::TableView* table); |
103 virtual void OnKeyDown(unsigned short virtual_keycode); | 107 virtual void OnKeyDown(unsigned short virtual_keycode); |
104 | 108 |
105 // TreeViewController methods. | 109 // TreeViewController methods. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Import/export file dialog. | 216 // Import/export file dialog. |
213 scoped_refptr<SelectFileDialog> select_file_dialog_; | 217 scoped_refptr<SelectFileDialog> select_file_dialog_; |
214 | 218 |
215 // Factory used for delaying search. | 219 // Factory used for delaying search. |
216 ScopedRunnableMethodFactory<BookmarkManagerView> search_factory_; | 220 ScopedRunnableMethodFactory<BookmarkManagerView> search_factory_; |
217 | 221 |
218 DISALLOW_COPY_AND_ASSIGN(BookmarkManagerView); | 222 DISALLOW_COPY_AND_ASSIGN(BookmarkManagerView); |
219 }; | 223 }; |
220 | 224 |
221 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_ | 225 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_ |
OLD | NEW |