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

Side by Side Diff: ui/compositor/layer.cc

Issue 2453553003: Disable overlay scrollbars in Blink when hidden by the compositor. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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
« no previous file with comments | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/compositor/layer.h" 5 #include "ui/compositor/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 private: 920 private:
921 std::string name_; 921 std::string name_;
922 }; 922 };
923 923
924 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 924 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
925 Layer::TakeDebugInfo(cc::Layer* layer) { 925 Layer::TakeDebugInfo(cc::Layer* layer) {
926 return base::WrapUnique(new LayerDebugInfo(name_)); 926 return base::WrapUnique(new LayerDebugInfo(name_));
927 } 927 }
928 928
929 void Layer::didUpdateMainThreadScrollingReasons() {} 929 void Layer::didUpdateMainThreadScrollingReasons() {}
930 void Layer::didChangeScrollbarsHidden(bool) {}
930 931
931 void Layer::CollectAnimators( 932 void Layer::CollectAnimators(
932 std::vector<scoped_refptr<LayerAnimator>>* animators) { 933 std::vector<scoped_refptr<LayerAnimator>>* animators) {
933 if (animator_ && animator_->is_animating()) 934 if (animator_ && animator_->is_animating())
934 animators->push_back(animator_); 935 animators->push_back(animator_);
935 for (auto* child : children_) 936 for (auto* child : children_)
936 child->CollectAnimators(animators); 937 child->CollectAnimators(animators);
937 } 938 }
938 939
939 void Layer::StackRelativeTo(Layer* child, Layer* other, bool above) { 940 void Layer::StackRelativeTo(Layer* child, Layer* other, bool above) {
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 const auto it = std::find_if(mirrors_.begin(), mirrors_.end(), 1173 const auto it = std::find_if(mirrors_.begin(), mirrors_.end(),
1173 [mirror](const std::unique_ptr<LayerMirror>& mirror_ptr) { 1174 [mirror](const std::unique_ptr<LayerMirror>& mirror_ptr) {
1174 return mirror_ptr.get() == mirror; 1175 return mirror_ptr.get() == mirror;
1175 }); 1176 });
1176 1177
1177 DCHECK(it != mirrors_.end()); 1178 DCHECK(it != mirrors_.end());
1178 mirrors_.erase(it); 1179 mirrors_.erase(it);
1179 } 1180 }
1180 1181
1181 } // namespace ui 1182 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698