| 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/desktop_aura/desktop_window_tree_host_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "third_party/skia/include/core/SkPath.h" | 8 #include "third_party/skia/include/core/SkPath.h" |
| 9 #include "third_party/skia/include/core/SkRegion.h" | 9 #include "third_party/skia/include/core/SkRegion.h" |
| 10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 window()->SetProperty(kDesktopWindowTreeHostKey, this); | 152 window()->SetProperty(kDesktopWindowTreeHostKey, this); |
| 153 | 153 |
| 154 should_animate_window_close_ = | 154 should_animate_window_close_ = |
| 155 content_window_->type() != ui::wm::WINDOW_TYPE_NORMAL && | 155 content_window_->type() != ui::wm::WINDOW_TYPE_NORMAL && |
| 156 !wm::WindowAnimationsDisabled(content_window_); | 156 !wm::WindowAnimationsDisabled(content_window_); |
| 157 | 157 |
| 158 // TODO this is not invoked *after* Init(), but should be ok. | 158 // TODO this is not invoked *after* Init(), but should be ok. |
| 159 SetWindowTransparency(); | 159 SetWindowTransparency(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 void DesktopWindowTreeHostWin::OnNativeWidgetActivationChanged(bool active) {} |
| 163 |
| 162 void DesktopWindowTreeHostWin::OnWidgetInitDone() {} | 164 void DesktopWindowTreeHostWin::OnWidgetInitDone() {} |
| 163 | 165 |
| 164 std::unique_ptr<corewm::Tooltip> DesktopWindowTreeHostWin::CreateTooltip() { | 166 std::unique_ptr<corewm::Tooltip> DesktopWindowTreeHostWin::CreateTooltip() { |
| 165 DCHECK(!tooltip_); | 167 DCHECK(!tooltip_); |
| 166 tooltip_ = new corewm::TooltipWin(GetAcceleratedWidget()); | 168 tooltip_ = new corewm::TooltipWin(GetAcceleratedWidget()); |
| 167 return base::WrapUnique(tooltip_); | 169 return base::WrapUnique(tooltip_); |
| 168 } | 170 } |
| 169 | 171 |
| 170 std::unique_ptr<aura::client::DragDropClient> | 172 std::unique_ptr<aura::client::DragDropClient> |
| 171 DesktopWindowTreeHostWin::CreateDragDropClient( | 173 DesktopWindowTreeHostWin::CreateDragDropClient( |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 | 991 |
| 990 // static | 992 // static |
| 991 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 993 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
| 992 internal::NativeWidgetDelegate* native_widget_delegate, | 994 internal::NativeWidgetDelegate* native_widget_delegate, |
| 993 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 995 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 994 return new DesktopWindowTreeHostWin(native_widget_delegate, | 996 return new DesktopWindowTreeHostWin(native_widget_delegate, |
| 995 desktop_native_widget_aura); | 997 desktop_native_widget_aura); |
| 996 } | 998 } |
| 997 | 999 |
| 998 } // namespace views | 1000 } // namespace views |
| OLD | NEW |