| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/mus/desktop_window_tree_host_mus.h" | 5 #include "ui/views/mus/desktop_window_tree_host_mus.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "ui/aura/client/aura_constants.h" | 8 #include "ui/aura/client/aura_constants.h" |
| 9 #include "ui/aura/client/drag_drop_client.h" | 9 #include "ui/aura/client/drag_drop_client.h" |
| 10 #include "ui/aura/client/focus_client.h" | 10 #include "ui/aura/client/focus_client.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 bool DesktopWindowTreeHostMus::IsDocked() const { | 39 bool DesktopWindowTreeHostMus::IsDocked() const { |
| 40 return window()->GetProperty(aura::client::kShowStateKey) == | 40 return window()->GetProperty(aura::client::kShowStateKey) == |
| 41 ui::SHOW_STATE_DOCKED; | 41 ui::SHOW_STATE_DOCKED; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void DesktopWindowTreeHostMus::Init(aura::Window* content_window, | 44 void DesktopWindowTreeHostMus::Init(aura::Window* content_window, |
| 45 const Widget::InitParams& params) {} | 45 const Widget::InitParams& params) {} |
| 46 | 46 |
| 47 void DesktopWindowTreeHostMus::OnNativeWidgetCreated( | 47 void DesktopWindowTreeHostMus::OnNativeWidgetCreated( |
| 48 const Widget::InitParams& params) {} | 48 const Widget::InitParams& params) { |
| 49 native_widget_delegate_->OnNativeWidgetCreated(true); |
| 50 } |
| 49 | 51 |
| 50 std::unique_ptr<corewm::Tooltip> DesktopWindowTreeHostMus::CreateTooltip() { | 52 std::unique_ptr<corewm::Tooltip> DesktopWindowTreeHostMus::CreateTooltip() { |
| 51 return base::MakeUnique<corewm::TooltipAura>(); | 53 return base::MakeUnique<corewm::TooltipAura>(); |
| 52 } | 54 } |
| 53 | 55 |
| 54 std::unique_ptr<aura::client::DragDropClient> | 56 std::unique_ptr<aura::client::DragDropClient> |
| 55 DesktopWindowTreeHostMus::CreateDragDropClient( | 57 DesktopWindowTreeHostMus::CreateDragDropClient( |
| 56 DesktopNativeCursorManager* cursor_manager) { | 58 DesktopNativeCursorManager* cursor_manager) { |
| 57 // aura-mus handles installing a DragDropClient. | 59 // aura-mus handles installing a DragDropClient. |
| 58 return nullptr; | 60 return nullptr; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 Widget* widget = native_widget_delegate_->AsWidget(); | 336 Widget* widget = native_widget_delegate_->AsWidget(); |
| 335 window()->SetProperty(aura::client::kCanMaximizeKey, | 337 window()->SetProperty(aura::client::kCanMaximizeKey, |
| 336 widget->widget_delegate()->CanMaximize()); | 338 widget->widget_delegate()->CanMaximize()); |
| 337 window()->SetProperty(aura::client::kCanMinimizeKey, | 339 window()->SetProperty(aura::client::kCanMinimizeKey, |
| 338 widget->widget_delegate()->CanMinimize()); | 340 widget->widget_delegate()->CanMinimize()); |
| 339 window()->SetProperty(aura::client::kCanResizeKey, | 341 window()->SetProperty(aura::client::kCanResizeKey, |
| 340 widget->widget_delegate()->CanResize()); | 342 widget->widget_delegate()->CanResize()); |
| 341 } | 343 } |
| 342 | 344 |
| 343 } // namespace views | 345 } // namespace views |
| OLD | NEW |