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

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

Issue 569863003: Re-activate touch selection after fling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Notifies the client that the current text input type as changed. 109 // Notifies the client that the current text input type as changed.
110 virtual void OnTextInputTypeChanged(ui::TextInputType type) = 0; 110 virtual void OnTextInputTypeChanged(ui::TextInputType type) = 0;
111 111
112 // Notifies the client that an input event is about to be sent to the 112 // Notifies the client that an input event is about to be sent to the
113 // renderer. Returns true if the client wants to stop event propagation. 113 // renderer. Returns true if the client wants to stop event propagation.
114 virtual bool HandleInputEvent(const ui::Event* event) = 0; 114 virtual bool HandleInputEvent(const ui::Event* event) = 0;
115 115
116 // Notifies the client that a gesture event ack was received. 116 // Notifies the client that a gesture event ack was received.
117 virtual void GestureEventAck(int gesture_event_type) = 0; 117 virtual void GestureEventAck(int gesture_event_type) = 0;
118 118
119 // Notifies the client that the fling has ended, so it can activate touch
120 // editing if needed.
121 virtual void DidStopFlinging() = 0;
122
119 // This is called when the view is destroyed, so that the client can 123 // This is called when the view is destroyed, so that the client can
120 // perform any necessary clean-up. 124 // perform any necessary clean-up.
121 virtual void OnViewDestroyed() = 0; 125 virtual void OnViewDestroyed() = 0;
122 126
123 protected: 127 protected:
124 virtual ~TouchEditingClient() {} 128 virtual ~TouchEditingClient() {}
125 }; 129 };
126 130
127 void set_touch_editing_client(TouchEditingClient* client) { 131 void set_touch_editing_client(TouchEditingClient* client) {
128 touch_editing_client_ = client; 132 touch_editing_client_ = client;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 225 virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
222 BrowserAccessibilityDelegate* delegate) OVERRIDE; 226 BrowserAccessibilityDelegate* delegate) OVERRIDE;
223 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() OVERRIDE; 227 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() OVERRIDE;
224 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() 228 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible()
225 OVERRIDE; 229 OVERRIDE;
226 virtual bool LockMouse() OVERRIDE; 230 virtual bool LockMouse() OVERRIDE;
227 virtual void UnlockMouse() OVERRIDE; 231 virtual void UnlockMouse() OVERRIDE;
228 virtual void OnSwapCompositorFrame( 232 virtual void OnSwapCompositorFrame(
229 uint32 output_surface_id, 233 uint32 output_surface_id,
230 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; 234 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE;
235 virtual void DidStopFlinging() OVERRIDE;
231 236
232 #if defined(OS_WIN) 237 #if defined(OS_WIN)
233 virtual void SetParentNativeViewAccessible( 238 virtual void SetParentNativeViewAccessible(
234 gfx::NativeViewAccessible accessible_parent) OVERRIDE; 239 gfx::NativeViewAccessible accessible_parent) OVERRIDE;
235 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; 240 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE;
236 #endif 241 #endif
237 242
238 // Overridden from ui::TextInputClient: 243 // Overridden from ui::TextInputClient:
239 virtual void SetCompositionText( 244 virtual void SetCompositionText(
240 const ui::CompositionText& composition) OVERRIDE; 245 const ui::CompositionText& composition) OVERRIDE;
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; 611 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_;
607 612
608 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 613 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
609 614
610 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 615 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
611 }; 616 };
612 617
613 } // namespace content 618 } // namespace content
614 619
615 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 620 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698