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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |