OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/cocoa/apps/native_app_window_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h" |
6 | 6 |
7 #include "apps/app_shim/extension_app_shim_handler_mac.h" | 7 #include "apps/app_shim/extension_app_shim_handler_mac.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 [window() setContentMinSize:NSMakeSize(min_size.width(), min_size.height())]; | 1023 [window() setContentMinSize:NSMakeSize(min_size.width(), min_size.height())]; |
1024 | 1024 |
1025 gfx::Size max_size = shell_window_->size_constraints().GetMaximumSize(); | 1025 gfx::Size max_size = shell_window_->size_constraints().GetMaximumSize(); |
1026 const int kUnboundedSize = ShellWindow::SizeConstraints::kUnboundedSize; | 1026 const int kUnboundedSize = ShellWindow::SizeConstraints::kUnboundedSize; |
1027 CGFloat max_width = max_size.width() == kUnboundedSize ? | 1027 CGFloat max_width = max_size.width() == kUnboundedSize ? |
1028 CGFLOAT_MAX : max_size.width(); | 1028 CGFLOAT_MAX : max_size.width(); |
1029 CGFloat max_height = max_size.height() == kUnboundedSize ? | 1029 CGFloat max_height = max_size.height() == kUnboundedSize ? |
1030 CGFLOAT_MAX : max_size.height(); | 1030 CGFLOAT_MAX : max_size.height(); |
1031 [window() setContentMaxSize:NSMakeSize(max_width, max_height)]; | 1031 [window() setContentMaxSize:NSMakeSize(max_width, max_height)]; |
1032 } | 1032 } |
| 1033 |
| 1034 void NativeAppWindowCocoa::UpdateAppMenu() { |
| 1035 // TODO(tmdiep): To be implemented for Mac. |
| 1036 NOTIMPLEMENTED(); |
| 1037 } |
OLD | NEW |