Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: chrome/browser/ui/views/task_manager_view.cc

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/task_manager/task_manager.h" 5 #include "chrome/browser/task_manager/task_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/metrics/stats_table.h" 9 #include "base/metrics/stats_table.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/app/chrome_command_ids.h" 11 #include "chrome/app/chrome_command_ids.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/memory_purger.h" 13 #include "chrome/browser/memory_purger.h"
14 #include "chrome/browser/prefs/pref_service.h" 14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/browser/prefs/scoped_user_pref_update.h" 15 #include "chrome/browser/prefs/scoped_user_pref_update.h"
16 #include "chrome/browser/ui/browser_list.h" 16 #include "chrome/browser/ui/browser_list.h"
17 #include "chrome/browser/ui/browser_window.h" 17 #include "chrome/browser/ui/browser_window.h"
18 #include "chrome/browser/ui/views/browser_dialogs.h" 18 #include "chrome/browser/ui/views/browser_dialogs.h"
19 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
20 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
21 #include "grit/chromium_strings.h" 21 #include "grit/chromium_strings.h"
22 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
23 #include "grit/theme_resources.h" 23 #include "grit/theme_resources.h"
24 #include "ui/base/accelerators/accelerator.h" 24 #include "ui/base/accelerators/accelerator.h"
25 #include "ui/base/l10n/l10n_util.h" 25 #include "ui/base/l10n/l10n_util.h"
26 #include "ui/base/models/table_model_observer.h" 26 #include "ui/base/models/table_model_observer.h"
27 #include "ui/views/background.h"
27 #include "ui/views/context_menu_controller.h" 28 #include "ui/views/context_menu_controller.h"
28 #include "ui/views/controls/button/text_button.h" 29 #include "ui/views/controls/button/text_button.h"
29 #include "ui/views/controls/link.h" 30 #include "ui/views/controls/link.h"
30 #include "ui/views/controls/link_listener.h" 31 #include "ui/views/controls/link_listener.h"
31 #include "ui/views/controls/menu/menu.h" 32 #include "ui/views/controls/menu/menu.h"
32 #include "ui/views/controls/table/group_table_view.h" 33 #include "ui/views/controls/table/group_table_view.h"
33 #include "ui/views/controls/table/table_view_observer.h" 34 #include "ui/views/controls/table/table_view_observer.h"
34 #include "ui/views/layout/layout_constants.h" 35 #include "ui/views/layout/layout_constants.h"
35 #include "ui/views/widget/widget.h" 36 #include "ui/views/widget/widget.h"
36 #include "ui/views/window/dialog_delegate.h" 37 #include "ui/views/window/dialog_delegate.h"
37 #include "views/background.h"
38 38
39 // The task manager window default size. 39 // The task manager window default size.
40 static const int kDefaultWidth = 460; 40 static const int kDefaultWidth = 460;
41 static const int kDefaultHeight = 270; 41 static const int kDefaultHeight = 270;
42 42
43 // Yellow highlight used when highlighting background resources. 43 // Yellow highlight used when highlighting background resources.
44 static const SkColor kBackgroundResourceHighlight = 44 static const SkColor kBackgroundResourceHighlight =
45 SkColorSetRGB(0xff, 0xf1, 0xcd); 45 SkColorSetRGB(0xff, 0xf1, 0xcd);
46 46
47 namespace { 47 namespace {
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 // Declared in browser_dialogs.h so others don't need to depend on our header. 795 // Declared in browser_dialogs.h so others don't need to depend on our header.
796 void ShowTaskManager() { 796 void ShowTaskManager() {
797 TaskManagerView::Show(false); 797 TaskManagerView::Show(false);
798 } 798 }
799 799
800 void ShowBackgroundPages() { 800 void ShowBackgroundPages() {
801 TaskManagerView::Show(true); 801 TaskManagerView::Show(true);
802 } 802 }
803 803
804 } // namespace browser 804 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.cc ('k') | chrome/browser/ui/views/theme_background.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698