| 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_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/menus/simple_menu_model.h" | 9 #include "app/menus/simple_menu_model.h" |
| 10 #include "app/tree_node_model.h" | 10 #include "app/tree_node_model.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 76 |
| 77 virtual ~BookmarkEditorView(); | 77 virtual ~BookmarkEditorView(); |
| 78 | 78 |
| 79 // DialogDelegate methods: | 79 // DialogDelegate methods: |
| 80 virtual bool IsDialogButtonEnabled( | 80 virtual bool IsDialogButtonEnabled( |
| 81 MessageBoxFlags::DialogButton button) const; | 81 MessageBoxFlags::DialogButton button) const; |
| 82 virtual bool IsModal() const; | 82 virtual bool IsModal() const; |
| 83 virtual bool CanResize() const; |
| 83 virtual std::wstring GetWindowTitle() const; | 84 virtual std::wstring GetWindowTitle() const; |
| 84 virtual bool Accept(); | 85 virtual bool Accept(); |
| 85 virtual bool AreAcceleratorsEnabled(MessageBoxFlags::DialogButton button); | 86 virtual bool AreAcceleratorsEnabled(MessageBoxFlags::DialogButton button); |
| 86 virtual views::View* GetContentsView(); | 87 virtual views::View* GetContentsView(); |
| 87 | 88 |
| 88 // View methods. | 89 // View methods. |
| 89 virtual void Layout(); | 90 virtual void Layout(); |
| 90 virtual gfx::Size GetPreferredSize(); | 91 virtual gfx::Size GetPreferredSize(); |
| 91 virtual void ViewHierarchyChanged(bool is_add, views::View* parent, | 92 virtual void ViewHierarchyChanged(bool is_add, views::View* parent, |
| 92 views::View* child); | 93 views::View* child); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // nodes. | 257 // nodes. |
| 257 bool running_menu_for_root_; | 258 bool running_menu_for_root_; |
| 258 | 259 |
| 259 // Is the tree shown? | 260 // Is the tree shown? |
| 260 bool show_tree_; | 261 bool show_tree_; |
| 261 | 262 |
| 262 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); | 263 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ | 266 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARK_EDITOR_VIEW_H_ |
| OLD | NEW |