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

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

Issue 2680953002: Remove GraphicsLayer::didScroll and directly call ScrollableArea::didScroll (Closed)
Patch Set: Incorporate reviewer comments: more tests, less bad tests Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/public/platform/WebLayerScrollClient.h ('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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 342
343 // Notifies the layer that one of its children has received a new 343 // Notifies the layer that one of its children has received a new
344 // delegated frame. 344 // delegated frame.
345 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip); 345 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip);
346 346
347 // Requets a copy of the layer's output as a texture or bitmap. 347 // Requets a copy of the layer's output as a texture or bitmap.
348 void RequestCopyOfOutput(std::unique_ptr<cc::CopyOutputRequest> request); 348 void RequestCopyOfOutput(std::unique_ptr<cc::CopyOutputRequest> request);
349 349
350 // Makes this Layer scrollable, clipping to |parent_clip_layer|. |on_scroll| 350 // Makes this Layer scrollable, clipping to |parent_clip_layer|. |on_scroll|
351 // is invoked when scrolling performed by the cc::InputHandler is committed. 351 // is invoked when scrolling performed by the cc::InputHandler is committed.
352 void SetScrollable(Layer* parent_clip_layer, const base::Closure& on_scroll); 352 void SetScrollable(
353 Layer* parent_clip_layer,
354 const base::Callback<void(const gfx::ScrollOffset&)>& on_scroll);
353 355
354 // Gets and sets the current scroll offset of the layer. 356 // Gets and sets the current scroll offset of the layer.
355 gfx::ScrollOffset CurrentScrollOffset() const; 357 gfx::ScrollOffset CurrentScrollOffset() const;
356 void SetScrollOffset(const gfx::ScrollOffset& offset); 358 void SetScrollOffset(const gfx::ScrollOffset& offset);
357 359
358 // ContentLayerClient 360 // ContentLayerClient
359 gfx::Rect PaintableRegion() override; 361 gfx::Rect PaintableRegion() override;
360 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( 362 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList(
361 ContentLayerClient::PaintingControlSetting painting_control) override; 363 ContentLayerClient::PaintingControlSetting painting_control) override;
362 bool FillsBoundsCompletely() const override; 364 bool FillsBoundsCompletely() const override;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 // 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
540 // or SetTextureMailbox was called. 542 // or SetTextureMailbox was called.
541 gfx::Size frame_size_in_dip_; 543 gfx::Size frame_size_in_dip_;
542 544
543 DISALLOW_COPY_AND_ASSIGN(Layer); 545 DISALLOW_COPY_AND_ASSIGN(Layer);
544 }; 546 };
545 547
546 } // namespace ui 548 } // namespace ui
547 549
548 #endif // UI_COMPOSITOR_LAYER_H_ 550 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebLayerScrollClient.h ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698