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

Side by Side Diff: cc/layers/layer.h

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 | « cc/input/scrollbar_animation_controller_thinning_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 #ifndef CC_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 void ClearPreferredRasterBounds(); 495 void ClearPreferredRasterBounds();
496 496
497 AnimationHost* GetAnimationHost() const; 497 AnimationHost* GetAnimationHost() const;
498 498
499 ElementListType GetElementTypeForAnimation() const; 499 ElementListType GetElementTypeForAnimation() const;
500 500
501 // Tests in remote mode need to explicitly set the layer id so it matches the 501 // Tests in remote mode need to explicitly set the layer id so it matches the
502 // layer id for the corresponding Layer on the engine. 502 // layer id for the corresponding Layer on the engine.
503 void SetLayerIdForTesting(int id); 503 void SetLayerIdForTesting(int id);
504 504
505 void SetScrollbarsHiddenFromImplSide(bool hidden);
506
505 protected: 507 protected:
506 friend class LayerImpl; 508 friend class LayerImpl;
507 friend class TreeSynchronizer; 509 friend class TreeSynchronizer;
508 virtual ~Layer(); 510 virtual ~Layer();
509 Layer(); 511 Layer();
510 512
511 LayerTreeHost* layer_tree_host() { return layer_tree_host_; } 513 LayerTreeHost* layer_tree_host() { return layer_tree_host_; }
512 514
513 // These SetNeeds functions are in order of severity of update: 515 // These SetNeeds functions are in order of severity of update:
514 // 516 //
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 // These all act like draw properties, so don't need push properties. 738 // These all act like draw properties, so don't need push properties.
737 gfx::Rect visible_layer_rect_; 739 gfx::Rect visible_layer_rect_;
738 size_t num_unclipped_descendants_; 740 size_t num_unclipped_descendants_;
739 741
740 DISALLOW_COPY_AND_ASSIGN(Layer); 742 DISALLOW_COPY_AND_ASSIGN(Layer);
741 }; 743 };
742 744
743 } // namespace cc 745 } // namespace cc
744 746
745 #endif // CC_LAYERS_LAYER_H_ 747 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/input/scrollbar_animation_controller_thinning_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698