| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "ash/public/cpp/mus_property_mirror_ash.h" | 5 #include "ash/public/cpp/mus_property_mirror_ash.h" |
| 6 | 6 |
| 7 #include "ash/public/cpp/window_properties.h" | 7 #include "ash/public/cpp/window_properties.h" |
| 8 #include "ui/aura/client/aura_constants.h" | 8 #include "ui/aura/client/aura_constants.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 void MusPropertyMirrorAsh::MirrorPropertyFromWidgetWindowToRootWindow( | 30 void MusPropertyMirrorAsh::MirrorPropertyFromWidgetWindowToRootWindow( |
| 31 aura::Window* window, | 31 aura::Window* window, |
| 32 aura::Window* root_window, | 32 aura::Window* root_window, |
| 33 const void* key) { | 33 const void* key) { |
| 34 if (key == kPanelAttachedKey) { | 34 if (key == kPanelAttachedKey) { |
| 35 bool value = window->GetProperty(kPanelAttachedKey); | 35 bool value = window->GetProperty(kPanelAttachedKey); |
| 36 root_window->SetProperty(kPanelAttachedKey, value); | 36 root_window->SetProperty(kPanelAttachedKey, value); |
| 37 } else if (key == kShelfItemTypeKey) { | 37 } else if (key == kShelfItemTypeKey) { |
| 38 int32_t value = window->GetProperty(kShelfItemTypeKey); | 38 int32_t value = window->GetProperty(kShelfItemTypeKey); |
| 39 root_window->SetProperty(kShelfItemTypeKey, value); | 39 root_window->SetProperty(kShelfItemTypeKey, value); |
| 40 } else if (key == kWindowPinTypeKey) { |
| 41 ash::mojom::WindowPinType value = window->GetProperty(kWindowPinTypeKey); |
| 42 root_window->SetProperty(kWindowPinTypeKey, value); |
| 40 } else if (key == aura::client::kAppIconKey) { | 43 } else if (key == aura::client::kAppIconKey) { |
| 41 MirrorOwnedProperty(window, root_window, aura::client::kAppIconKey); | 44 MirrorOwnedProperty(window, root_window, aura::client::kAppIconKey); |
| 42 } else if (key == aura::client::kAppIdKey) { | 45 } else if (key == aura::client::kAppIdKey) { |
| 43 MirrorOwnedProperty(window, root_window, aura::client::kAppIdKey); | 46 MirrorOwnedProperty(window, root_window, aura::client::kAppIdKey); |
| 44 } else if (key == aura::client::kDrawAttentionKey) { | 47 } else if (key == aura::client::kDrawAttentionKey) { |
| 45 bool value = window->GetProperty(aura::client::kDrawAttentionKey); | 48 bool value = window->GetProperty(aura::client::kDrawAttentionKey); |
| 46 root_window->SetProperty(aura::client::kDrawAttentionKey, value); | 49 root_window->SetProperty(aura::client::kDrawAttentionKey, value); |
| 47 } else if (key == aura::client::kTitleKey) { | 50 } else if (key == aura::client::kTitleKey) { |
| 48 MirrorOwnedProperty(window, root_window, aura::client::kTitleKey); | 51 MirrorOwnedProperty(window, root_window, aura::client::kTitleKey); |
| 49 } else if (key == aura::client::kWindowIconKey) { | 52 } else if (key == aura::client::kWindowIconKey) { |
| 50 MirrorOwnedProperty(window, root_window, aura::client::kWindowIconKey); | 53 MirrorOwnedProperty(window, root_window, aura::client::kWindowIconKey); |
| 51 } | 54 } |
| 52 } | 55 } |
| 53 | 56 |
| 54 } // namespace ash | 57 } // namespace ash |
| OLD | NEW |