OLD | NEW |
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/ui/webui/task_manager_dialog.h" | 5 #include "chrome/browser/ui/webui/task_manager_dialog.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/platform_util.h" | 10 #include "chrome/browser/platform_util.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_dialogs.h" | 12 #include "chrome/browser/ui/browser_dialogs.h" |
13 #include "chrome/browser/ui/browser_list.h" | 13 #include "chrome/browser/ui/browser_list.h" |
14 #include "chrome/browser/ui/webui/html_dialog_ui.h" | 14 #include "chrome/browser/ui/webui/html_dialog_ui.h" |
15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
16 #include "grit/google_chrome_strings.h" | 16 #include "grit/google_chrome_strings.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 | 18 |
19 #if defined(OS_CHROMEOS) | 19 #if defined(OS_CHROMEOS) |
20 #include "views/widget/widget.h" | 20 #include "ui/views/widget/widget.h" |
21 #endif | 21 #endif |
22 | 22 |
23 using content::BrowserThread; | 23 using content::BrowserThread; |
24 | 24 |
25 class TaskManagerDialogImpl : public HtmlDialogUIDelegate { | 25 class TaskManagerDialogImpl : public HtmlDialogUIDelegate { |
26 public: | 26 public: |
27 TaskManagerDialogImpl(); | 27 TaskManagerDialogImpl(); |
28 | 28 |
29 static void Show(bool is_background_page_mode); | 29 static void Show(bool is_background_page_mode); |
30 static TaskManagerDialogImpl* GetInstance(); | 30 static TaskManagerDialogImpl* GetInstance(); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 BrowserThread::UI, FROM_HERE, | 146 BrowserThread::UI, FROM_HERE, |
147 base::Bind(&TaskManagerDialogImpl::Show, false)); | 147 base::Bind(&TaskManagerDialogImpl::Show, false)); |
148 } | 148 } |
149 | 149 |
150 // static | 150 // static |
151 void TaskManagerDialog::ShowBackgroundPages() { | 151 void TaskManagerDialog::ShowBackgroundPages() { |
152 BrowserThread::PostTask( | 152 BrowserThread::PostTask( |
153 BrowserThread::UI, FROM_HERE, | 153 BrowserThread::UI, FROM_HERE, |
154 base::Bind(&TaskManagerDialogImpl::Show, true)); | 154 base::Bind(&TaskManagerDialogImpl::Show, true)); |
155 } | 155 } |
OLD | NEW |