OLD | NEW |
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 #include "ui/views/widget/native_widget_win.h" | 5 #include "ui/views/widget/native_widget_win.h" |
6 | 6 |
7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 } | 150 } |
151 | 151 |
152 const ui::Compositor* NativeWidgetWin::GetCompositor() const { | 152 const ui::Compositor* NativeWidgetWin::GetCompositor() const { |
153 return NULL; | 153 return NULL; |
154 } | 154 } |
155 | 155 |
156 ui::Compositor* NativeWidgetWin::GetCompositor() { | 156 ui::Compositor* NativeWidgetWin::GetCompositor() { |
157 return NULL; | 157 return NULL; |
158 } | 158 } |
159 | 159 |
160 gfx::Vector2d NativeWidgetWin::CalculateOffsetToAncestorWithLayer( | 160 ui::Layer* NativeWidgetWin::GetLayer() { |
161 ui::Layer** layer_parent) { | 161 return NULL; |
162 return gfx::Vector2d(); | |
163 } | 162 } |
164 | 163 |
165 void NativeWidgetWin::ViewRemoved(View* view) { | 164 void NativeWidgetWin::ViewRemoved(View* view) { |
166 if (drop_target_.get()) | 165 if (drop_target_.get()) |
167 drop_target_->ResetTargetViewIfEquals(view); | 166 drop_target_->ResetTargetViewIfEquals(view); |
168 } | 167 } |
169 | 168 |
170 void NativeWidgetWin::SetNativeWindowProperty(const char* name, void* value) { | 169 void NativeWidgetWin::SetNativeWindowProperty(const char* name, void* value) { |
171 // Remove the existing property (if any). | 170 // Remove the existing property (if any). |
172 for (ViewProps::iterator i = props_.begin(); i != props_.end(); ++i) { | 171 for (ViewProps::iterator i = props_.begin(); i != props_.end(); ++i) { |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 // static | 972 // static |
974 bool NativeWidgetPrivate::IsTouchDown() { | 973 bool NativeWidgetPrivate::IsTouchDown() { |
975 // This currently isn't necessary because we're not generating touch events on | 974 // This currently isn't necessary because we're not generating touch events on |
976 // windows. When we do, this will need to be updated. | 975 // windows. When we do, this will need to be updated. |
977 return false; | 976 return false; |
978 } | 977 } |
979 | 978 |
980 } // namespace internal | 979 } // namespace internal |
981 | 980 |
982 } // namespace views | 981 } // namespace views |
OLD | NEW |