| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 bool HandleKeyEvent(views::Textfield* sender, | 102 bool HandleKeyEvent(views::Textfield* sender, |
| 103 const ui::KeyEvent& key_event) override; | 103 const ui::KeyEvent& key_event) override; |
| 104 | 104 |
| 105 // views::ButtonListener: | 105 // views::ButtonListener: |
| 106 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 106 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 107 | 107 |
| 108 // ui::SimpleMenuModel::Delegate: | 108 // ui::SimpleMenuModel::Delegate: |
| 109 bool IsCommandIdChecked(int command_id) const override; | 109 bool IsCommandIdChecked(int command_id) const override; |
| 110 bool IsCommandIdEnabled(int command_id) const override; | 110 bool IsCommandIdEnabled(int command_id) const override; |
| 111 bool GetAcceleratorForCommandId(int command_id, | 111 bool GetAcceleratorForCommandId(int command_id, |
| 112 ui::Accelerator* accelerator) override; | 112 ui::Accelerator* accelerator) const override; |
| 113 void ExecuteCommand(int command_id, int event_flags) override; | 113 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 // views::ContextMenuController: | 119 // views::ContextMenuController: |
| 120 void ShowContextMenuForView(views::View* source, | 120 void ShowContextMenuForView(views::View* source, |
| 121 const gfx::Point& point, | 121 const gfx::Point& point, |
| 122 ui::MenuSourceType source_type) override; | 122 ui::MenuSourceType source_type) override; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // Is the tree shown? | 269 // Is the tree shown? |
| 270 bool show_tree_; | 270 bool show_tree_; |
| 271 | 271 |
| 272 // List of deleted bookmark folders. | 272 // List of deleted bookmark folders. |
| 273 std::vector<int64_t> deletes_; | 273 std::vector<int64_t> deletes_; |
| 274 | 274 |
| 275 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); | 275 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ | 278 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ |
| OLD | NEW |