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

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

Issue 6452011: Rework tree APIs to reflect Google style and more const-correctness.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/wrench_menu.cc » ('j') | 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) 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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/wrench_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698