OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |