| 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/cocoa/task_manager_mac.h" | 5 #include "chrome/browser/ui/cocoa/task_manager_mac.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/mac/bundle_locations.h" | 10 #include "base/mac/bundle_locations.h" |
| 11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 14 #import "chrome/browser/ui/cocoa/window_size_autosaver.h" | 14 #import "chrome/browser/ui/cocoa/window_size_autosaver.h" |
| 15 #include "chrome/browser/ui/host_desktop.h" | |
| 16 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
| 17 #include "chrome/grit/generated_resources.h" | 16 #include "chrome/grit/generated_resources.h" |
| 18 #include "third_party/skia/include/core/SkBitmap.h" | 17 #include "third_party/skia/include/core/SkBitmap.h" |
| 19 #include "ui/base/l10n/l10n_util_mac.h" | 18 #include "ui/base/l10n/l10n_util_mac.h" |
| 19 #include "ui/gfx/host_desktop_type.h" |
| 20 #include "ui/gfx/image/image_skia.h" | 20 #include "ui/gfx/image/image_skia.h" |
| 21 | 21 |
| 22 class Browser; |
| 23 |
| 22 namespace { | 24 namespace { |
| 23 | 25 |
| 24 // Width of "a" and most other letters/digits in "small" table views. | 26 // Width of "a" and most other letters/digits in "small" table views. |
| 25 const int kCharWidth = 6; | 27 const int kCharWidth = 6; |
| 26 | 28 |
| 27 // Some of the strings below have spaces at the end or are missing letters, to | 29 // Some of the strings below have spaces at the end or are missing letters, to |
| 28 // make the columns look nicer, and to take potentially longer localized strings | 30 // make the columns look nicer, and to take potentially longer localized strings |
| 29 // into account. | 31 // into account. |
| 30 const struct ColumnWidth { | 32 const struct ColumnWidth { |
| 31 int columnId; | 33 int columnId; |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 void ShowTaskManager(Browser* browser) { | 598 void ShowTaskManager(Browser* browser) { |
| 597 TaskManagerMac::Show(); | 599 TaskManagerMac::Show(); |
| 598 } | 600 } |
| 599 | 601 |
| 600 void HideTaskManager() { | 602 void HideTaskManager() { |
| 601 TaskManagerMac::Hide(); | 603 TaskManagerMac::Hide(); |
| 602 } | 604 } |
| 603 | 605 |
| 604 } // namespace chrome | 606 } // namespace chrome |
| 605 | 607 |
| OLD | NEW |