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

Unified Diff: ash/wm/partial_screenshot_view.h

Issue 13006010: Add support for taking partial screenshot using touch (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: updates Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/wm/partial_screenshot_view.cc » ('j') | ash/wm/partial_screenshot_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/partial_screenshot_view.h
diff --git a/ash/wm/partial_screenshot_view.h b/ash/wm/partial_screenshot_view.h
index a2ca607f2ff88e93c7b3ddcea03bb6c615c073e7..2e2d88cf275c90db50edbd60f61b369cd5f8a022 100644
--- a/ash/wm/partial_screenshot_view.h
+++ b/ash/wm/partial_screenshot_view.h
@@ -38,6 +38,10 @@ class ASH_EXPORT PartialScreenshotView : public views::WidgetDelegateView {
// Returns the currently selected region.
gfx::Rect GetScreenshotRect() const;
+ void OnSelectionStarted(gfx::Point position);
sadrul 2013/03/25 22:13:24 const gfx::Point&
Yufeng Shen (Slow to review) 2013/03/25 22:38:44 Done.
+ void OnSelectionChanged(gfx::Point position);
sadrul 2013/03/25 22:13:24 ditto
Yufeng Shen (Slow to review) 2013/03/25 22:38:44 Done.
+ void OnSelectionFinished();
+
// Overridden from views::View:
virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
@@ -46,6 +50,9 @@ class ASH_EXPORT PartialScreenshotView : public views::WidgetDelegateView {
virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE;
virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
+ // Overidden from EventHandler
sadrul 2013/03/25 22:13:24 .. from ui::EventHandler:
Yufeng Shen (Slow to review) 2013/03/25 22:38:44 Done.
+ virtual void OnGestureEvent(ui::GestureEvent* event);
+
bool is_dragging_;
gfx::Point start_position_;
gfx::Point current_position_;
« no previous file with comments | « no previous file | ash/wm/partial_screenshot_view.cc » ('j') | ash/wm/partial_screenshot_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698