| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EDITOR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_EDITOR_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_EDITOR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_EDITOR_VIEW_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "app/menus/simple_menu_model.h" | 10 #include "app/menus/simple_menu_model.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 TreeNodeModel::SetTitle(node, title); | 65 TreeNodeModel::SetTitle(node, title); |
| 66 } | 66 } |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 DISALLOW_COPY_AND_ASSIGN(EditorTreeModel); | 69 DISALLOW_COPY_AND_ASSIGN(EditorTreeModel); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 BookmarkEditorView(Profile* profile, | 72 BookmarkEditorView(Profile* profile, |
| 73 const BookmarkNode* parent, | 73 const BookmarkNode* parent, |
| 74 const EditDetails& details, | 74 const EditDetails& details, |
| 75 BookmarkEditor::Configuration configuration, | 75 BookmarkEditor::Configuration configuration); |
| 76 BookmarkEditor::Handler* handler); | |
| 77 | 76 |
| 78 virtual ~BookmarkEditorView(); | 77 virtual ~BookmarkEditorView(); |
| 79 | 78 |
| 80 // DialogDelegate methods: | 79 // DialogDelegate methods: |
| 81 virtual bool IsDialogButtonEnabled( | 80 virtual bool IsDialogButtonEnabled( |
| 82 MessageBoxFlags::DialogButton button) const; | 81 MessageBoxFlags::DialogButton button) const; |
| 83 virtual bool IsModal() const; | 82 virtual bool IsModal() const; |
| 84 virtual std::wstring GetWindowTitle() const; | 83 virtual std::wstring GetWindowTitle() const; |
| 85 virtual bool Accept(); | 84 virtual bool Accept(); |
| 86 virtual bool AreAcceleratorsEnabled(MessageBoxFlags::DialogButton button); | 85 virtual bool AreAcceleratorsEnabled(MessageBoxFlags::DialogButton button); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // Mode used to create nodes from. | 252 // Mode used to create nodes from. |
| 254 BookmarkModel* bb_model_; | 253 BookmarkModel* bb_model_; |
| 255 | 254 |
| 256 // If true, we're running the menu for the bookmark bar or other bookmarks | 255 // If true, we're running the menu for the bookmark bar or other bookmarks |
| 257 // nodes. | 256 // nodes. |
| 258 bool running_menu_for_root_; | 257 bool running_menu_for_root_; |
| 259 | 258 |
| 260 // Is the tree shown? | 259 // Is the tree shown? |
| 261 bool show_tree_; | 260 bool show_tree_; |
| 262 | 261 |
| 263 scoped_ptr<BookmarkEditor::Handler> handler_; | |
| 264 | |
| 265 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); | 262 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); |
| 266 }; | 263 }; |
| 267 | 264 |
| 268 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_EDITOR_VIEW_H_ | 265 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_EDITOR_VIEW_H_ |
| OLD | NEW |