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

Side by Side Diff: views/widget/native_widget_private.h

Issue 7845033: Rework View Layer Draw() to use the Layer::DrawTree() method and the LayerDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
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_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "views/ime/input_method_delegate.h" 10 #include "views/ime/input_method_delegate.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual Widget* GetTopLevelWidget() = 0; 89 virtual Widget* GetTopLevelWidget() = 0;
90 90
91 // Returns the Compositor, or NULL if there isn't one associated with this 91 // Returns the Compositor, or NULL if there isn't one associated with this
92 // NativeWidget. 92 // NativeWidget.
93 virtual const ui::Compositor* GetCompositor() const = 0; 93 virtual const ui::Compositor* GetCompositor() const = 0;
94 virtual ui::Compositor* GetCompositor() = 0; 94 virtual ui::Compositor* GetCompositor() = 0;
95 95
96 // See description in View for details. 96 // See description in View for details.
97 virtual void MarkLayerDirty() = 0; 97 virtual void MarkLayerDirty() = 0;
98 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, 98 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset,
99 View** ancestor) = 0; 99 ui::Layer** layer_parent) = 0;
100 100
101 // Notifies the NativeWidget that a view was removed from the Widget's view 101 // Notifies the NativeWidget that a view was removed from the Widget's view
102 // hierarchy. 102 // hierarchy.
103 virtual void ViewRemoved(View* view) = 0; 103 virtual void ViewRemoved(View* view) = 0;
104 104
105 // Sets/Gets a native window property on the underlying native window object. 105 // Sets/Gets a native window property on the underlying native window object.
106 // Returns NULL if the property does not exist. Setting the property value to 106 // Returns NULL if the property does not exist. Setting the property value to
107 // NULL removes the property. 107 // NULL removes the property.
108 virtual void SetNativeWindowProperty(const char* name, void* value) = 0; 108 virtual void SetNativeWindowProperty(const char* name, void* value) = 0;
109 virtual void* GetNativeWindowProperty(const char* name) const = 0; 109 virtual void* GetNativeWindowProperty(const char* name) const = 0;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 const Widget* ancestor, gfx::Point* point) const = 0; 206 const Widget* ancestor, gfx::Point* point) const = 0;
207 207
208 // Overridden from NativeWidget: 208 // Overridden from NativeWidget:
209 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; 209 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE;
210 }; 210 };
211 211
212 } // namespace internal 212 } // namespace internal
213 } // namespace views 213 } // namespace views
214 214
215 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 215 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698