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

Side by Side Diff: views/view.h

Issue 8395046: Allows observers to be notified when layer animations complete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_VIEW_H_ 5 #ifndef VIEWS_VIEW_H_
6 #define VIEWS_VIEW_H_ 6 #define VIEWS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 // the right layer. 978 // the right layer.
979 virtual void MoveLayerToParent(ui::Layer* parent_layer, 979 virtual void MoveLayerToParent(ui::Layer* parent_layer,
980 const gfx::Point& point); 980 const gfx::Point& point);
981 981
982 // Called to update the bounds of any child layers within this View's 982 // Called to update the bounds of any child layers within this View's
983 // hierarchy when something happens to the hierarchy. 983 // hierarchy when something happens to the hierarchy.
984 virtual void UpdateChildLayerBounds(const gfx::Point& offset); 984 virtual void UpdateChildLayerBounds(const gfx::Point& offset);
985 985
986 // Overridden from ui::LayerDelegate: 986 // Overridden from ui::LayerDelegate:
987 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; 987 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE;
988 virtual void OnLayerAnimationEnded(
989 const ui::LayerAnimationSequence* animation) OVERRIDE;
990 988
991 // Finds the layer that this view paints to (it may belong to an ancestor 989 // Finds the layer that this view paints to (it may belong to an ancestor
992 // view), then reorders the immediate children of that layer to match the 990 // view), then reorders the immediate children of that layer to match the
993 // order of the view tree. 991 // order of the view tree.
994 virtual void ReorderLayers(); 992 virtual void ReorderLayers();
995 993
996 // This reorders the immediate children of |*parent_layer| to match the 994 // This reorders the immediate children of |*parent_layer| to match the
997 // order of the view tree. 995 // order of the view tree.
998 virtual void ReorderChildLayers(ui::Layer* parent_layer); 996 virtual void ReorderChildLayers(ui::Layer* parent_layer);
999 997
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 #if defined(OS_WIN) 1440 #if defined(OS_WIN)
1443 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_; 1441 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_;
1444 #endif 1442 #endif
1445 1443
1446 DISALLOW_COPY_AND_ASSIGN(View); 1444 DISALLOW_COPY_AND_ASSIGN(View);
1447 }; 1445 };
1448 1446
1449 } // namespace views 1447 } // namespace views
1450 1448
1451 #endif // VIEWS_VIEW_H_ 1449 #endif // VIEWS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698