| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "config.h" | 5 #include "config.h" |
| 6 #include "TopControls.h" | 6 #include "TopControls.h" |
| 7 | 7 |
| 8 #include "core/frame/FrameHost.h" | 8 #include "core/frame/FrameHost.h" |
| 9 #include "core/page/Chrome.h" | 9 #include "core/page/Chrome.h" |
| 10 #include "core/page/ChromeClient.h" | 10 #include "core/page/ChromeClient.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 , m_accumulatedScrollDelta(0) | 21 , m_accumulatedScrollDelta(0) |
| 22 , m_shrinkViewport(false) | 22 , m_shrinkViewport(false) |
| 23 , m_permittedState(WebTopControlsBoth) | 23 , m_permittedState(WebTopControlsBoth) |
| 24 { | 24 { |
| 25 } | 25 } |
| 26 | 26 |
| 27 TopControls::~TopControls() | 27 TopControls::~TopControls() |
| 28 { | 28 { |
| 29 } | 29 } |
| 30 | 30 |
| 31 void TopControls::trace(Visitor* visitor) | 31 DEFINE_TRACE(TopControls) |
| 32 { | 32 { |
| 33 visitor->trace(m_frameHost); | 33 visitor->trace(m_frameHost); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void TopControls::scrollBegin() | 36 void TopControls::scrollBegin() |
| 37 { | 37 { |
| 38 resetBaseline(); | 38 resetBaseline(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 FloatSize TopControls::scrollBy(FloatSize pendingDelta) | 41 FloatSize TopControls::scrollBy(FloatSize pendingDelta) |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 { | 97 { |
| 98 if (m_height == height && m_shrinkViewport == shrinkViewport) | 98 if (m_height == height && m_shrinkViewport == shrinkViewport) |
| 99 return; | 99 return; |
| 100 | 100 |
| 101 m_height = height; | 101 m_height = height; |
| 102 m_shrinkViewport = shrinkViewport; | 102 m_shrinkViewport = shrinkViewport; |
| 103 m_frameHost->chrome().client().didUpdateTopControls(); | 103 m_frameHost->chrome().client().didUpdateTopControls(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace blink | 106 } // namespace blink |
| OLD | NEW |