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

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

Issue 7617006: views/bookmarks: Fix memory leak in BookmarkEditorView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "chrome/browser/bookmarks/bookmark_editor.h" 11 #include "chrome/browser/bookmarks/bookmark_editor.h"
12 #include "chrome/browser/bookmarks/bookmark_expanded_state_tracker.h" 12 #include "chrome/browser/bookmarks/bookmark_expanded_state_tracker.h"
13 #include "chrome/browser/bookmarks/bookmark_model_observer.h" 13 #include "chrome/browser/bookmarks/bookmark_model_observer.h"
14 #include "testing/gtest/include/gtest/gtest_prod.h" 14 #include "testing/gtest/include/gtest/gtest_prod.h"
15 #include "ui/base/models/simple_menu_model.h" 15 #include "ui/base/models/simple_menu_model.h"
16 #include "ui/base/models/tree_node_model.h" 16 #include "ui/base/models/tree_node_model.h"
17 #include "views/context_menu_controller.h" 17 #include "views/context_menu_controller.h"
18 #include "views/controls/button/button.h" 18 #include "views/controls/button/button.h"
19 #include "views/controls/label.h"
19 #include "views/controls/textfield/textfield.h" 20 #include "views/controls/textfield/textfield.h"
20 #include "views/controls/textfield/textfield_controller.h" 21 #include "views/controls/textfield/textfield_controller.h"
21 #include "views/controls/tree/tree_view.h" 22 #include "views/controls/tree/tree_view.h"
22 #include "views/window/dialog_delegate.h" 23 #include "views/window/dialog_delegate.h"
23 24
24 namespace views { 25 namespace views {
25 class Label;
26 class Menu2; 26 class Menu2;
27 class TextButton; 27 class TextButton;
28 } 28 }
29 29
30 class BookmarkEditorViewTest; 30 class BookmarkEditorViewTest;
31 class GURL; 31 class GURL;
32 class Menu; 32 class Menu;
33 class Profile; 33 class Profile;
34 34
35 // View that allows the user to edit a bookmark/starred URL. The user can 35 // View that allows the user to edit a bookmark/starred URL. The user can
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Model driving the TreeView. 230 // Model driving the TreeView.
231 scoped_ptr<EditorTreeModel> tree_model_; 231 scoped_ptr<EditorTreeModel> tree_model_;
232 232
233 // Displays star folder. 233 // Displays star folder.
234 views::TreeView* tree_view_; 234 views::TreeView* tree_view_;
235 235
236 // Used to create a new folder. 236 // Used to create a new folder.
237 scoped_ptr<views::TextButton> new_folder_button_; 237 scoped_ptr<views::TextButton> new_folder_button_;
238 238
239 // The label for the url text field. 239 // The label for the url text field.
240 views::Label* url_label_; 240 views::Label url_label_;
241 241
242 // Used for editing the URL. 242 // Used for editing the URL.
243 views::Textfield url_tf_; 243 views::Textfield url_tf_;
244 244
245 // The label for the title text field. 245 // The label for the title text field.
246 views::Label* title_label_; 246 views::Label* title_label_;
247 247
248 // Used for editing the title. 248 // Used for editing the title.
249 views::Textfield title_tf_; 249 views::Textfield title_tf_;
250 250
(...skipping 17 matching lines...) Expand all
268 // Is the tree shown? 268 // Is the tree shown?
269 bool show_tree_; 269 bool show_tree_;
270 270
271 // List of deleted bookmark folders. 271 // List of deleted bookmark folders.
272 std::vector<int64> deletes_; 272 std::vector<int64> deletes_;
273 273
274 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); 274 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView);
275 }; 275 };
276 276
277 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ 277 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698