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_WEBUI_TASK_MANAGER_TASK_MANAGER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_TASK_MANAGER_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_TASK_MANAGER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_TASK_MANAGER_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // TaskManagerModelObserver implementation. | 26 // TaskManagerModelObserver implementation. |
27 // Invoked when the model has been completely changed. | 27 // Invoked when the model has been completely changed. |
28 virtual void OnModelChanged() OVERRIDE; | 28 virtual void OnModelChanged() OVERRIDE; |
29 // Invoked when a range of items has changed. | 29 // Invoked when a range of items has changed. |
30 virtual void OnItemsChanged(int start, int length) OVERRIDE; | 30 virtual void OnItemsChanged(int start, int length) OVERRIDE; |
31 // Invoked when new items are added. | 31 // Invoked when new items are added. |
32 virtual void OnItemsAdded(int start, int length) OVERRIDE; | 32 virtual void OnItemsAdded(int start, int length) OVERRIDE; |
33 // Invoked when a range of items has been removed. | 33 // Invoked when a range of items has been removed. |
34 virtual void OnItemsRemoved(int start, int length) OVERRIDE; | 34 virtual void OnItemsRemoved(int start, int length) OVERRIDE; |
| 35 virtual void OnItemsToBeRemoved(int start, int length) OVERRIDE {} |
35 | 36 |
36 // Invoked when the initialization of the model has been finished and | 37 // Invoked when the initialization of the model has been finished and |
37 // periodic updates is started. | 38 // periodic updates is started. |
38 virtual void OnReadyPeriodicalUpdate() OVERRIDE; | 39 virtual void OnReadyPeriodicalUpdate() OVERRIDE; |
39 | 40 |
40 // WebUIMessageHandler implementation. | 41 // WebUIMessageHandler implementation. |
41 virtual void RegisterMessages() OVERRIDE; | 42 virtual void RegisterMessages() OVERRIDE; |
42 | 43 |
43 // Callback for the "killProcesses" message. | 44 // Callback for the "killProcesses" message. |
44 void HandleKillProcesses(const base::ListValue* indexes); | 45 void HandleKillProcesses(const base::ListValue* indexes); |
(...skipping 26 matching lines...) Expand all Loading... |
71 // Invoked when group(s) are added/changed/removed. | 72 // Invoked when group(s) are added/changed/removed. |
72 // These method are called from OnItemAdded/-Changed/-Removed internally. | 73 // These method are called from OnItemAdded/-Changed/-Removed internally. |
73 void OnGroupAdded(int start, int length); | 74 void OnGroupAdded(int start, int length); |
74 void OnGroupChanged(int start, int length); | 75 void OnGroupChanged(int start, int length); |
75 void OnGroupRemoved(int start, int length); | 76 void OnGroupRemoved(int start, int length); |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(TaskManagerHandler); | 78 DISALLOW_COPY_AND_ASSIGN(TaskManagerHandler); |
78 }; | 79 }; |
79 | 80 |
80 #endif // CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_TASK_MANAGER_HANDLER_H_ | 81 #endif // CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_TASK_MANAGER_HANDLER_H_ |
OLD | NEW |