Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: ash/wm/shelf_layout_manager.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/event.h" 17 #include "ui/aura/event.h"
18 #include "ui/aura/event_filter.h" 18 #include "ui/aura/event_filter.h"
19 #include "ui/aura/root_window.h" 19 #include "ui/aura/root_window.h"
20 #include "ui/gfx/compositor/layer.h" 20 #include "ui/gfx/compositor/layer.h"
21 #include "ui/gfx/compositor/layer_animation_observer.h" 21 #include "ui/gfx/compositor/layer_animation_observer.h"
22 #include "ui/gfx/compositor/layer_animator.h" 22 #include "ui/gfx/compositor/layer_animator.h"
23 #include "ui/gfx/compositor/scoped_layer_animation_settings.h" 23 #include "ui/gfx/compositor/scoped_layer_animation_settings.h"
24 #include "ui/gfx/screen.h"
24 #include "ui/views/widget/widget.h" 25 #include "ui/views/widget/widget.h"
25 26
26 namespace ash { 27 namespace ash {
27 namespace internal { 28 namespace internal {
28 29
29 namespace { 30 namespace {
30 31
31 // Delay before showing the launcher. This is after the mouse stops moving. 32 // Delay before showing the launcher. This is after the mouse stops moving.
32 const int kAutoHideDelayMS = 200; 33 const int kAutoHideDelayMS = 200;
33 34
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 bool ShelfLayoutManager::IsShelfWindow(aura::Window* window) { 458 bool ShelfLayoutManager::IsShelfWindow(aura::Window* window) {
458 if (!window) 459 if (!window)
459 return false; 460 return false;
460 return (launcher_widget() && 461 return (launcher_widget() &&
461 launcher_widget()->GetNativeWindow()->Contains(window)) || 462 launcher_widget()->GetNativeWindow()->Contains(window)) ||
462 (status_ && status_->GetNativeWindow()->Contains(window)); 463 (status_ && status_->GetNativeWindow()->Contains(window));
463 } 464 }
464 465
465 } // namespace internal 466 } // namespace internal
466 } // namespace ash 467 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698