| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |