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

Side by Side Diff: ash/wm/overview/window_overview.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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
« no previous file with comments | « ash/wm/overview/scoped_window_copy.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/overview/window_overview.h" 5 #include "ash/wm/overview/window_overview.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/metrics/user_metrics_recorder.h" 9 #include "ash/metrics/user_metrics_recorder.h"
10 #include "ash/screen_util.h" 10 #include "ash/screen_util.h"
11 #include "ash/shell.h" 11 #include "ash/shell.h"
12 #include "ash/shell_window_ids.h" 12 #include "ash/shell_window_ids.h"
13 #include "ash/switchable_windows.h" 13 #include "ash/switchable_windows.h"
14 #include "ash/wm/overview/scoped_transform_overview_window.h" 14 #include "ash/wm/overview/scoped_transform_overview_window.h"
15 #include "ash/wm/overview/window_selector.h" 15 #include "ash/wm/overview/window_selector.h"
16 #include "ash/wm/overview/window_selector_item.h" 16 #include "ash/wm/overview/window_selector_item.h"
17 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
18 #include "third_party/skia/include/core/SkColor.h" 18 #include "third_party/skia/include/core/SkColor.h"
19 #include "ui/aura/client/cursor_client.h" 19 #include "ui/aura/client/cursor_client.h"
20 #include "ui/aura/root_window.h"
21 #include "ui/aura/window.h" 20 #include "ui/aura/window.h"
21 #include "ui/aura/window_event_dispatcher.h"
22 #include "ui/compositor/scoped_layer_animation_settings.h" 22 #include "ui/compositor/scoped_layer_animation_settings.h"
23 #include "ui/events/event.h" 23 #include "ui/events/event.h"
24 #include "ui/views/background.h" 24 #include "ui/views/background.h"
25 #include "ui/views/widget/widget.h" 25 #include "ui/views/widget/widget.h"
26 26
27 namespace ash { 27 namespace ash {
28 28
29 namespace { 29 namespace {
30 30
31 // Conceptually the window overview is a table or grid of cells having this 31 // Conceptually the window overview is a table or grid of cells having this
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 } 447 }
448 448
449 gfx::Rect WindowOverview::GetSelectionBounds(size_t index) { 449 gfx::Rect WindowOverview::GetSelectionBounds(size_t index) {
450 gfx::Rect bounds((*windows_)[index]->bounds()); 450 gfx::Rect bounds((*windows_)[index]->bounds());
451 bounds.Inset(-kWindowOverviewSelectionPadding, 451 bounds.Inset(-kWindowOverviewSelectionPadding,
452 -kWindowOverviewSelectionPadding); 452 -kWindowOverviewSelectionPadding);
453 return bounds; 453 return bounds;
454 } 454 }
455 455
456 } // namespace ash 456 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/overview/scoped_window_copy.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698