OLD | NEW |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 void PrepareOverscrollNavigationOverlay(); | 95 void PrepareOverscrollNavigationOverlay(); |
96 | 96 |
97 // Changes the brightness of the layer depending on the amount of horizontal | 97 // Changes the brightness of the layer depending on the amount of horizontal |
98 // overscroll (|delta_x|, in pixels). | 98 // overscroll (|delta_x|, in pixels). |
99 void UpdateOverscrollWindowBrightness(float delta_x); | 99 void UpdateOverscrollWindowBrightness(float delta_x); |
100 | 100 |
101 void AttachTouchEditableToRenderView(); | 101 void AttachTouchEditableToRenderView(); |
102 | 102 |
103 void OverscrollUpdateForWebContentsDelegate(int delta_y); | 103 void OverscrollUpdateForWebContentsDelegate(int delta_y); |
104 | 104 |
| 105 void ProcessLinkDisambiguationGesture(ui::GestureEvent* event); |
| 106 |
105 // Overridden from WebContentsView: | 107 // Overridden from WebContentsView: |
106 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 108 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
107 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 109 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
108 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 110 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
109 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; | 111 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; |
110 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 112 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
111 virtual void Focus() OVERRIDE; | 113 virtual void Focus() OVERRIDE; |
112 virtual void SetInitialFocus() OVERRIDE; | 114 virtual void SetInitialFocus() OVERRIDE; |
113 virtual void StoreFocus() OVERRIDE; | 115 virtual void StoreFocus() OVERRIDE; |
114 virtual void RestoreFocus() OVERRIDE; | 116 virtual void RestoreFocus() OVERRIDE; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 const gfx::Point& location) OVERRIDE; | 161 const gfx::Point& location) OVERRIDE; |
160 virtual bool CanFocus() OVERRIDE; | 162 virtual bool CanFocus() OVERRIDE; |
161 virtual void OnCaptureLost() OVERRIDE; | 163 virtual void OnCaptureLost() OVERRIDE; |
162 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 164 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
163 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 165 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
164 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 166 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
165 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; | 167 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; |
166 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 168 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
167 virtual bool HasHitTestMask() const OVERRIDE; | 169 virtual bool HasHitTestMask() const OVERRIDE; |
168 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 170 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
| 171 virtual void OnLinkDisambiguationPopupRequested( |
| 172 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap) OVERRIDE; |
169 | 173 |
170 // Overridden from ui::EventHandler: | 174 // Overridden from ui::EventHandler: |
171 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 175 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
172 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 176 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
173 | 177 |
174 // Overridden from aura::client::DragDropDelegate: | 178 // Overridden from aura::client::DragDropDelegate: |
175 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; | 179 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
176 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 180 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
177 virtual void OnDragExited() OVERRIDE; | 181 virtual void OnDragExited() OVERRIDE; |
178 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 182 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // On Windows we can run into problems if resources get released within the | 236 // On Windows we can run into problems if resources get released within the |
233 // initialization phase while the content (and its dimensions) are not known. | 237 // initialization phase while the content (and its dimensions) are not known. |
234 bool is_or_was_visible_; | 238 bool is_or_was_visible_; |
235 | 239 |
236 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 240 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
237 }; | 241 }; |
238 | 242 |
239 } // namespace content | 243 } // namespace content |
240 | 244 |
241 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 245 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
OLD | NEW |