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

Side by Side Diff: ui/views/view.h

Issue 25596002: aura: Use Layer::SetShowPaintedContent to stop showing external content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layer-showpaintedcontent: nits Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « ui/compositor/layer_unittest.cc ('k') | ui/views/view.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_VIEWS_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 1059
1060 // Override to paint a border not specified by SetBorder(). 1060 // Override to paint a border not specified by SetBorder().
1061 virtual void OnPaintBorder(gfx::Canvas* canvas); 1061 virtual void OnPaintBorder(gfx::Canvas* canvas);
1062 1062
1063 // Override to paint a focus border not specified by set_focus_border() around 1063 // Override to paint a focus border not specified by set_focus_border() around
1064 // relevant contents. The focus border is usually a dotted rectangle. 1064 // relevant contents. The focus border is usually a dotted rectangle.
1065 virtual void OnPaintFocusBorder(gfx::Canvas* canvas); 1065 virtual void OnPaintFocusBorder(gfx::Canvas* canvas);
1066 1066
1067 // Accelerated painting ------------------------------------------------------ 1067 // Accelerated painting ------------------------------------------------------
1068 1068
1069 // This creates a layer for the view, if one does not exist. It then
1070 // passes the texture to a layer associated with the view. While an external
1071 // texture is set, the view will not update the layer contents.
1072 //
1073 // |texture| cannot be NULL.
1074 //
1075 // Returns false if it cannot create a layer to which to assign the texture.
1076 bool SetExternalTexture(ui::Texture* texture);
1077
1078 // Returns the offset from this view to the nearest ancestor with a layer. If 1069 // Returns the offset from this view to the nearest ancestor with a layer. If
1079 // |layer_parent| is non-NULL it is set to the nearest ancestor with a layer. 1070 // |layer_parent| is non-NULL it is set to the nearest ancestor with a layer.
1080 virtual gfx::Vector2d CalculateOffsetToAncestorWithLayer( 1071 virtual gfx::Vector2d CalculateOffsetToAncestorWithLayer(
1081 ui::Layer** layer_parent); 1072 ui::Layer** layer_parent);
1082 1073
1083 // Updates the view's layer's parent. Called when a view is added to a view 1074 // Updates the view's layer's parent. Called when a view is added to a view
1084 // hierarchy, responsible for parenting the view's layer to the enclosing 1075 // hierarchy, responsible for parenting the view's layer to the enclosing
1085 // layer in the hierarchy. 1076 // layer in the hierarchy.
1086 virtual void UpdateParentLayer(); 1077 virtual void UpdateParentLayer();
1087 1078
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 // Belongs to this view, but it's reference-counted on some platforms 1531 // Belongs to this view, but it's reference-counted on some platforms
1541 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1532 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1542 NativeViewAccessibility* native_view_accessibility_; 1533 NativeViewAccessibility* native_view_accessibility_;
1543 1534
1544 DISALLOW_COPY_AND_ASSIGN(View); 1535 DISALLOW_COPY_AND_ASSIGN(View);
1545 }; 1536 };
1546 1537
1547 } // namespace views 1538 } // namespace views
1548 1539
1549 #endif // UI_VIEWS_VIEW_H_ 1540 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/compositor/layer_unittest.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698