OLD | NEW |
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 #include "views/widget/native_widget_views.h" | 5 #include "views/widget/native_widget_views.h" |
6 | 6 |
7 #include "ui/gfx/compositor/compositor.h" | 7 #include "ui/gfx/compositor/compositor.h" |
8 #include "views/desktop/desktop_window_view.h" | 8 #include "views/desktop/desktop_window_view.h" |
9 #include "views/view.h" | 9 #include "views/view.h" |
10 #include "views/views_delegate.h" | 10 #include "views/views_delegate.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 } | 180 } |
181 | 181 |
182 ui::Compositor* NativeWidgetViews::GetCompositor() { | 182 ui::Compositor* NativeWidgetViews::GetCompositor() { |
183 return hosting_widget_->GetCompositor(); | 183 return hosting_widget_->GetCompositor(); |
184 } | 184 } |
185 | 185 |
186 void NativeWidgetViews::MarkLayerDirty() { | 186 void NativeWidgetViews::MarkLayerDirty() { |
187 view_->MarkLayerDirty(); | 187 view_->MarkLayerDirty(); |
188 } | 188 } |
189 | 189 |
190 void NativeWidgetViews::CalculateOffsetToAncestorWithLayer(gfx::Point* offset, | 190 void NativeWidgetViews::CalculateOffsetToAncestorWithLayer( |
191 View** ancestor) { | 191 gfx::Point* offset, |
192 view_->CalculateOffsetToAncestorWithLayer(offset, ancestor); | 192 ui::Layer** layer_parent) { |
| 193 view_->CalculateOffsetToAncestorWithLayer(offset, layer_parent); |
193 } | 194 } |
194 | 195 |
195 void NativeWidgetViews::ViewRemoved(View* view) { | 196 void NativeWidgetViews::ViewRemoved(View* view) { |
196 internal::NativeWidgetPrivate* parent = GetParentNativeWidget(); | 197 internal::NativeWidgetPrivate* parent = GetParentNativeWidget(); |
197 if (parent) | 198 if (parent) |
198 parent->ViewRemoved(view); | 199 parent->ViewRemoved(view); |
199 } | 200 } |
200 | 201 |
201 void NativeWidgetViews::SetNativeWindowProperty(const char* name, void* value) { | 202 void NativeWidgetViews::SetNativeWindowProperty(const char* name, void* value) { |
202 if (value) | 203 if (value) |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 | 520 |
520 const internal::NativeWidgetPrivate* | 521 const internal::NativeWidgetPrivate* |
521 NativeWidgetViews::GetParentNativeWidget() const { | 522 NativeWidgetViews::GetParentNativeWidget() const { |
522 const Widget* containing_widget = view_ ? view_->GetWidget() : NULL; | 523 const Widget* containing_widget = view_ ? view_->GetWidget() : NULL; |
523 return containing_widget ? static_cast<const internal::NativeWidgetPrivate*>( | 524 return containing_widget ? static_cast<const internal::NativeWidgetPrivate*>( |
524 containing_widget->native_widget()) : | 525 containing_widget->native_widget()) : |
525 NULL; | 526 NULL; |
526 } | 527 } |
527 | 528 |
528 } // namespace views | 529 } // namespace views |
OLD | NEW |