| 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/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" | 
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 511   gfx::Size size = kill_button_->GetPreferredSize(); | 511   gfx::Size size = kill_button_->GetPreferredSize(); | 
| 512   int prefered_width = size.width(); | 512   int prefered_width = size.width(); | 
| 513   int prefered_height = size.height(); | 513   int prefered_height = size.height(); | 
| 514 | 514 | 
| 515   tab_table_->SetBounds(x() + kPanelHorizMargin, | 515   tab_table_->SetBounds(x() + kPanelHorizMargin, | 
| 516                         y() + kPanelVertMargin, | 516                         y() + kPanelVertMargin, | 
| 517                         width() - 2 * kPanelHorizMargin, | 517                         width() - 2 * kPanelHorizMargin, | 
| 518                         height() - 2 * kPanelVertMargin - prefered_height); | 518                         height() - 2 * kPanelVertMargin - prefered_height); | 
| 519 | 519 | 
| 520   // y-coordinate of button top left. | 520   // y-coordinate of button top left. | 
| 521   gfx::Rect parent_bounds = GetParent()->GetContentsBounds(); | 521   gfx::Rect parent_bounds = parent()->GetContentsBounds(); | 
| 522   int y_buttons = | 522   int y_buttons = | 
| 523       parent_bounds.bottom() - prefered_height - views::kButtonVEdgeMargin; | 523       parent_bounds.bottom() - prefered_height - views::kButtonVEdgeMargin; | 
| 524 | 524 | 
| 525   kill_button_->SetBounds(x() + width() - prefered_width - kPanelHorizMargin, | 525   kill_button_->SetBounds(x() + width() - prefered_width - kPanelHorizMargin, | 
| 526                           y_buttons, | 526                           y_buttons, | 
| 527                           prefered_width, | 527                           prefered_width, | 
| 528                           prefered_height); | 528                           prefered_height); | 
| 529 | 529 | 
| 530   if (purge_memory_button_) { | 530   if (purge_memory_button_) { | 
| 531     size = purge_memory_button_->GetPreferredSize(); | 531     size = purge_memory_button_->GetPreferredSize(); | 
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 769 // Declared in browser_dialogs.h so others don't need to depend on our header. | 769 // Declared in browser_dialogs.h so others don't need to depend on our header. | 
| 770 void ShowTaskManager() { | 770 void ShowTaskManager() { | 
| 771   TaskManagerView::Show(false); | 771   TaskManagerView::Show(false); | 
| 772 } | 772 } | 
| 773 | 773 | 
| 774 void ShowBackgroundPages() { | 774 void ShowBackgroundPages() { | 
| 775   TaskManagerView::Show(true); | 775   TaskManagerView::Show(true); | 
| 776 } | 776 } | 
| 777 | 777 | 
| 778 }  // namespace browser | 778 }  // namespace browser | 
| OLD | NEW | 
|---|