| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; | 113 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; |
| 114 | 114 |
| 115 // Creates a Window and adds the BookmarkEditorView to it. When the window is | 115 // Creates a Window and adds the BookmarkEditorView to it. When the window is |
| 116 // closed the BookmarkEditorView is deleted. | 116 // closed the BookmarkEditorView is deleted. |
| 117 void Show(gfx::NativeWindow parent); | 117 void Show(gfx::NativeWindow parent); |
| 118 | 118 |
| 119 // Closes the dialog. | 119 // Closes the dialog. |
| 120 void Close(); | 120 void Close(); |
| 121 | 121 |
| 122 // views::ContextMenuController: | 122 // views::ContextMenuController: |
| 123 virtual void ShowContextMenuForView(views::View* source, | 123 virtual void ShowContextMenuForView( |
| 124 const gfx::Point& point) OVERRIDE; | 124 views::View* source, |
| 125 const gfx::Point& point, |
| 126 ui::ContextMenuSourceType source_type) OVERRIDE; |
| 125 | 127 |
| 126 private: | 128 private: |
| 127 friend class BookmarkEditorViewTest; | 129 friend class BookmarkEditorViewTest; |
| 128 | 130 |
| 129 // Creates the necessary sub-views, configures them, adds them to the layout, | 131 // Creates the necessary sub-views, configures them, adds them to the layout, |
| 130 // and requests the entries to display from the database. | 132 // and requests the entries to display from the database. |
| 131 void Init(); | 133 void Init(); |
| 132 | 134 |
| 133 // BookmarkModel observer methods. Any structural change results in | 135 // BookmarkModel observer methods. Any structural change results in |
| 134 // resetting the tree model. | 136 // resetting the tree model. |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // Is the tree shown? | 264 // Is the tree shown? |
| 263 bool show_tree_; | 265 bool show_tree_; |
| 264 | 266 |
| 265 // List of deleted bookmark folders. | 267 // List of deleted bookmark folders. |
| 266 std::vector<int64> deletes_; | 268 std::vector<int64> deletes_; |
| 267 | 269 |
| 268 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); | 270 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); |
| 269 }; | 271 }; |
| 270 | 272 |
| 271 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ | 273 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ |
| OLD | NEW |