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

Side by Side Diff: third_party/WebKit/Source/core/frame/BrowserControls.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "core/frame/BrowserControls.h" 5 #include "core/frame/BrowserControls.h"
6 6
7 #include <algorithm> // for std::min and std::max
7 #include "core/frame/FrameHost.h" 8 #include "core/frame/FrameHost.h"
8 #include "core/frame/VisualViewport.h" 9 #include "core/frame/VisualViewport.h"
9 #include "core/page/ChromeClient.h" 10 #include "core/page/ChromeClient.h"
10 #include "platform/geometry/FloatSize.h" 11 #include "platform/geometry/FloatSize.h"
11 #include <algorithm> // for std::min and std::max
12 12
13 namespace blink { 13 namespace blink {
14 14
15 BrowserControls::BrowserControls(const FrameHost& frameHost) 15 BrowserControls::BrowserControls(const FrameHost& frameHost)
16 : m_frameHost(&frameHost), 16 : m_frameHost(&frameHost),
17 m_height(0), 17 m_height(0),
18 m_shownRatio(0), 18 m_shownRatio(0),
19 m_baselineContentOffset(0), 19 m_baselineContentOffset(0),
20 m_accumulatedScrollDelta(0), 20 m_accumulatedScrollDelta(0),
21 m_shrinkViewport(false), 21 m_shrinkViewport(false),
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void BrowserControls::setHeight(float height, bool shrinkViewport) { 120 void BrowserControls::setHeight(float height, bool shrinkViewport) {
121 if (m_height == height && m_shrinkViewport == shrinkViewport) 121 if (m_height == height && m_shrinkViewport == shrinkViewport)
122 return; 122 return;
123 123
124 m_height = height; 124 m_height = height;
125 m_shrinkViewport = shrinkViewport; 125 m_shrinkViewport = shrinkViewport;
126 m_frameHost->chromeClient().didUpdateBrowserControls(); 126 m_frameHost->chromeClient().didUpdateBrowserControls();
127 } 127 }
128 128
129 } // namespace blink 129 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698