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_aura.h" | 5 #include "views/widget/native_widget_aura.h" |
6 | 6 |
7 #include "aura/event.h" | 7 #include "aura/event.h" |
8 #include "aura/window.h" | 8 #include "aura/window.h" |
9 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
10 #include "ui/gfx/compositor/layer.h" | 10 #include "ui/gfx/compositor/layer.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 } | 107 } |
108 | 108 |
109 ui::Compositor* NativeWidgetAura::GetCompositor() { | 109 ui::Compositor* NativeWidgetAura::GetCompositor() { |
110 return window_->layer()->compositor(); | 110 return window_->layer()->compositor(); |
111 } | 111 } |
112 | 112 |
113 void NativeWidgetAura::MarkLayerDirty() { | 113 void NativeWidgetAura::MarkLayerDirty() { |
114 //NOTIMPLEMENTED(); | 114 //NOTIMPLEMENTED(); |
115 } | 115 } |
116 | 116 |
117 void NativeWidgetAura::CalculateOffsetToAncestorWithLayer(gfx::Point* offset, | 117 void NativeWidgetAura::CalculateOffsetToAncestorWithLayer( |
118 View** ancestor) { | 118 gfx::Point* offset, |
119 if (ancestor) | 119 ui::Layer** layer_parent) { |
120 *ancestor = GetWidget()->GetRootView(); | 120 if (layer_parent) |
| 121 *layer_parent = window_->layer(); |
121 } | 122 } |
122 | 123 |
123 void NativeWidgetAura::ViewRemoved(View* view) { | 124 void NativeWidgetAura::ViewRemoved(View* view) { |
124 NOTIMPLEMENTED(); | 125 NOTIMPLEMENTED(); |
125 } | 126 } |
126 | 127 |
127 void NativeWidgetAura::SetNativeWindowProperty(const char* name, void* value) { | 128 void NativeWidgetAura::SetNativeWindowProperty(const char* name, void* value) { |
128 NOTIMPLEMENTED(); | 129 NOTIMPLEMENTED(); |
129 } | 130 } |
130 | 131 |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 } | 476 } |
476 | 477 |
477 // static | 478 // static |
478 bool NativeWidgetPrivate::IsMouseButtonDown() { | 479 bool NativeWidgetPrivate::IsMouseButtonDown() { |
479 NOTIMPLEMENTED(); | 480 NOTIMPLEMENTED(); |
480 return false; | 481 return false; |
481 } | 482 } |
482 | 483 |
483 } // namespace internal | 484 } // namespace internal |
484 } // namespace views | 485 } // namespace views |
OLD | NEW |