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

Side by Side Diff: chrome/browser/ui/webui/task_manager/task_manager_dialog.cc

Issue 10703061: chrome/browser/ui: Put browser_dialogs.h into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months 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
« no previous file with comments | « chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_dialog.h" 5 #include "chrome/browser/ui/webui/task_manager/task_manager_dialog.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 OpenWebDialog(); 187 OpenWebDialog();
188 ++show_count_; 188 ++show_count_;
189 } 189 }
190 190
191 void TaskManagerDialogImpl::OnCloseDialog() { 191 void TaskManagerDialogImpl::OnCloseDialog() {
192 if (show_count_ > 0) 192 if (show_count_ > 0)
193 --show_count_; 193 --show_count_;
194 } 194 }
195 195
196 void TaskManagerDialogImpl::OpenWebDialog() { 196 void TaskManagerDialogImpl::OpenWebDialog() {
197 window_ = browser::ShowWebDialog(NULL, 197 window_ = chrome::ShowWebDialog(NULL,
198 ProfileManager::GetDefaultProfile(), 198 ProfileManager::GetDefaultProfile(),
199 this); 199 this);
200 } 200 }
201 201
202 // static 202 // static
203 void TaskManagerDialog::Show() { 203 void TaskManagerDialog::Show() {
204 BrowserThread::PostTask( 204 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
205 BrowserThread::UI, FROM_HERE, 205 base::Bind(&TaskManagerDialogImpl::Show, false));
206 base::Bind(&TaskManagerDialogImpl::Show, false));
207 } 206 }
208 207
209 // static 208 // static
210 void TaskManagerDialog::ShowBackgroundPages() { 209 void TaskManagerDialog::ShowBackgroundPages() {
211 BrowserThread::PostTask( 210 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
212 BrowserThread::UI, FROM_HERE, 211 base::Bind(&TaskManagerDialogImpl::Show, true));
213 base::Bind(&TaskManagerDialogImpl::Show, true));
214 } 212 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698