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

Side by Side Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm

Issue 158643002: Add option to install an ephemeral app to the Windows jump list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added notimplemented Created 6 years, 10 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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698