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

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

Issue 2774823002: Remove FrameHost class (Closed)
Patch Set: Rebase Created 3 years, 8 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 <algorithm> // for std::min and std::max
8 8
9 #include "core/frame/FrameHost.h"
10 #include "core/frame/VisualViewport.h" 9 #include "core/frame/VisualViewport.h"
11 #include "core/page/ChromeClient.h" 10 #include "core/page/ChromeClient.h"
12 #include "core/page/Page.h" 11 #include "core/page/Page.h"
13 #include "platform/geometry/FloatSize.h" 12 #include "platform/geometry/FloatSize.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
17 BrowserControls::BrowserControls(const Page& page) 16 BrowserControls::BrowserControls(const Page& page)
18 : m_page(&page), 17 : m_page(&page),
19 m_height(0), 18 m_height(0),
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void BrowserControls::setHeight(float height, bool shrinkViewport) { 121 void BrowserControls::setHeight(float height, bool shrinkViewport) {
123 if (m_height == height && m_shrinkViewport == shrinkViewport) 122 if (m_height == height && m_shrinkViewport == shrinkViewport)
124 return; 123 return;
125 124
126 m_height = height; 125 m_height = height;
127 m_shrinkViewport = shrinkViewport; 126 m_shrinkViewport = shrinkViewport;
128 m_page->chromeClient().didUpdateBrowserControls(); 127 m_page->chromeClient().didUpdateBrowserControls();
129 } 128 }
130 129
131 } // namespace blink 130 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/BUILD.gn ('k') | third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698