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

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

Issue 138033014: Consistent fading behavior for touch editing handles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fade out handles on destruction by default Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
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 25 matching lines...) Expand all
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 virtual void StartTouchEditing() OVERRIDE;
46 virtual void EndTouchEditing() OVERRIDE; 46 virtual void EndTouchEditing(bool quick) OVERRIDE;
47 virtual void OnSelectionOrCursorChanged(const gfx::Rect& anchor, 47 virtual 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 virtual void OnTextInputTypeChanged(ui::TextInputType type) OVERRIDE;
50 virtual bool HandleInputEvent(const ui::Event* event) OVERRIDE; 50 virtual bool HandleInputEvent(const ui::Event* event) OVERRIDE;
51 virtual void GestureEventAck(int gesture_event_type) OVERRIDE; 51 virtual void GestureEventAck(int gesture_event_type) OVERRIDE;
52 virtual void OnViewDestroyed() OVERRIDE; 52 virtual void OnViewDestroyed() OVERRIDE;
53 53
54 // Overridden from ui::TouchEditable: 54 // Overridden from ui::TouchEditable:
55 virtual void SelectRect(const gfx::Point& start, 55 virtual void SelectRect(const gfx::Point& start,
56 const gfx::Point& end) OVERRIDE; 56 const gfx::Point& end) OVERRIDE;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // this queue to keep track of the the tap count so that we can distinguish 109 // this queue to keep track of the the tap count so that we can distinguish
110 // between double and single tap when we get the ack. 110 // between double and single tap when we get the ack.
111 std::queue<int> tap_gesture_tap_count_queue_; 111 std::queue<int> tap_gesture_tap_count_queue_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(TouchEditableImplAura); 113 DISALLOW_COPY_AND_ASSIGN(TouchEditableImplAura);
114 }; 114 };
115 115
116 } // namespace content 116 } // namespace content
117 117
118 #endif // CONTENT_BROWSER_WEB_CONTENTS_TOUCH_EDITABLE_IMPL_AURA_H_ 118 #endif // CONTENT_BROWSER_WEB_CONTENTS_TOUCH_EDITABLE_IMPL_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698