| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 // Copyright 2015 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_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_IMPL
    _H_ | 
|  | 6 #define CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_IMPL
    _H_ | 
|  | 7 | 
|  | 8 #include "content/common/content_export.h" | 
|  | 9 #include "ui/touch_selection/touch_selection_controller_aura.h" | 
|  | 10 | 
|  | 11 namespace gfx { | 
|  | 12 class PointF; | 
|  | 13 class Rect; | 
|  | 14 } | 
|  | 15 | 
|  | 16 namespace content { | 
|  | 17 class RenderWidgetHostViewAura; | 
|  | 18 | 
|  | 19 // Aura specific implementation of ui::TouchSelectionControllerAuraClient for a | 
|  | 20 // RenderWidgetHostView. | 
|  | 21 class CONTENT_EXPORT TouchSelectionControllerAuraClientImpl | 
|  | 22     : public ui::TouchSelectionControllerAuraClient { | 
|  | 23  public: | 
|  | 24   explicit TouchSelectionControllerAuraClientImpl( | 
|  | 25       RenderWidgetHostViewAura* rwhva); | 
|  | 26   ~TouchSelectionControllerAuraClientImpl() override; | 
|  | 27 | 
|  | 28  private: | 
|  | 29   // ui::TouchSelectionControllerAuraClient: | 
|  | 30   void MoveCaret(const gfx::PointF& position) override; | 
|  | 31   void MoveRangeSelectionExtent(const gfx::PointF& extent) override; | 
|  | 32   void SelectBetweenCoordinates(const gfx::PointF& base, | 
|  | 33                                 const gfx::PointF& extent) override; | 
|  | 34   aura::Window* GetParentWindow() const override; | 
|  | 35   gfx::Rect GetClientBounds() const override; | 
|  | 36   bool IsCommandIdEnabled(int command_id) const override; | 
|  | 37   void ExecuteCommand(int command_id, int event_flags) override; | 
|  | 38   void OpenContextMenu(const gfx::PointF& point) override; | 
|  | 39 | 
|  | 40   // Not owned, non-null for the lifetime of this object. | 
|  | 41   RenderWidgetHostViewAura* rwhva_; | 
|  | 42 | 
|  | 43   DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerAuraClientImpl); | 
|  | 44 }; | 
|  | 45 | 
|  | 46 }  // namespace content | 
|  | 47 | 
|  | 48 #endif  // CONTENT_BROWSER_WEB_CONTENTS_TOUCH_SELECTION_CONTROLLER_AURA_CLIENT_I
    MPL_H_ | 
| OLD | NEW | 
|---|