OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/utility/partial_screenshot_controller.h" | 5 #include "ash/utility/partial_screenshot_controller.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "ash/screenshot_delegate.h" | 9 #include "ash/screenshot_delegate.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
11 #include "ash/shell_window_ids.h" | 11 #include "ash/shell_window_ids.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "ui/compositor/paint_recorder.h" | 13 #include "ui/compositor/paint_recorder.h" |
| 14 #include "ui/events/event.h" |
14 #include "ui/events/event_handler.h" | 15 #include "ui/events/event_handler.h" |
15 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
16 #include "ui/wm/core/cursor_manager.h" | 17 #include "ui/wm/core/cursor_manager.h" |
17 | 18 |
18 namespace ash { | 19 namespace ash { |
19 | 20 |
20 namespace { | 21 namespace { |
21 | 22 |
22 // The size to increase the invalidated area in the layer to repaint. The area | 23 // The size to increase the invalidated area in the layer to repaint. The area |
23 // should be slightly bigger than the actual region because the region indicator | 24 // should be slightly bigger than the actual region because the region indicator |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 return; | 259 return; |
259 Cancel(); | 260 Cancel(); |
260 } | 261 } |
261 | 262 |
262 void PartialScreenshotController::OnDisplayMetricsChanged( | 263 void PartialScreenshotController::OnDisplayMetricsChanged( |
263 const gfx::Display& display, | 264 const gfx::Display& display, |
264 uint32_t changed_metrics) { | 265 uint32_t changed_metrics) { |
265 } | 266 } |
266 | 267 |
267 } // namespace ash | 268 } // namespace ash |
OLD | NEW |