| 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 "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/gfx/point.h" | 10 #include "ui/gfx/point.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 gfx::Rect GetScreenshotRect() const; | 39 gfx::Rect GetScreenshotRect() const; |
| 40 | 40 |
| 41 // Overridden from views::View: | 41 // Overridden from views::View: |
| 42 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; | 42 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; |
| 43 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 43 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 44 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 44 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 45 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 45 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
| 46 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; | 46 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; |
| 47 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 47 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 48 | 48 |
| 49 // Overidden from EventHandler |
| 50 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 51 |
| 52 int current_touch_id_; |
| 49 bool is_dragging_; | 53 bool is_dragging_; |
| 50 gfx::Point start_position_; | 54 gfx::Point start_position_; |
| 51 gfx::Point current_position_; | 55 gfx::Point current_position_; |
| 52 | 56 |
| 53 // The delegate to receive Cancel. No ownership. | 57 // The delegate to receive Cancel. No ownership. |
| 54 OverlayDelegate* overlay_delegate_; | 58 OverlayDelegate* overlay_delegate_; |
| 55 | 59 |
| 56 // ScreenshotDelegate to take the actual screenshot. No ownership. | 60 // ScreenshotDelegate to take the actual screenshot. No ownership. |
| 57 ScreenshotDelegate* screenshot_delegate_; | 61 ScreenshotDelegate* screenshot_delegate_; |
| 58 | 62 |
| 59 DISALLOW_COPY_AND_ASSIGN(PartialScreenshotView); | 63 DISALLOW_COPY_AND_ASSIGN(PartialScreenshotView); |
| 60 }; | 64 }; |
| 61 | 65 |
| 62 } // namespace ash | 66 } // namespace ash |
| 63 | 67 |
| 64 #endif // #ifndef ASH_WM_PARTIAL_SCREENSHOT_VIEW_H_ | 68 #endif // #ifndef ASH_WM_PARTIAL_SCREENSHOT_VIEW_H_ |
| OLD | NEW |