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

Side by Side Diff: content/browser/renderer_host/touch_handle_drawable_aura.h

Issue 698253004: Reland: Implement Aura side of unified touch text selection for contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased after SetVisible removal and Mikhail's directional handles patch Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TOUCH_HANDLE_DRAWABLE_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TOUCH_HANDLE_DRAWABLE_AURA_H_
7
8 #include "content/browser/renderer_host/input/touch_handle.h"
9 #include "ui/aura/window_delegate.h"
10
11 namespace content {
12
13 class TouchHandleDrawableAura : public TouchHandleDrawable,
14 public aura::WindowDelegate {
15 public:
16 explicit TouchHandleDrawableAura(aura::Window* parent);
17 virtual ~TouchHandleDrawableAura();
18
19 private:
20 // Overriden from TouchHandleDrawable.
21 virtual void SetEnabled(bool enabled) override;
22 virtual void SetOrientation(TouchHandleOrientation orientation) override;
23 virtual void SetAlpha(float alpha) override;
24 virtual void SetFocus(const gfx::PointF& position) override;
25 virtual bool IntersectsWith(const gfx::RectF& rect) const override;
26
27 // Overriden from aura::WindowDelegate.
28 virtual gfx::Size GetMinimumSize() const override;
29 virtual gfx::Size GetMaximumSize() const override;
30 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
31 const gfx::Rect& new_bounds) override;
32 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) override;
33 virtual int GetNonClientComponent(const gfx::Point& point) const override;
34 virtual bool ShouldDescendIntoChildForEventHandling(
35 aura::Window* child,
36 const gfx::Point& location) override;
37 virtual bool CanFocus() override;
38 virtual void OnCaptureLost() override;
39 virtual void OnPaint(gfx::Canvas* canvas) override;
40 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override;
41 virtual void OnWindowDestroying(aura::Window* window) override;
42 virtual void OnWindowDestroyed(aura::Window* window) override;
43 virtual void OnWindowTargetVisibilityChanged(bool visible) override;
44 virtual bool HasHitTestMask() const override;
45 virtual void GetHitTestMask(gfx::Path* mask) const override;
46
47 scoped_ptr<aura::Window> window_;
48 bool enabled_;
49 float alpha_;
50
51 DISALLOW_COPY_AND_ASSIGN(TouchHandleDrawableAura);
52 };
53
54 }
55
56 #endif // CONTENT_BROWSER_RENDERER_HOST_TOUCH_HANDLE_DRAWABLE_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698