Index: ash/magnifier/magnified_cursor.h |
diff --git a/ash/magnifier/magnified_cursor.h b/ash/magnifier/magnified_cursor.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2c16338b2f693564e711cc50dc70e268c62ed7a6 |
--- /dev/null |
+++ b/ash/magnifier/magnified_cursor.h |
@@ -0,0 +1,43 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ASH_MAGNIFIER_MAGNIFIED_CURSOR_H_ |
+#define ASH_MAGNIFIER_MAGNIFIED_CURSOR_H_ |
+#pragma once |
+ |
+#include "ui/compositor/layer_delegate.h" |
+#include "ui/compositor/layer.h" |
+#include "ui/gfx/image/image.h" |
+#include "ui/gfx/canvas.h" |
+ |
+namespace aura { |
+class RootWindow; |
+} |
+ |
+namespace ash { |
+namespace internal { |
+ |
+class MagnifiedCursor: public ui::LayerDelegate { |
sky
2012/05/16 15:40:48
space after cursor.
yoshiki
2012/05/17 17:19:32
Done.
|
+ public: |
+ MagnifiedCursor(aura::RootWindow* root_window); |
sky
2012/05/16 15:40:48
explicit
yoshiki
2012/05/17 17:19:32
Done.
|
+ virtual ~MagnifiedCursor() {} |
+ |
+ ui::Layer* layer() { return layer_.get(); } |
+ void MovePointer(gfx::Point position); |
+ void SetVisible(bool show); |
+ |
+ // ui::LayerDelegate implementation: |
+ virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; |
+ |
+ private: |
+ scoped_ptr<ui::Layer> layer_; |
+ aura::RootWindow* root_window_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(MagnifiedCursor); |
+}; |
+ |
+} |
+} |
+ |
+#endif // ASH_MAGNIFIER_MAGNIFIED_CURSOR_H_ |