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

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

Issue 4987001: Implement new task manager mocks on windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated per review feedback Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/hung_renderer_dialog.h" 5 #include "chrome/browser/hung_renderer_dialog.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 info_label_ = new views::Label( 346 info_label_ = new views::Label(
347 l10n_util::GetString(IDS_BROWSER_HANGMONITOR_RENDERER)); 347 l10n_util::GetString(IDS_BROWSER_HANGMONITOR_RENDERER));
348 info_label_->SetMultiLine(true); 348 info_label_->SetMultiLine(true);
349 info_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); 349 info_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
350 350
351 hung_pages_table_model_.reset(new HungPagesTableModel); 351 hung_pages_table_model_.reset(new HungPagesTableModel);
352 std::vector<TableColumn> columns; 352 std::vector<TableColumn> columns;
353 columns.push_back(TableColumn()); 353 columns.push_back(TableColumn());
354 hung_pages_table_ = new views::GroupTableView( 354 hung_pages_table_ = new views::GroupTableView(
355 hung_pages_table_model_.get(), columns, views::ICON_AND_TEXT, true, 355 hung_pages_table_model_.get(), columns, views::ICON_AND_TEXT, true,
356 false, true); 356 false, true, false);
357 hung_pages_table_->SetPreferredSize( 357 hung_pages_table_->SetPreferredSize(
358 gfx::Size(kTableViewWidth, kTableViewHeight)); 358 gfx::Size(kTableViewWidth, kTableViewHeight));
359 359
360 CreateKillButtonView(); 360 CreateKillButtonView();
361 361
362 using views::GridLayout; 362 using views::GridLayout;
363 using views::ColumnSet; 363 using views::ColumnSet;
364 364
365 GridLayout* layout = CreatePanelGridLayout(this); 365 GridLayout* layout = CreatePanelGridLayout(this);
366 SetLayoutManager(layout); 366 SetLayoutManager(layout);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 } 455 }
456 456
457 // static 457 // static
458 void HideForTabContents(TabContents* contents) { 458 void HideForTabContents(TabContents* contents) {
459 if (!logging::DialogsAreSuppressed() && g_instance) 459 if (!logging::DialogsAreSuppressed() && g_instance)
460 g_instance->EndForTabContents(contents); 460 g_instance->EndForTabContents(contents);
461 } 461 }
462 462
463 } // namespace hung_renderer_dialog 463 } // namespace hung_renderer_dialog
464 464
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_resource_providers.cc ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698