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

Side by Side Diff: chrome/browser/ui/views/panels/panel_view.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, 2 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 (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/ui/views/panels/panel_view.h" 5 #include "chrome/browser/ui/views/panels/panel_view.h"
6 6
7 #include <map> 7 #include <map>
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 } 779 }
780 780
781 bool PanelView::CanResize() const { 781 bool PanelView::CanResize() const {
782 return true; 782 return true;
783 } 783 }
784 784
785 bool PanelView::CanMaximize() const { 785 bool PanelView::CanMaximize() const {
786 return false; 786 return false;
787 } 787 }
788 788
789 bool PanelView::CanMinimize() const {
790 return false;
791 }
792
789 base::string16 PanelView::GetWindowTitle() const { 793 base::string16 PanelView::GetWindowTitle() const {
790 return panel_->GetWindowTitle(); 794 return panel_->GetWindowTitle();
791 } 795 }
792 796
793 gfx::ImageSkia PanelView::GetWindowAppIcon() { 797 gfx::ImageSkia PanelView::GetWindowAppIcon() {
794 gfx::Image app_icon = panel_->app_icon(); 798 gfx::Image app_icon = panel_->app_icon();
795 if (app_icon.IsEmpty()) 799 if (app_icon.IsEmpty())
796 return GetWindowIcon(); 800 return GetWindowIcon();
797 else 801 else
798 return *app_icon.ToImageSkia(); 802 return *app_icon.ToImageSkia();
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 // SWP_FRAMECHANGED flag must be called in order for the cached window data 1145 // SWP_FRAMECHANGED flag must be called in order for the cached window data
1142 // to be updated properly. 1146 // to be updated properly.
1143 // http://msdn.microsoft.com/en-us/library/windows/desktop/ms633591(v=vs.85).a spx 1147 // http://msdn.microsoft.com/en-us/library/windows/desktop/ms633591(v=vs.85).a spx
1144 if (update_frame) { 1148 if (update_frame) {
1145 ::SetWindowPos(native_window, NULL, 0, 0, 0, 0, 1149 ::SetWindowPos(native_window, NULL, 0, 0, 0, 0,
1146 SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | 1150 SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE |
1147 SWP_NOZORDER | SWP_NOACTIVATE); 1151 SWP_NOZORDER | SWP_NOACTIVATE);
1148 } 1152 }
1149 } 1153 }
1150 #endif 1154 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/panels/panel_view.h ('k') | chrome/browser/ui/views/profiles/user_manager_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698