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

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

Issue 7723001: Make the first character of the Task Manager kill button be underlined. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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 | « no previous file | 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) 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 if (CommandLine::ForCurrentProcess()->HasSwitch( 451 if (CommandLine::ForCurrentProcess()->HasSwitch(
452 switches::kPurgeMemoryButton)) { 452 switches::kPurgeMemoryButton)) {
453 purge_memory_button_ = new views::NativeTextButton(this, 453 purge_memory_button_ = new views::NativeTextButton(this,
454 UTF16ToWide(l10n_util::GetStringUTF16(IDS_TASK_MANAGER_PURGE_MEMORY))); 454 UTF16ToWide(l10n_util::GetStringUTF16(IDS_TASK_MANAGER_PURGE_MEMORY)));
455 } 455 }
456 kill_button_ = new views::NativeTextButton( 456 kill_button_ = new views::NativeTextButton(
457 this, UTF16ToWide(l10n_util::GetStringUTF16(IDS_TASK_MANAGER_KILL))); 457 this, UTF16ToWide(l10n_util::GetStringUTF16(IDS_TASK_MANAGER_KILL)));
458 kill_button_->AddAccelerator(views::Accelerator(ui::VKEY_E, 458 kill_button_->AddAccelerator(views::Accelerator(ui::VKEY_E,
459 false, false, false)); 459 false, false, false));
460 kill_button_->SetAccessibleKeyboardShortcut(L"E"); 460 kill_button_->SetAccessibleKeyboardShortcut(L"E");
461 kill_button_->set_prefix_type(PREFIX_SHOW);
msw 2011/08/24 08:18:31 You need to specify the full name views::TextButto
461 about_memory_link_ = new views::Link(UTF16ToWide( 462 about_memory_link_ = new views::Link(UTF16ToWide(
462 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_ABOUT_MEMORY_LINK))); 463 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_ABOUT_MEMORY_LINK)));
463 about_memory_link_->set_listener(this); 464 about_memory_link_->set_listener(this);
464 465
465 // Makes sure our state is consistent. 466 // Makes sure our state is consistent.
466 OnSelectionChanged(); 467 OnSelectionChanged();
467 } 468 }
468 469
469 void TaskManagerView::UpdateStatsCounters() { 470 void TaskManagerView::UpdateStatsCounters() {
470 base::StatsTable* stats = base::StatsTable::current(); 471 base::StatsTable* stats = base::StatsTable::current();
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 // Declared in browser_dialogs.h so others don't need to depend on our header. 784 // Declared in browser_dialogs.h so others don't need to depend on our header.
784 void ShowTaskManager() { 785 void ShowTaskManager() {
785 TaskManagerView::Show(false); 786 TaskManagerView::Show(false);
786 } 787 }
787 788
788 void ShowBackgroundPages() { 789 void ShowBackgroundPages() {
789 TaskManagerView::Show(true); 790 TaskManagerView::Show(true);
790 } 791 }
791 792
792 } // namespace browser 793 } // namespace browser
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698