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

Unified Diff: ash/laser/laser_pointer_view.h

Issue 2361563002: chromeos: Laser tool blocks events from propagating. (Closed)
Patch Set: Created 4 years, 3 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 | « ash/laser/laser_pointer_points_test_api.cc ('k') | ash/laser/laser_pointer_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/laser/laser_pointer_view.h
diff --git a/ash/common/system/chromeos/palette/tools/laser_pointer_view.h b/ash/laser/laser_pointer_view.h
similarity index 66%
rename from ash/common/system/chromeos/palette/tools/laser_pointer_view.h
rename to ash/laser/laser_pointer_view.h
index 1024467f01a5b66966bf8bcccfb3af6366a7e6b5..11ff272965901cbd8b7fb4433c2ba0adb999e3c9 100644
--- a/ash/common/system/chromeos/palette/tools/laser_pointer_view.h
+++ b/ash/laser/laser_pointer_view.h
@@ -2,15 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_VIEW_H_
-#define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_VIEW_H_
+#ifndef ASH_LASER_LASER_POINTER_VIEW_H_
+#define ASH_LASER_LASER_POINTER_VIEW_H_
#include <memory>
-#include "ash/common/system/chromeos/palette/tools/laser_pointer_points.h"
+#include "ash/laser/laser_pointer_points.h"
#include "base/macros.h"
#include "ui/views/view.h"
+namespace aura {
+class Window;
+}
+
namespace gfx {
class Point;
}
@@ -26,14 +30,18 @@ namespace ash {
// trail of lines to help users track.
class LaserPointerView : public views::View {
public:
- explicit LaserPointerView(base::TimeDelta life_duration);
+ LaserPointerView(base::TimeDelta life_duration, aura::Window* root_window);
~LaserPointerView() override;
void AddNewPoint(const gfx::Point& new_point);
void Stop();
+ aura::Window* GetRootWindow();
+
+ // Reparents the widget if needed.
+ void ReparentWidget(aura::Window* new_root_window);
private:
- friend class LaserPointerModeTestApi;
+ friend class LaserPointerControllerTestApi;
// view::View:
void OnPaint(gfx::Canvas* canvas) override;
@@ -46,4 +54,4 @@ class LaserPointerView : public views::View {
} // namespace ash
-#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_VIEW_H_
+#endif // ASH_LASER_LASER_POINTER_VIEW_H_
« no previous file with comments | « ash/laser/laser_pointer_points_test_api.cc ('k') | ash/laser/laser_pointer_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698