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