OLD | NEW |
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 #ifndef ASH_WM_PARTIAL_SCREENSHOT_VIEW_H_ | 5 #ifndef ASH_WM_PARTIAL_SCREENSHOT_VIEW_H_ |
6 #define ASH_WM_PARTIAL_SCREENSHOT_VIEW_H_ | 6 #define ASH_WM_PARTIAL_SCREENSHOT_VIEW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "ui/gfx/point.h" | 13 #include "ui/gfx/geometry/point.h" |
14 #include "ui/views/widget/widget_delegate.h" | 14 #include "ui/views/widget/widget_delegate.h" |
15 | 15 |
16 namespace ash { | 16 namespace ash { |
17 class ScreenshotDelegate; | 17 class ScreenshotDelegate; |
18 | 18 |
19 // The view of taking partial screenshot, i.e.: drawing region | 19 // The view of taking partial screenshot, i.e.: drawing region |
20 // rectangles during drag, and changing the mouse cursor to indicate | 20 // rectangles during drag, and changing the mouse cursor to indicate |
21 // the current mode. | 21 // the current mode. |
22 class ASH_EXPORT PartialScreenshotView : public views::WidgetDelegateView { | 22 class ASH_EXPORT PartialScreenshotView : public views::WidgetDelegateView { |
23 public: | 23 public: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 // ScreenshotDelegate to take the actual screenshot. No ownership. | 67 // ScreenshotDelegate to take the actual screenshot. No ownership. |
68 ScreenshotDelegate* screenshot_delegate_; | 68 ScreenshotDelegate* screenshot_delegate_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(PartialScreenshotView); | 70 DISALLOW_COPY_AND_ASSIGN(PartialScreenshotView); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace ash | 73 } // namespace ash |
74 | 74 |
75 #endif // #ifndef ASH_WM_PARTIAL_SCREENSHOT_VIEW_H_ | 75 #endif // #ifndef ASH_WM_PARTIAL_SCREENSHOT_VIEW_H_ |
OLD | NEW |