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

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

Issue 2453553003: Disable overlay scrollbars in Blink when hidden by the compositor. (Closed)
Patch Set: 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
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 #ifndef UI_COMPOSITOR_LAYER_H_ 5 #ifndef UI_COMPOSITOR_LAYER_H_
6 #define UI_COMPOSITOR_LAYER_H_ 6 #define UI_COMPOSITOR_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 bool PrepareTextureMailbox( 366 bool PrepareTextureMailbox(
367 cc::TextureMailbox* mailbox, 367 cc::TextureMailbox* mailbox,
368 std::unique_ptr<cc::SingleReleaseCallback>* release_callback) override; 368 std::unique_ptr<cc::SingleReleaseCallback>* release_callback) override;
369 369
370 float device_scale_factor() const { return device_scale_factor_; } 370 float device_scale_factor() const { return device_scale_factor_; }
371 371
372 // LayerClient 372 // LayerClient
373 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( 373 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(
374 cc::Layer* layer) override; 374 cc::Layer* layer) override;
375 void didUpdateMainThreadScrollingReasons() override; 375 void didUpdateMainThreadScrollingReasons() override;
376 void didChangeScrollbarsHidden(bool) override;
376 377
377 // Triggers a call to SwitchToLayer. 378 // Triggers a call to SwitchToLayer.
378 void SwitchCCLayerForTest(); 379 void SwitchCCLayerForTest();
379 380
380 const cc::Region& damaged_region_for_testing() const { 381 const cc::Region& damaged_region_for_testing() const {
381 return damaged_region_; 382 return damaged_region_;
382 } 383 }
383 384
384 private: 385 private:
385 friend class LayerOwner; 386 friend class LayerOwner;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 523 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
523 // or SetTextureMailbox was called. 524 // or SetTextureMailbox was called.
524 gfx::Size frame_size_in_dip_; 525 gfx::Size frame_size_in_dip_;
525 526
526 DISALLOW_COPY_AND_ASSIGN(Layer); 527 DISALLOW_COPY_AND_ASSIGN(Layer);
527 }; 528 };
528 529
529 } // namespace ui 530 } // namespace ui
530 531
531 #endif // UI_COMPOSITOR_LAYER_H_ 532 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698