| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_NEW_TASK_MANAGER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void OnKeyDown(ui::KeyboardCode keycode) override; | 81 void OnKeyDown(ui::KeyboardCode keycode) override; |
| 82 | 82 |
| 83 // views::ContextMenuController: | 83 // views::ContextMenuController: |
| 84 void ShowContextMenuForView(views::View* source, | 84 void ShowContextMenuForView(views::View* source, |
| 85 const gfx::Point& point, | 85 const gfx::Point& point, |
| 86 ui::MenuSourceType source_type) override; | 86 ui::MenuSourceType source_type) override; |
| 87 | 87 |
| 88 // ui::SimpleMenuModel::Delegate: | 88 // ui::SimpleMenuModel::Delegate: |
| 89 bool IsCommandIdChecked(int id) const override; | 89 bool IsCommandIdChecked(int id) const override; |
| 90 bool IsCommandIdEnabled(int id) const override; | 90 bool IsCommandIdEnabled(int id) const override; |
| 91 bool GetAcceleratorForCommandId(int command_id, | |
| 92 ui::Accelerator* accelerator) const override; | |
| 93 void ExecuteCommand(int id, int event_flags) override; | 91 void ExecuteCommand(int id, int event_flags) override; |
| 94 | 92 |
| 95 private: | 93 private: |
| 96 friend class NewTaskManagerViewTest; | 94 friend class NewTaskManagerViewTest; |
| 97 | 95 |
| 98 NewTaskManagerView(); | 96 NewTaskManagerView(); |
| 99 | 97 |
| 100 static NewTaskManagerView* GetInstanceForTests(); | 98 static NewTaskManagerView* GetInstanceForTests(); |
| 101 | 99 |
| 102 // Creates the child controls. | 100 // Creates the child controls. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 126 | 124 |
| 127 // True when the Task Manager window should be shown on top of other windows. | 125 // True when the Task Manager window should be shown on top of other windows. |
| 128 bool is_always_on_top_; | 126 bool is_always_on_top_; |
| 129 | 127 |
| 130 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView); | 128 DISALLOW_COPY_AND_ASSIGN(NewTaskManagerView); |
| 131 }; | 129 }; |
| 132 | 130 |
| 133 } // namespace task_management | 131 } // namespace task_management |
| 134 | 132 |
| 135 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ | 133 #endif // CHROME_BROWSER_UI_VIEWS_NEW_TASK_MANAGER_VIEW_H_ |
| OLD | NEW |