| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 virtual void ExecuteCommand(int command_id) OVERRIDE; | 119 virtual void ExecuteCommand(int command_id) OVERRIDE; |
| 120 | 120 |
| 121 // Creates a Window and adds the BookmarkEditorView to it. When the window is | 121 // Creates a Window and adds the BookmarkEditorView to it. When the window is |
| 122 // closed the BookmarkEditorView is deleted. | 122 // closed the BookmarkEditorView is deleted. |
| 123 void Show(gfx::NativeWindow parent_hwnd); | 123 void Show(gfx::NativeWindow parent_hwnd); |
| 124 | 124 |
| 125 // Closes the dialog. | 125 // Closes the dialog. |
| 126 void Close(); | 126 void Close(); |
| 127 | 127 |
| 128 // views::ContextMenuController: | 128 // views::ContextMenuController: |
| 129 virtual void ShowContextMenuForView(View* source, | 129 virtual void ShowContextMenuForView(views::View* source, |
| 130 const gfx::Point& p, | 130 const gfx::Point& point) OVERRIDE; |
| 131 bool is_mouse_gesture) OVERRIDE; | |
| 132 | 131 |
| 133 private: | 132 private: |
| 134 friend class BookmarkEditorViewTest; | 133 friend class BookmarkEditorViewTest; |
| 135 | 134 |
| 136 // Creates the necessary sub-views, configures them, adds them to the layout, | 135 // Creates the necessary sub-views, configures them, adds them to the layout, |
| 137 // and requests the entries to display from the database. | 136 // and requests the entries to display from the database. |
| 138 void Init(); | 137 void Init(); |
| 139 | 138 |
| 140 // BookmarkModel observer methods. Any structural change results in | 139 // BookmarkModel observer methods. Any structural change results in |
| 141 // resetting the tree model. | 140 // resetting the tree model. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 // Is the tree shown? | 270 // Is the tree shown? |
| 272 bool show_tree_; | 271 bool show_tree_; |
| 273 | 272 |
| 274 // List of deleted bookmark folders. | 273 // List of deleted bookmark folders. |
| 275 std::vector<int64> deletes_; | 274 std::vector<int64> deletes_; |
| 276 | 275 |
| 277 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); | 276 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); |
| 278 }; | 277 }; |
| 279 | 278 |
| 280 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ | 279 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ |
| OLD | NEW |