| OLD | NEW |
| 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 #ifndef APPS_SIZE_CONSTRAINTS_H_ | 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_SIZE_CONSTRAINTS_H_ |
| 6 #define APPS_SIZE_CONSTRAINTS_H_ | 6 #define EXTENSIONS_BROWSER_APP_WINDOW_SIZE_CONSTRAINTS_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/geometry/size.h" | 8 #include "ui/gfx/geometry/size.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 class Insets; | 11 class Insets; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace apps { | 14 namespace extensions { |
| 15 | 15 |
| 16 class SizeConstraints { | 16 class SizeConstraints { |
| 17 public: | 17 public: |
| 18 // The value SizeConstraints uses to represent an unbounded width or height. | 18 // The value SizeConstraints uses to represent an unbounded width or height. |
| 19 // This is an enum so that it can be declared inline here. | 19 // This is an enum so that it can be declared inline here. |
| 20 enum { kUnboundedSize = 0 }; | 20 enum { kUnboundedSize = 0 }; |
| 21 | 21 |
| 22 SizeConstraints(); | 22 SizeConstraints(); |
| 23 SizeConstraints(const gfx::Size& min_size, const gfx::Size& max_size); | 23 SizeConstraints(const gfx::Size& min_size, const gfx::Size& max_size); |
| 24 ~SizeConstraints(); | 24 ~SizeConstraints(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 45 gfx::Size GetMinimumSize() const; | 45 gfx::Size GetMinimumSize() const; |
| 46 | 46 |
| 47 void set_minimum_size(const gfx::Size& min_size); | 47 void set_minimum_size(const gfx::Size& min_size); |
| 48 void set_maximum_size(const gfx::Size& max_size); | 48 void set_maximum_size(const gfx::Size& max_size); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 gfx::Size minimum_size_; | 51 gfx::Size minimum_size_; |
| 52 gfx::Size maximum_size_; | 52 gfx::Size maximum_size_; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace apps | 55 } // namespace extensions |
| 56 | 56 |
| 57 #endif // APPS_SIZE_CONSTRAINTS_H_ | 57 #endif // EXTENSIONS_BROWSER_APP_WINDOW_SIZE_CONSTRAINTS_H_ |
| OLD | NEW |