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

Side by Side Diff: ash/shell/panel_window.cc

Issue 583603004: Add CanMinimize to classes that implement WidgetDelegate::CanMaximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@win_resizable
Patch Set: Add TODO. Created 6 years, 3 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
« no previous file with comments | « ash/shell/panel_window.h ('k') | ash/shell/toplevel_window.h » ('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) 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 "ash/shell/panel_window.h" 5 #include "ash/shell/panel_window.h"
6 6
7 #include "ash/screen_util.h" 7 #include "ash/screen_util.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/wm/panels/panel_frame_view.h" 9 #include "ash/wm/panels/panel_frame_view.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 75
76 bool PanelWindow::CanResize() const { 76 bool PanelWindow::CanResize() const {
77 return true; 77 return true;
78 } 78 }
79 79
80 bool PanelWindow::CanMaximize() const { 80 bool PanelWindow::CanMaximize() const {
81 return false; 81 return false;
82 } 82 }
83 83
84 bool PanelWindow::CanMinimize() const {
85 return false;
86 }
87
84 views::NonClientFrameView* PanelWindow::CreateNonClientFrameView( 88 views::NonClientFrameView* PanelWindow::CreateNonClientFrameView(
85 views::Widget* widget) { 89 views::Widget* widget) {
86 return new PanelFrameView(widget, PanelFrameView::FRAME_NONE); 90 return new PanelFrameView(widget, PanelFrameView::FRAME_NONE);
87 } 91 }
88 92
89 } // namespace ash 93 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell/panel_window.h ('k') | ash/shell/toplevel_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698