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_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_CONTROLLER_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" | 10 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" |
11 #include "chrome/browser/input_window_dialog.h" | 11 #include "chrome/browser/ui/input_window_dialog.h" |
12 #include "gfx/native_widget_types.h" | 12 #include "gfx/native_widget_types.h" |
13 | 13 |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 // BookmarkFolderEditorController manages the editing and/or creation of a | 16 // BookmarkFolderEditorController manages the editing and/or creation of a |
17 // folder. If the user presses ok, the name change is committed to the model. | 17 // folder. If the user presses ok, the name change is committed to the model. |
18 // | 18 // |
19 // BookmarkFolderEditorController deletes itself when the window is closed. | 19 // BookmarkFolderEditorController deletes itself when the window is closed. |
20 class BookmarkFolderEditorController : public InputWindowDialog::Delegate, | 20 class BookmarkFolderEditorController : public InputWindowDialog::Delegate, |
21 public BaseBookmarkModelObserver { | 21 public BaseBookmarkModelObserver { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 int index_; | 61 int index_; |
62 | 62 |
63 const bool is_new_; | 63 const bool is_new_; |
64 | 64 |
65 InputWindowDialog* dialog_; | 65 InputWindowDialog* dialog_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(BookmarkFolderEditorController); | 67 DISALLOW_COPY_AND_ASSIGN(BookmarkFolderEditorController); |
68 }; | 68 }; |
69 | 69 |
70 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_CONTROLLER_H_ | 70 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_EDITOR_CONTROLLER_H_ |
OLD | NEW |