OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/exo/shell_surface.h" | 5 #include "components/exo/shell_surface.h" |
6 | 6 |
| 7 #include "ash/common/shell_window_ids.h" |
7 #include "ash/common/wm/window_resizer.h" | 8 #include "ash/common/wm/window_resizer.h" |
8 #include "ash/common/wm/window_state.h" | 9 #include "ash/common/wm/window_state.h" |
9 #include "ash/shell.h" | 10 #include "ash/shell.h" |
10 #include "ash/shell_window_ids.h" | |
11 #include "ash/wm/aura/wm_window_aura.h" | 11 #include "ash/wm/aura/wm_window_aura.h" |
12 #include "ash/wm/window_state_aura.h" | 12 #include "ash/wm/window_state_aura.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
18 #include "base/trace_event/trace_event_argument.h" | 18 #include "base/trace_event/trace_event_argument.h" |
19 #include "components/exo/surface.h" | 19 #include "components/exo/surface.h" |
20 #include "ui/aura/window.h" | 20 #include "ui/aura/window.h" |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 gfx::Rect(window_size).InsetsFrom(non_transparent_bounds); | 964 gfx::Rect(window_size).InsetsFrom(non_transparent_bounds); |
965 ash::wm::WindowState* window_state = | 965 ash::wm::WindowState* window_state = |
966 ash::wm::GetWindowState(widget_->GetNativeWindow()); | 966 ash::wm::GetWindowState(widget_->GetNativeWindow()); |
967 if (window_state->transparent_insets() != transparent_insets) { | 967 if (window_state->transparent_insets() != transparent_insets) { |
968 window_state->set_transparent_insets(transparent_insets); | 968 window_state->set_transparent_insets(transparent_insets); |
969 ash::Shell::GetInstance()->UpdateShelfVisibility(); | 969 ash::Shell::GetInstance()->UpdateShelfVisibility(); |
970 } | 970 } |
971 } | 971 } |
972 | 972 |
973 } // namespace exo | 973 } // namespace exo |
OLD | NEW |