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

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

Issue 12321005: Enable touch based selection and editing for webpages behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 8 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) 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_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 10 matching lines...) Expand all
21 class Window; 21 class Window;
22 } 22 }
23 23
24 namespace ui { 24 namespace ui {
25 class DropTargetEvent; 25 class DropTargetEvent;
26 } 26 }
27 27
28 namespace content { 28 namespace content {
29 class OverscrollNavigationOverlay; 29 class OverscrollNavigationOverlay;
30 class ShadowWindow; 30 class ShadowWindow;
31 class TouchEditableImplAura;
31 class WebContentsViewDelegate; 32 class WebContentsViewDelegate;
32 class WebContentsImpl; 33 class WebContentsImpl;
33 class WebDragDestDelegate; 34 class WebDragDestDelegate;
34 35
35 class CONTENT_EXPORT WebContentsViewAura 36 class CONTENT_EXPORT WebContentsViewAura
36 : public WebContentsViewPort, 37 : public WebContentsViewPort,
37 public RenderViewHostDelegateView, 38 public RenderViewHostDelegateView,
38 NON_EXPORTED_BASE(public OverscrollControllerDelegate), 39 NON_EXPORTED_BASE(public OverscrollControllerDelegate),
39 public ui::ImplicitAnimationObserver, 40 public ui::ImplicitAnimationObserver,
40 public aura::WindowDelegate, 41 public aura::WindowDelegate,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 gfx::Vector2d GetTranslationForOverscroll(int delta_x, int delta_y); 86 gfx::Vector2d GetTranslationForOverscroll(int delta_x, int delta_y);
86 87
87 // A window showing the screenshot is overlayed during a navigation triggered 88 // A window showing the screenshot is overlayed during a navigation triggered
88 // by overscroll. This function sets this up. 89 // by overscroll. This function sets this up.
89 void PrepareOverscrollNavigationOverlay(); 90 void PrepareOverscrollNavigationOverlay();
90 91
91 // Changes the brightness of the layer depending on the amount of horizontal 92 // Changes the brightness of the layer depending on the amount of horizontal
92 // overscroll (|delta_x|, in pixels). 93 // overscroll (|delta_x|, in pixels).
93 void UpdateOverscrollWindowBrightness(float delta_x); 94 void UpdateOverscrollWindowBrightness(float delta_x);
94 95
96 void AttachTouchEditableToRenderView();
97
95 // Overridden from WebContentsView: 98 // Overridden from WebContentsView:
96 virtual gfx::NativeView GetNativeView() const OVERRIDE; 99 virtual gfx::NativeView GetNativeView() const OVERRIDE;
97 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 100 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
98 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 101 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
99 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; 102 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE;
100 virtual void OnTabCrashed(base::TerminationStatus status, 103 virtual void OnTabCrashed(base::TerminationStatus status,
101 int error_code) OVERRIDE; 104 int error_code) OVERRIDE;
102 virtual void SizeContents(const gfx::Size& size) OVERRIDE; 105 virtual void SizeContents(const gfx::Size& size) OVERRIDE;
103 virtual void Focus() OVERRIDE; 106 virtual void Focus() OVERRIDE;
104 virtual void SetInitialFocus() OVERRIDE; 107 virtual void SetInitialFocus() OVERRIDE;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 OverscrollMode current_overscroll_gesture_; 220 OverscrollMode current_overscroll_gesture_;
218 221
219 // This is the completed overscroll gesture. This is used for the animation 222 // This is the completed overscroll gesture. This is used for the animation
220 // callback that happens in response to a completed overscroll gesture. 223 // callback that happens in response to a completed overscroll gesture.
221 OverscrollMode completed_overscroll_gesture_; 224 OverscrollMode completed_overscroll_gesture_;
222 225
223 // This manages the overlay window that shows the screenshot during a history 226 // This manages the overlay window that shows the screenshot during a history
224 // navigation triggered by the overscroll gesture. 227 // navigation triggered by the overscroll gesture.
225 scoped_ptr<OverscrollNavigationOverlay> navigation_overlay_; 228 scoped_ptr<OverscrollNavigationOverlay> navigation_overlay_;
226 229
230 scoped_ptr<TouchEditableImplAura> touch_editable_;
231
227 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); 232 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura);
228 }; 233 };
229 234
230 } // namespace content 235 } // namespace content
231 236
232 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 237 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698