| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 109 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 110 virtual bool GetAcceleratorForCommandId( | 110 virtual bool GetAcceleratorForCommandId( |
| 111 int command_id, | 111 int command_id, |
| 112 ui::Accelerator* accelerator) OVERRIDE; | 112 ui::Accelerator* accelerator) OVERRIDE; |
| 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. | |
| 120 void Close(); | |
| 121 | |
| 122 // views::ContextMenuController: | 119 // views::ContextMenuController: |
| 123 virtual void ShowContextMenuForView(views::View* source, | 120 virtual void ShowContextMenuForView(views::View* source, |
| 124 const gfx::Point& point, | 121 const gfx::Point& point, |
| 125 ui::MenuSourceType source_type) OVERRIDE; | 122 ui::MenuSourceType source_type) OVERRIDE; |
| 126 | 123 |
| 127 private: | 124 private: |
| 128 friend class BookmarkEditorViewTest; | 125 friend class BookmarkEditorViewTest; |
| 129 | 126 |
| 130 // Creates the necessary sub-views, configures them, adds them to the layout, | 127 // Creates the necessary sub-views, configures them, adds them to the layout, |
| 131 // and requests the entries to display from the database. | 128 // and requests the entries to display from the database. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // Is the tree shown? | 260 // Is the tree shown? |
| 264 bool show_tree_; | 261 bool show_tree_; |
| 265 | 262 |
| 266 // List of deleted bookmark folders. | 263 // List of deleted bookmark folders. |
| 267 std::vector<int64> deletes_; | 264 std::vector<int64> deletes_; |
| 268 | 265 |
| 269 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); | 266 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); |
| 270 }; | 267 }; |
| 271 | 268 |
| 272 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ | 269 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ |
| OLD | NEW |