Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_editor_view.h

Issue 869453002: Define class names for views class in c/b/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // Creates the necessary sub-views, configures them, adds them to the layout, 125 // views::DialogDelegateView:
126 // and requests the entries to display from the database. 126 const char* GetClassName() const override;
127 void Init();
128 127
129 // bookmarks::BookmarkModelObserver: 128 // bookmarks::BookmarkModelObserver:
130 // Any structural change results in resetting the tree model. 129 // Any structural change results in resetting the tree model.
131 void BookmarkModelLoaded(bookmarks::BookmarkModel* model, 130 void BookmarkModelLoaded(bookmarks::BookmarkModel* model,
132 bool ids_reassigned) override {} 131 bool ids_reassigned) override {}
133 void BookmarkNodeMoved(bookmarks::BookmarkModel* model, 132 void BookmarkNodeMoved(bookmarks::BookmarkModel* model,
134 const BookmarkNode* old_parent, 133 const BookmarkNode* old_parent,
135 int old_index, 134 int old_index,
136 const BookmarkNode* new_parent, 135 const BookmarkNode* new_parent,
137 int new_index) override; 136 int new_index) override;
138 void BookmarkNodeAdded(bookmarks::BookmarkModel* model, 137 void BookmarkNodeAdded(bookmarks::BookmarkModel* model,
139 const BookmarkNode* parent, 138 const BookmarkNode* parent,
140 int index) override; 139 int index) override;
141 void BookmarkNodeRemoved(bookmarks::BookmarkModel* model, 140 void BookmarkNodeRemoved(bookmarks::BookmarkModel* model,
142 const BookmarkNode* parent, 141 const BookmarkNode* parent,
143 int index, 142 int index,
144 const BookmarkNode* node, 143 const BookmarkNode* node,
145 const std::set<GURL>& removed_urls) override; 144 const std::set<GURL>& removed_urls) override;
146 void BookmarkAllUserNodesRemoved(bookmarks::BookmarkModel* model, 145 void BookmarkAllUserNodesRemoved(bookmarks::BookmarkModel* model,
147 const std::set<GURL>& removed_urls) override; 146 const std::set<GURL>& removed_urls) override;
148 void BookmarkNodeChanged(bookmarks::BookmarkModel* model, 147 void BookmarkNodeChanged(bookmarks::BookmarkModel* model,
149 const BookmarkNode* node) override {} 148 const BookmarkNode* node) override {}
150 void BookmarkNodeChildrenReordered(bookmarks::BookmarkModel* model, 149 void BookmarkNodeChildrenReordered(bookmarks::BookmarkModel* model,
151 const BookmarkNode* node) override; 150 const BookmarkNode* node) override;
152 void BookmarkNodeFaviconChanged(bookmarks::BookmarkModel* model, 151 void BookmarkNodeFaviconChanged(bookmarks::BookmarkModel* model,
153 const BookmarkNode* node) override {} 152 const BookmarkNode* node) override {}
154 153
154 // Creates the necessary sub-views, configures them, adds them to the layout,
155 // and requests the entries to display from the database.
156 void Init();
157
155 // Resets the model of the tree and updates the various buttons appropriately. 158 // Resets the model of the tree and updates the various buttons appropriately.
156 void Reset(); 159 void Reset();
157 160
158 // Expands all the nodes in the tree and selects the parent node of the 161 // Expands all the nodes in the tree and selects the parent node of the
159 // url we're editing or the most recent parent if the url being editted isn't 162 // url we're editing or the most recent parent if the url being editted isn't
160 // starred. 163 // starred.
161 void ExpandAndSelect(); 164 void ExpandAndSelect();
162 165
163 // Creates a returns the new root node. This invokes CreateNodes to do 166 // Creates a returns the new root node. This invokes CreateNodes to do
164 // the real work. 167 // the real work.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698