OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/metrics/stats_table.h" | 8 #include "base/metrics/stats_table.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/prefs/scoped_user_pref_update.h" | 10 #include "base/prefs/scoped_user_pref_update.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 virtual void ViewHierarchyChanged( | 165 virtual void ViewHierarchyChanged( |
166 const ViewHierarchyChangedDetails& details) OVERRIDE; | 166 const ViewHierarchyChangedDetails& details) OVERRIDE; |
167 | 167 |
168 // views::ButtonListener: | 168 // views::ButtonListener: |
169 virtual void ButtonPressed(views::Button* sender, | 169 virtual void ButtonPressed(views::Button* sender, |
170 const ui::Event& event) OVERRIDE; | 170 const ui::Event& event) OVERRIDE; |
171 | 171 |
172 // views::DialogDelegateView: | 172 // views::DialogDelegateView: |
173 virtual bool CanResize() const OVERRIDE; | 173 virtual bool CanResize() const OVERRIDE; |
174 virtual bool CanMaximize() const OVERRIDE; | 174 virtual bool CanMaximize() const OVERRIDE; |
| 175 virtual bool CanMinimize() const OVERRIDE; |
175 virtual bool ExecuteWindowsCommand(int command_id) OVERRIDE; | 176 virtual bool ExecuteWindowsCommand(int command_id) OVERRIDE; |
176 virtual base::string16 GetWindowTitle() const OVERRIDE; | 177 virtual base::string16 GetWindowTitle() const OVERRIDE; |
177 virtual std::string GetWindowName() const OVERRIDE; | 178 virtual std::string GetWindowName() const OVERRIDE; |
178 virtual int GetDialogButtons() const OVERRIDE; | 179 virtual int GetDialogButtons() const OVERRIDE; |
179 virtual void WindowClosing() OVERRIDE; | 180 virtual void WindowClosing() OVERRIDE; |
180 virtual bool UseNewStyleForThisDialog() const OVERRIDE; | 181 virtual bool UseNewStyleForThisDialog() const OVERRIDE; |
181 | 182 |
182 // views::TableViewObserver: | 183 // views::TableViewObserver: |
183 virtual void OnSelectionChanged() OVERRIDE; | 184 virtual void OnSelectionChanged() OVERRIDE; |
184 virtual void OnDoubleClick() OVERRIDE; | 185 virtual void OnDoubleClick() OVERRIDE; |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 | 524 |
524 // DialogDelegate implementation. | 525 // DialogDelegate implementation. |
525 bool TaskManagerView::CanResize() const { | 526 bool TaskManagerView::CanResize() const { |
526 return true; | 527 return true; |
527 } | 528 } |
528 | 529 |
529 bool TaskManagerView::CanMaximize() const { | 530 bool TaskManagerView::CanMaximize() const { |
530 return true; | 531 return true; |
531 } | 532 } |
532 | 533 |
| 534 bool TaskManagerView::CanMinimize() const { |
| 535 return true; |
| 536 } |
| 537 |
533 bool TaskManagerView::ExecuteWindowsCommand(int command_id) { | 538 bool TaskManagerView::ExecuteWindowsCommand(int command_id) { |
534 return false; | 539 return false; |
535 } | 540 } |
536 | 541 |
537 base::string16 TaskManagerView::GetWindowTitle() const { | 542 base::string16 TaskManagerView::GetWindowTitle() const { |
538 return l10n_util::GetStringUTF16(IDS_TASK_MANAGER_TITLE); | 543 return l10n_util::GetStringUTF16(IDS_TASK_MANAGER_TITLE); |
539 } | 544 } |
540 | 545 |
541 std::string TaskManagerView::GetWindowName() const { | 546 std::string TaskManagerView::GetWindowName() const { |
542 return prefs::kTaskManagerWindowPlacement; | 547 return prefs::kTaskManagerWindowPlacement; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 } // namespace | 656 } // namespace |
652 | 657 |
653 namespace chrome { | 658 namespace chrome { |
654 | 659 |
655 // Declared in browser_dialogs.h so others don't need to depend on our header. | 660 // Declared in browser_dialogs.h so others don't need to depend on our header. |
656 void ShowTaskManager(Browser* browser) { | 661 void ShowTaskManager(Browser* browser) { |
657 TaskManagerView::Show(browser); | 662 TaskManagerView::Show(browser); |
658 } | 663 } |
659 | 664 |
660 } // namespace chrome | 665 } // namespace chrome |
OLD | NEW |