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

Side by Side Diff: ash/system/palette/palette_utils.cc

Issue 2895843002: chromeos: Eliminate WmWindow from //ash/system (Closed)
Patch Set: comments Created 3 years, 7 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
« no previous file with comments | « ash/system/palette/palette_tray.cc ('k') | ash/system/status_area_widget.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/system/palette/palette_utils.h" 5 #include "ash/system/palette/palette_utils.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "ash/palette_delegate.h" 8 #include "ash/palette_delegate.h"
9 #include "ash/shelf/wm_shelf.h" 9 #include "ash/shelf/wm_shelf.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
11 #include "ash/system/palette/palette_tray.h" 11 #include "ash/system/palette/palette_tray.h"
12 #include "ash/system/status_area_widget.h" 12 #include "ash/system/status_area_widget.h"
13 #include "ash/wm_window.h"
14 #include "base/command_line.h" 13 #include "base/command_line.h"
15 #include "ui/display/display.h" 14 #include "ui/display/display.h"
16 #include "ui/events/devices/input_device_manager.h" 15 #include "ui/events/devices/input_device_manager.h"
17 #include "ui/events/devices/touchscreen_device.h" 16 #include "ui/events/devices/touchscreen_device.h"
18 #include "ui/gfx/geometry/point.h" 17 #include "ui/gfx/geometry/point.h"
19 18
20 namespace ash { 19 namespace ash {
21 namespace palette_utils { 20 namespace palette_utils {
22 21
23 bool HasStylusInput() { 22 bool HasStylusInput() {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 WmShelf::ForWindow(window)->GetStatusAreaWidget()->palette_tray(); 58 WmShelf::ForWindow(window)->GetStatusAreaWidget()->palette_tray();
60 if (palette_tray && palette_tray->ContainsPointInScreen(point)) 59 if (palette_tray && palette_tray->ContainsPointInScreen(point))
61 return true; 60 return true;
62 } 61 }
63 62
64 return false; 63 return false;
65 } 64 }
66 65
67 } // namespace palette_utils 66 } // namespace palette_utils
68 } // namespace ash 67 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/palette/palette_tray.cc ('k') | ash/system/status_area_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698