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

Side by Side Diff: content/browser/web_contents/touch_editable_impl_aura.h

Issue 678973004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_TOUCH_EDITABLE_IMPL_AURA_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_TOUCH_EDITABLE_IMPL_AURA_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_TOUCH_EDITABLE_IMPL_AURA_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_TOUCH_EDITABLE_IMPL_AURA_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 namespace content { 23 namespace content {
24 class TouchEditableImplAuraTest; 24 class TouchEditableImplAuraTest;
25 25
26 // Aura specific implementation of ui::TouchEditable for a RenderWidgetHostView. 26 // Aura specific implementation of ui::TouchEditable for a RenderWidgetHostView.
27 class CONTENT_EXPORT TouchEditableImplAura 27 class CONTENT_EXPORT TouchEditableImplAura
28 : public ui::TouchEditable, 28 : public ui::TouchEditable,
29 public NON_EXPORTED_BASE(RenderWidgetHostViewAura::TouchEditingClient) { 29 public NON_EXPORTED_BASE(RenderWidgetHostViewAura::TouchEditingClient) {
30 public: 30 public:
31 virtual ~TouchEditableImplAura(); 31 ~TouchEditableImplAura() override;
32 32
33 static TouchEditableImplAura* Create(); 33 static TouchEditableImplAura* Create();
34 34
35 void AttachToView(RenderWidgetHostViewAura* view); 35 void AttachToView(RenderWidgetHostViewAura* view);
36 36
37 // Updates the |touch_selection_controller_| or ends touch editing session 37 // Updates the |touch_selection_controller_| or ends touch editing session
38 // depending on the current selection and cursor state. 38 // depending on the current selection and cursor state.
39 void UpdateEditingController(); 39 void UpdateEditingController();
40 40
41 void OverscrollStarted(); 41 void OverscrollStarted();
42 void OverscrollCompleted(); 42 void OverscrollCompleted();
43 43
44 // Overridden from RenderWidgetHostViewAura::TouchEditingClient. 44 // Overridden from RenderWidgetHostViewAura::TouchEditingClient.
45 virtual void StartTouchEditing() override; 45 void StartTouchEditing() override;
46 virtual void EndTouchEditing(bool quick) override; 46 void EndTouchEditing(bool quick) override;
47 virtual void OnSelectionOrCursorChanged(const gfx::Rect& anchor, 47 void OnSelectionOrCursorChanged(const gfx::Rect& anchor,
48 const gfx::Rect& focus) override; 48 const gfx::Rect& focus) override;
49 virtual void OnTextInputTypeChanged(ui::TextInputType type) override; 49 void OnTextInputTypeChanged(ui::TextInputType type) override;
50 virtual bool HandleInputEvent(const ui::Event* event) override; 50 bool HandleInputEvent(const ui::Event* event) override;
51 virtual void GestureEventAck(int gesture_event_type) override; 51 void GestureEventAck(int gesture_event_type) override;
52 virtual void DidStopFlinging() override; 52 void DidStopFlinging() override;
53 virtual void OnViewDestroyed() override; 53 void OnViewDestroyed() override;
54 54
55 // Overridden from ui::TouchEditable: 55 // Overridden from ui::TouchEditable:
56 virtual void SelectRect(const gfx::Point& start, 56 void SelectRect(const gfx::Point& start, const gfx::Point& end) override;
57 const gfx::Point& end) override; 57 void MoveCaretTo(const gfx::Point& point) override;
58 virtual void MoveCaretTo(const gfx::Point& point) override; 58 void GetSelectionEndPoints(gfx::Rect* p1, gfx::Rect* p2) override;
59 virtual void GetSelectionEndPoints(gfx::Rect* p1, gfx::Rect* p2) override; 59 gfx::Rect GetBounds() override;
60 virtual gfx::Rect GetBounds() override; 60 gfx::NativeView GetNativeView() const override;
61 virtual gfx::NativeView GetNativeView() const override; 61 void ConvertPointToScreen(gfx::Point* point) override;
62 virtual void ConvertPointToScreen(gfx::Point* point) override; 62 void ConvertPointFromScreen(gfx::Point* point) override;
63 virtual void ConvertPointFromScreen(gfx::Point* point) override; 63 bool DrawsHandles() override;
64 virtual bool DrawsHandles() override; 64 void OpenContextMenu(const gfx::Point& anchor) override;
65 virtual void OpenContextMenu(const gfx::Point& anchor) override; 65 bool IsCommandIdChecked(int command_id) const override;
66 virtual bool IsCommandIdChecked(int command_id) const override; 66 bool IsCommandIdEnabled(int command_id) const override;
67 virtual bool IsCommandIdEnabled(int command_id) const override; 67 bool GetAcceleratorForCommandId(int command_id,
68 virtual bool GetAcceleratorForCommandId( 68 ui::Accelerator* accelerator) override;
69 int command_id, 69 void ExecuteCommand(int command_id, int event_flags) override;
70 ui::Accelerator* accelerator) override; 70 void DestroyTouchSelection() override;
71 virtual void ExecuteCommand(int command_id, int event_flags) override;
72 virtual void DestroyTouchSelection() override;
73 71
74 protected: 72 protected:
75 TouchEditableImplAura(); 73 TouchEditableImplAura();
76 74
77 private: 75 private:
78 friend class TouchEditableImplAuraTest; 76 friend class TouchEditableImplAuraTest;
79 77
80 // A convenience function that is called after scroll/fling/overscroll ends to 78 // A convenience function that is called after scroll/fling/overscroll ends to
81 // re-activate touch selection if necessary. 79 // re-activate touch selection if necessary.
82 void ScrollEnded(); 80 void ScrollEnded();
(...skipping 24 matching lines...) Expand all
107 // Used to track if a textfield was focused when the current tap gesture 105 // Used to track if a textfield was focused when the current tap gesture
108 // happened. 106 // happened.
109 bool textfield_was_focused_on_tap_; 107 bool textfield_was_focused_on_tap_;
110 108
111 DISALLOW_COPY_AND_ASSIGN(TouchEditableImplAura); 109 DISALLOW_COPY_AND_ASSIGN(TouchEditableImplAura);
112 }; 110 };
113 111
114 } // namespace content 112 } // namespace content
115 113
116 #endif // CONTENT_BROWSER_WEB_CONTENTS_TOUCH_EDITABLE_IMPL_AURA_H_ 114 #endif // CONTENT_BROWSER_WEB_CONTENTS_TOUCH_EDITABLE_IMPL_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698