| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 103 } |
| 104 | 104 |
| 105 const ui::Compositor* NativeWidgetAura::GetCompositor() const { | 105 const ui::Compositor* NativeWidgetAura::GetCompositor() const { |
| 106 return window_->layer()->compositor(); | 106 return window_->layer()->compositor(); |
| 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::CalculateOffsetToAncestorWithLayer( |
| 114 //NOTIMPLEMENTED(); | 114 gfx::Point* offset, |
| 115 } | 115 ui::Layer** layer_parent) { |
| 116 | 116 if (layer_parent) |
| 117 void NativeWidgetAura::CalculateOffsetToAncestorWithLayer(gfx::Point* offset, | 117 *layer_parent = window_->layer(); |
| 118 View** ancestor) { | |
| 119 if (ancestor) | |
| 120 *ancestor = GetWidget()->GetRootView(); | |
| 121 } | 118 } |
| 122 | 119 |
| 123 void NativeWidgetAura::ViewRemoved(View* view) { | 120 void NativeWidgetAura::ViewRemoved(View* view) { |
| 124 NOTIMPLEMENTED(); | 121 NOTIMPLEMENTED(); |
| 125 } | 122 } |
| 126 | 123 |
| 127 void NativeWidgetAura::SetNativeWindowProperty(const char* name, void* value) { | 124 void NativeWidgetAura::SetNativeWindowProperty(const char* name, void* value) { |
| 128 NOTIMPLEMENTED(); | 125 NOTIMPLEMENTED(); |
| 129 } | 126 } |
| 130 | 127 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 } | 472 } |
| 476 | 473 |
| 477 // static | 474 // static |
| 478 bool NativeWidgetPrivate::IsMouseButtonDown() { | 475 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 479 NOTIMPLEMENTED(); | 476 NOTIMPLEMENTED(); |
| 480 return false; | 477 return false; |
| 481 } | 478 } |
| 482 | 479 |
| 483 } // namespace internal | 480 } // namespace internal |
| 484 } // namespace views | 481 } // namespace views |
| OLD | NEW |