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

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: sync 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 "ui/aura/client/activation_client.h" 15 #include "ui/aura/client/activation_client.h"
16 #include "ui/aura/event.h" 16 #include "ui/aura/event.h"
17 #include "ui/aura/event_filter.h" 17 #include "ui/aura/event_filter.h"
18 #include "ui/aura/root_window.h" 18 #include "ui/aura/root_window.h"
19 #include "ui/gfx/compositor/layer.h" 19 #include "ui/gfx/compositor/layer.h"
20 #include "ui/gfx/compositor/layer_animation_observer.h" 20 #include "ui/gfx/compositor/layer_animation_observer.h"
21 #include "ui/gfx/compositor/layer_animator.h" 21 #include "ui/gfx/compositor/layer_animator.h"
22 #include "ui/gfx/compositor/scoped_layer_animation_settings.h" 22 #include "ui/gfx/compositor/scoped_layer_animation_settings.h"
23 #include "ui/gfx/screen.h"
23 #include "ui/views/widget/widget.h" 24 #include "ui/views/widget/widget.h"
24 25
25 namespace ash { 26 namespace ash {
26 namespace internal { 27 namespace internal {
27 28
28 namespace { 29 namespace {
29 30
30 // Delay before showing the launcher. This is after the mouse stops moving. 31 // Delay before showing the launcher. This is after the mouse stops moving.
31 const int kAutoHideDelayMS = 200; 32 const int kAutoHideDelayMS = 200;
32 33
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 insets.Set(kWorkspaceAreaBottomInset, 0, 0, 0); 429 insets.Set(kWorkspaceAreaBottomInset, 0, 0, 0);
429 } 430 }
430 if (launcher_widget() && launcher_widget()->GetNativeWindow()) 431 if (launcher_widget() && launcher_widget()->GetNativeWindow())
431 launcher_widget()->GetNativeWindow()->set_hit_test_bounds_override_outer( 432 launcher_widget()->GetNativeWindow()->set_hit_test_bounds_override_outer(
432 insets); 433 insets);
433 status_->GetNativeWindow()->set_hit_test_bounds_override_outer(insets); 434 status_->GetNativeWindow()->set_hit_test_bounds_override_outer(insets);
434 } 435 }
435 436
436 } // namespace internal 437 } // namespace internal
437 } // namespace ash 438 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698