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

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

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_UI_VIEWS_TASK_MANAGER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TASK_MANAGER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TASK_MANAGER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TASK_MANAGER_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 static void Hide(); 43 static void Hide();
44 44
45 // task_manager::TableViewDelegate: 45 // task_manager::TableViewDelegate:
46 bool IsColumnVisible(int column_id) const override; 46 bool IsColumnVisible(int column_id) const override;
47 void SetColumnVisibility(int column_id, bool new_visibility) override; 47 void SetColumnVisibility(int column_id, bool new_visibility) override;
48 bool IsTableSorted() const override; 48 bool IsTableSorted() const override;
49 TableSortDescriptor GetSortDescriptor() const override; 49 TableSortDescriptor GetSortDescriptor() const override;
50 void SetSortDescriptor(const TableSortDescriptor& descriptor) override; 50 void SetSortDescriptor(const TableSortDescriptor& descriptor) override;
51 51
52 // views::View: 52 // views::View:
53 gfx::Size GetPreferredSize() const override;
54 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 53 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
55 54
56 // views::DialogDelegateView: 55 // views::DialogDelegateView:
57 bool CanResize() const override; 56 bool CanResize() const override;
58 bool CanMaximize() const override; 57 bool CanMaximize() const override;
59 bool CanMinimize() const override; 58 bool CanMinimize() const override;
60 bool ExecuteWindowsCommand(int command_id) override; 59 bool ExecuteWindowsCommand(int command_id) override;
60 gfx::Size GetUnsnappedPreferredSize() const override;
61 base::string16 GetWindowTitle() const override; 61 base::string16 GetWindowTitle() const override;
62 std::string GetWindowName() const override; 62 std::string GetWindowName() const override;
63 bool Accept() override; 63 bool Accept() override;
64 bool Close() override; 64 bool Close() override;
65 int GetDialogButtons() const override; 65 int GetDialogButtons() const override;
66 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 66 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
67 bool IsDialogButtonEnabled(ui::DialogButton button) const override; 67 bool IsDialogButtonEnabled(ui::DialogButton button) const override;
68 void WindowClosing() override; 68 void WindowClosing() override;
69 bool ShouldUseCustomFrame() const override; 69 bool ShouldUseCustomFrame() const override;
70 70
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // True when the Task Manager window should be shown on top of other windows. 126 // True when the Task Manager window should be shown on top of other windows.
127 bool is_always_on_top_; 127 bool is_always_on_top_;
128 128
129 DISALLOW_COPY_AND_ASSIGN(TaskManagerView); 129 DISALLOW_COPY_AND_ASSIGN(TaskManagerView);
130 }; 130 };
131 131
132 } // namespace task_manager 132 } // namespace task_manager
133 133
134 #endif // CHROME_BROWSER_UI_VIEWS_TASK_MANAGER_VIEW_H_ 134 #endif // CHROME_BROWSER_UI_VIEWS_TASK_MANAGER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698