| 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 #include "chrome/browser/ui/webui/task_manager/task_manager_handler.h" | 5 #include "chrome/browser/ui/webui/task_manager/task_manager_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/task_manager/task_manager.h" | 15 #include "chrome/browser/task_manager/task_manager.h" |
| 16 #include "chrome/browser/ui/webui/web_ui_util.h" | 16 #include "chrome/browser/ui/webui/web_ui_util.h" |
| 17 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
| 18 #include "content/public/browser/notification_service.h" | 18 #include "content/public/browser/notification_service.h" |
| 19 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
| 20 #include "content/public/browser/render_view_host.h" | 20 #include "content/public/browser/render_view_host.h" |
| 21 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
| 22 #include "content/public/browser/web_ui.h" | 22 #include "content/public/browser/web_ui.h" |
| 23 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "ui/gfx/image/image_skia.h" |
| 24 #include "webkit/glue/webpreferences.h" | 24 #include "webkit/glue/webpreferences.h" |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 Value* CreateColumnValue(const TaskManagerModel* tm, | 28 Value* CreateColumnValue(const TaskManagerModel* tm, |
| 29 const std::string& column_name, | 29 const std::string& column_name, |
| 30 const int i) { | 30 const int i) { |
| 31 if (column_name == "uniqueId") | 31 if (column_name == "uniqueId") |
| 32 return Value::CreateIntegerValue(tm->GetResourceUniqueId(i)); | 32 return Value::CreateIntegerValue(tm->GetResourceUniqueId(i)); |
| 33 if (column_name == "type") { | 33 if (column_name == "type") { |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 void TaskManagerHandler::OnGroupAdded(const int group_start, | 399 void TaskManagerHandler::OnGroupAdded(const int group_start, |
| 400 const int group_length) { | 400 const int group_length) { |
| 401 } | 401 } |
| 402 | 402 |
| 403 void TaskManagerHandler::OnGroupRemoved(const int group_start, | 403 void TaskManagerHandler::OnGroupRemoved(const int group_start, |
| 404 const int group_length) { | 404 const int group_length) { |
| 405 } | 405 } |
| 406 | 406 |
| 407 void TaskManagerHandler::OnReadyPeriodicalUpdate() { | 407 void TaskManagerHandler::OnReadyPeriodicalUpdate() { |
| 408 } | 408 } |
| OLD | NEW |