| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // ui::SimpleMenuModel::Delegate: | 111 // ui::SimpleMenuModel::Delegate: |
| 112 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 112 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| 113 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 113 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 114 virtual bool GetAcceleratorForCommandId( | 114 virtual bool GetAcceleratorForCommandId( |
| 115 int command_id, | 115 int command_id, |
| 116 ui::Accelerator* accelerator) OVERRIDE; | 116 ui::Accelerator* accelerator) OVERRIDE; |
| 117 virtual void ExecuteCommand(int command_id) OVERRIDE; | 117 virtual void ExecuteCommand(int command_id) OVERRIDE; |
| 118 | 118 |
| 119 // Creates a Window and adds the BookmarkEditorView to it. When the window is | 119 // Creates a Window and adds the BookmarkEditorView to it. When the window is |
| 120 // closed the BookmarkEditorView is deleted. | 120 // closed the BookmarkEditorView is deleted. |
| 121 void Show(gfx::NativeWindow parent_window); | 121 void Show(gfx::NativeWindow parent); |
| 122 | 122 |
| 123 // Closes the dialog. | 123 // Closes the dialog. |
| 124 void Close(); | 124 void Close(); |
| 125 | 125 |
| 126 // views::ContextMenuController: | 126 // views::ContextMenuController: |
| 127 virtual void ShowContextMenuForView(views::View* source, | 127 virtual void ShowContextMenuForView(views::View* source, |
| 128 const gfx::Point& point) OVERRIDE; | 128 const gfx::Point& point) OVERRIDE; |
| 129 | 129 |
| 130 private: | 130 private: |
| 131 friend class BookmarkEditorViewTest; | 131 friend class BookmarkEditorViewTest; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Is the tree shown? | 265 // Is the tree shown? |
| 266 bool show_tree_; | 266 bool show_tree_; |
| 267 | 267 |
| 268 // List of deleted bookmark folders. | 268 // List of deleted bookmark folders. |
| 269 std::vector<int64> deletes_; | 269 std::vector<int64> deletes_; |
| 270 | 270 |
| 271 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); | 271 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ | 274 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ |
| OLD | NEW |