| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 public: | 43 public: |
| 44 WebContentsViewAura(WebContentsImpl* web_contents, | 44 WebContentsViewAura(WebContentsImpl* web_contents, |
| 45 WebContentsViewDelegate* delegate); | 45 WebContentsViewDelegate* delegate); |
| 46 | 46 |
| 47 void SetupOverlayWindowForTesting(); | 47 void SetupOverlayWindowForTesting(); |
| 48 | 48 |
| 49 void SetTouchEditableForTest(TouchEditableImplAura* touch_editable); | 49 void SetTouchEditableForTest(TouchEditableImplAura* touch_editable); |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 class WindowObserver; | 52 class WindowObserver; |
| 53 #if defined(OS_WIN) |
| 54 class ChildWindowObserver; |
| 55 #endif |
| 53 | 56 |
| 54 virtual ~WebContentsViewAura(); | 57 virtual ~WebContentsViewAura(); |
| 55 | 58 |
| 56 void SizeChangedCommon(const gfx::Size& size); | 59 void SizeChangedCommon(const gfx::Size& size); |
| 57 | 60 |
| 58 void EndDrag(WebKit::WebDragOperationsMask ops); | 61 void EndDrag(WebKit::WebDragOperationsMask ops); |
| 59 | 62 |
| 60 // Creates and sets up the overlay window that will be displayed during the | 63 // Creates and sets up the overlay window that will be displayed during the |
| 61 // overscroll gesture. | 64 // overscroll gesture. |
| 62 void PrepareOverscrollWindow(); | 65 void PrepareOverscrollWindow(); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 virtual void OnDragExited() OVERRIDE; | 186 virtual void OnDragExited() OVERRIDE; |
| 184 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 187 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
| 185 | 188 |
| 186 scoped_ptr<aura::Window> window_; | 189 scoped_ptr<aura::Window> window_; |
| 187 | 190 |
| 188 // The window that shows the screenshot of the history page during an | 191 // The window that shows the screenshot of the history page during an |
| 189 // overscroll navigation gesture. | 192 // overscroll navigation gesture. |
| 190 scoped_ptr<aura::Window> overscroll_window_; | 193 scoped_ptr<aura::Window> overscroll_window_; |
| 191 | 194 |
| 192 scoped_ptr<WindowObserver> window_observer_; | 195 scoped_ptr<WindowObserver> window_observer_; |
| 196 #if defined(OS_WIN) |
| 197 scoped_ptr<ChildWindowObserver> child_window_observer_; |
| 198 #endif |
| 193 | 199 |
| 194 // The WebContentsImpl whose contents we display. | 200 // The WebContentsImpl whose contents we display. |
| 195 WebContentsImpl* web_contents_; | 201 WebContentsImpl* web_contents_; |
| 196 | 202 |
| 197 scoped_ptr<WebContentsViewDelegate> delegate_; | 203 scoped_ptr<WebContentsViewDelegate> delegate_; |
| 198 | 204 |
| 199 WebKit::WebDragOperationsMask current_drag_op_; | 205 WebKit::WebDragOperationsMask current_drag_op_; |
| 200 | 206 |
| 201 scoped_ptr<DropData> current_drop_data_; | 207 scoped_ptr<DropData> current_drop_data_; |
| 202 | 208 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 224 scoped_ptr<ShadowLayerDelegate> overscroll_shadow_; | 230 scoped_ptr<ShadowLayerDelegate> overscroll_shadow_; |
| 225 | 231 |
| 226 scoped_ptr<TouchEditableImplAura> touch_editable_; | 232 scoped_ptr<TouchEditableImplAura> touch_editable_; |
| 227 | 233 |
| 228 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 234 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
| 229 }; | 235 }; |
| 230 | 236 |
| 231 } // namespace content | 237 } // namespace content |
| 232 | 238 |
| 233 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 239 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
| OLD | NEW |