| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef PageScaleConstraintsSet_h | 31 #ifndef PageScaleConstraintsSet_h |
| 32 #define PageScaleConstraintsSet_h | 32 #define PageScaleConstraintsSet_h |
| 33 | 33 |
| 34 #include <memory> |
| 34 #include "core/CoreExport.h" | 35 #include "core/CoreExport.h" |
| 35 #include "core/dom/ViewportDescription.h" | 36 #include "core/dom/ViewportDescription.h" |
| 36 #include "core/frame/PageScaleConstraints.h" | 37 #include "core/frame/PageScaleConstraints.h" |
| 37 #include "platform/Length.h" | 38 #include "platform/Length.h" |
| 38 #include "platform/geometry/IntSize.h" | 39 #include "platform/geometry/IntSize.h" |
| 39 #include "wtf/Allocator.h" | 40 #include "platform/wtf/Allocator.h" |
| 40 #include "wtf/PtrUtil.h" | 41 #include "platform/wtf/PtrUtil.h" |
| 41 #include <memory> | |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 // This class harmonizes the viewport (particularly page scale) constraints from | 45 // This class harmonizes the viewport (particularly page scale) constraints from |
| 46 // the meta viewport tag and other sources. | 46 // the meta viewport tag and other sources. |
| 47 class CORE_EXPORT PageScaleConstraintsSet { | 47 class CORE_EXPORT PageScaleConstraintsSet { |
| 48 USING_FAST_MALLOC(PageScaleConstraintsSet); | 48 USING_FAST_MALLOC(PageScaleConstraintsSet); |
| 49 | 49 |
| 50 public: | 50 public: |
| 51 static std::unique_ptr<PageScaleConstraintsSet> Create() { | 51 static std::unique_ptr<PageScaleConstraintsSet> Create() { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 int last_contents_width_; | 124 int last_contents_width_; |
| 125 IntSize icb_size_; | 125 IntSize icb_size_; |
| 126 | 126 |
| 127 bool needs_reset_; | 127 bool needs_reset_; |
| 128 bool constraints_dirty_; | 128 bool constraints_dirty_; |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace blink | 131 } // namespace blink |
| 132 | 132 |
| 133 #endif // PageScaleConstraintsSet_h | 133 #endif // PageScaleConstraintsSet_h |
| OLD | NEW |