OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 void Show(gfx::NativeWindow parent); | 115 void Show(gfx::NativeWindow parent); |
116 | 116 |
117 // views::ContextMenuController: | 117 // views::ContextMenuController: |
118 void ShowContextMenuForView(views::View* source, | 118 void ShowContextMenuForView(views::View* source, |
119 const gfx::Point& point, | 119 const gfx::Point& point, |
120 ui::MenuSourceType source_type) override; | 120 ui::MenuSourceType source_type) override; |
121 | 121 |
122 private: | 122 private: |
123 friend class BookmarkEditorViewTest; | 123 friend class BookmarkEditorViewTest; |
124 | 124 |
125 // views::DialogDelegateView: | |
126 const char* GetClassName() const override; | |
127 | |
125 // Creates the necessary sub-views, configures them, adds them to the layout, | 128 // Creates the necessary sub-views, configures them, adds them to the layout, |
126 // and requests the entries to display from the database. | 129 // and requests the entries to display from the database. |
127 void Init(); | 130 void Init(); |
Peter Kasting
2015/01/24 02:20:59
Nit: Since there are now overrides above and below
oshima
2015/01/26 19:48:18
Done.
| |
128 | 131 |
129 // bookmarks::BookmarkModelObserver: | 132 // bookmarks::BookmarkModelObserver: |
130 // Any structural change results in resetting the tree model. | 133 // Any structural change results in resetting the tree model. |
131 void BookmarkModelLoaded(bookmarks::BookmarkModel* model, | 134 void BookmarkModelLoaded(bookmarks::BookmarkModel* model, |
132 bool ids_reassigned) override {} | 135 bool ids_reassigned) override {} |
133 void BookmarkNodeMoved(bookmarks::BookmarkModel* model, | 136 void BookmarkNodeMoved(bookmarks::BookmarkModel* model, |
134 const BookmarkNode* old_parent, | 137 const BookmarkNode* old_parent, |
135 int old_index, | 138 int old_index, |
136 const BookmarkNode* new_parent, | 139 const BookmarkNode* new_parent, |
137 int new_index) override; | 140 int new_index) override; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
262 // Is the tree shown? | 265 // Is the tree shown? |
263 bool show_tree_; | 266 bool show_tree_; |
264 | 267 |
265 // List of deleted bookmark folders. | 268 // List of deleted bookmark folders. |
266 std::vector<int64> deletes_; | 269 std::vector<int64> deletes_; |
267 | 270 |
268 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); | 271 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); |
269 }; | 272 }; |
270 | 273 |
271 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ | 274 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ |
OLD | NEW |