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

Side by Side Diff: apps/size_constraints.cc

Issue 185173003: Add <algorithm> include needed on VS2013 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "apps/size_constraints.h" 5 #include "apps/size_constraints.h"
6 6
7 #include <algorithm>
8
7 namespace apps { 9 namespace apps {
8 10
9 SizeConstraints::SizeConstraints() 11 SizeConstraints::SizeConstraints()
10 : maximum_size_(kUnboundedSize, kUnboundedSize) {} 12 : maximum_size_(kUnboundedSize, kUnboundedSize) {}
11 13
12 SizeConstraints::SizeConstraints(const gfx::Size& min_size, 14 SizeConstraints::SizeConstraints(const gfx::Size& min_size,
13 const gfx::Size& max_size) 15 const gfx::Size& max_size)
14 : minimum_size_(min_size), maximum_size_(max_size) {} 16 : minimum_size_(min_size), maximum_size_(max_size) {}
15 17
16 SizeConstraints::~SizeConstraints() {} 18 SizeConstraints::~SizeConstraints() {}
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 58
57 void SizeConstraints::set_minimum_size(const gfx::Size& min_size) { 59 void SizeConstraints::set_minimum_size(const gfx::Size& min_size) {
58 minimum_size_ = min_size; 60 minimum_size_ = min_size;
59 } 61 }
60 62
61 void SizeConstraints::set_maximum_size(const gfx::Size& max_size) { 63 void SizeConstraints::set_maximum_size(const gfx::Size& max_size) {
62 maximum_size_ = max_size; 64 maximum_size_ = max_size;
63 } 65 }
64 66
65 } // namespace apps 67 } // namespace apps
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698