| 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 "ash/wm/shelf_layout_manager.h" | 5 #include "ash/wm/shelf_layout_manager.h" |
| 6 | 6 |
| 7 #include "ash/launcher/launcher.h" | 7 #include "ash/launcher/launcher.h" |
| 8 #include "ash/screen_ash.h" | 8 #include "ash/screen_ash.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/shell_delegate.h" | 10 #include "ash/shell_delegate.h" |
| 11 #include "ash/shell_window_ids.h" | 11 #include "ash/shell_window_ids.h" |
| 12 #include "ash/system/tray/system_tray.h" | 12 #include "ash/system/tray/system_tray.h" |
| 13 #include "ash/wm/workspace/workspace_manager.h" | 13 #include "ash/wm/workspace/workspace_manager.h" |
| 14 #include "base/auto_reset.h" | 14 #include "base/auto_reset.h" |
| 15 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
| 16 #include "ui/aura/client/activation_client.h" | 16 #include "ui/aura/client/activation_client.h" |
| 17 #include "ui/aura/dip_util.h" | 17 #include "ui/aura/dip_util.h" |
| 18 #include "ui/aura/event.h" | 18 #include "ui/aura/event.h" |
| 19 #include "ui/aura/event_filter.h" | 19 #include "ui/aura/event_filter.h" |
| 20 #include "ui/aura/root_window.h" | 20 #include "ui/aura/root_window.h" |
| 21 #include "ui/gfx/compositor/layer.h" | 21 #include "ui/compositor/layer.h" |
| 22 #include "ui/gfx/compositor/layer_animation_observer.h" | 22 #include "ui/compositor/layer_animation_observer.h" |
| 23 #include "ui/gfx/compositor/layer_animator.h" | 23 #include "ui/compositor/layer_animator.h" |
| 24 #include "ui/gfx/compositor/scoped_layer_animation_settings.h" | 24 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 25 #include "ui/gfx/screen.h" | 25 #include "ui/gfx/screen.h" |
| 26 #include "ui/views/widget/widget.h" | 26 #include "ui/views/widget/widget.h" |
| 27 | 27 |
| 28 namespace ash { | 28 namespace ash { |
| 29 namespace internal { | 29 namespace internal { |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 // Delay before showing the launcher. This is after the mouse stops moving. | 33 // Delay before showing the launcher. This is after the mouse stops moving. |
| 34 const int kAutoHideDelayMS = 200; | 34 const int kAutoHideDelayMS = 200; |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 bool ShelfLayoutManager::IsShelfWindow(aura::Window* window) { | 467 bool ShelfLayoutManager::IsShelfWindow(aura::Window* window) { |
| 468 if (!window) | 468 if (!window) |
| 469 return false; | 469 return false; |
| 470 return (launcher_widget() && | 470 return (launcher_widget() && |
| 471 launcher_widget()->GetNativeWindow()->Contains(window)) || | 471 launcher_widget()->GetNativeWindow()->Contains(window)) || |
| 472 (status_ && status_->GetNativeWindow()->Contains(window)); | 472 (status_ && status_->GetNativeWindow()->Contains(window)); |
| 473 } | 473 } |
| 474 | 474 |
| 475 } // namespace internal | 475 } // namespace internal |
| 476 } // namespace ash | 476 } // namespace ash |
| OLD | NEW |