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

Side by Side Diff: ui/compositor/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 | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | ui/compositor/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 (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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 bool PrepareTextureMailbox( 376 bool PrepareTextureMailbox(
377 cc::TextureMailbox* mailbox, 377 cc::TextureMailbox* mailbox,
378 std::unique_ptr<cc::SingleReleaseCallback>* release_callback) override; 378 std::unique_ptr<cc::SingleReleaseCallback>* release_callback) override;
379 379
380 float device_scale_factor() const { return device_scale_factor_; } 380 float device_scale_factor() const { return device_scale_factor_; }
381 381
382 // LayerClient 382 // LayerClient
383 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( 383 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(
384 cc::Layer* layer) override; 384 cc::Layer* layer) override;
385 void didUpdateMainThreadScrollingReasons() override; 385 void didUpdateMainThreadScrollingReasons() override;
386 void didChangeScrollbarsHidden(bool) override;
386 387
387 // Triggers a call to SwitchToLayer. 388 // Triggers a call to SwitchToLayer.
388 void SwitchCCLayerForTest(); 389 void SwitchCCLayerForTest();
389 390
390 const cc::Region& damaged_region_for_testing() const { 391 const cc::Region& damaged_region_for_testing() const {
391 return damaged_region_; 392 return damaged_region_;
392 } 393 }
393 394
394 private: 395 private:
395 friend class LayerOwner; 396 friend class LayerOwner;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 541 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
541 // or SetTextureMailbox was called. 542 // or SetTextureMailbox was called.
542 gfx::Size frame_size_in_dip_; 543 gfx::Size frame_size_in_dip_;
543 544
544 DISALLOW_COPY_AND_ASSIGN(Layer); 545 DISALLOW_COPY_AND_ASSIGN(Layer);
545 }; 546 };
546 547
547 } // namespace ui 548 } // namespace ui
548 549
549 #endif // UI_COMPOSITOR_LAYER_H_ 550 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698