| 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/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class GestureNavSimple; | 32 class GestureNavSimple; |
| 33 class OverscrollNavigationOverlay; | 33 class OverscrollNavigationOverlay; |
| 34 class RenderWidgetHostImpl; | 34 class RenderWidgetHostImpl; |
| 35 class RenderWidgetHostViewAura; | 35 class RenderWidgetHostViewAura; |
| 36 class ShadowLayerDelegate; | 36 class ShadowLayerDelegate; |
| 37 class TouchSelectionControllerClientAura; | 37 class TouchSelectionControllerClientAura; |
| 38 class WebContentsViewDelegate; | 38 class WebContentsViewDelegate; |
| 39 class WebContentsImpl; | 39 class WebContentsImpl; |
| 40 class WebDragDestDelegate; | 40 class WebDragDestDelegate; |
| 41 | 41 |
| 42 class WebContentsViewAura | 42 class CONTENT_EXPORT WebContentsViewAura |
| 43 : public WebContentsView, | 43 : NON_EXPORTED_BASE(public WebContentsView), |
| 44 public RenderViewHostDelegateView, | 44 public RenderViewHostDelegateView, |
| 45 public OverscrollControllerDelegate, | 45 public OverscrollControllerDelegate, |
| 46 public aura::WindowDelegate, | 46 public aura::WindowDelegate, |
| 47 public aura::client::DragDropDelegate, | 47 public aura::client::DragDropDelegate, |
| 48 public aura::WindowObserver { | 48 public aura::WindowObserver { |
| 49 public: | 49 public: |
| 50 WebContentsViewAura(WebContentsImpl* web_contents, | 50 WebContentsViewAura(WebContentsImpl* web_contents, |
| 51 WebContentsViewDelegate* delegate); | 51 WebContentsViewDelegate* delegate); |
| 52 | 52 |
| 53 // Allow the WebContentsViewDelegate to be set explicitly. |
| 54 void SetDelegateForTesting(WebContentsViewDelegate* delegate); |
| 55 |
| 53 private: | 56 private: |
| 54 class WindowObserver; | 57 class WindowObserver; |
| 55 | 58 |
| 56 ~WebContentsViewAura() override; | 59 ~WebContentsViewAura() override; |
| 57 | 60 |
| 58 void SizeChangedCommon(const gfx::Size& size); | 61 void SizeChangedCommon(const gfx::Size& size); |
| 59 | 62 |
| 60 void EndDrag(blink::WebDragOperationsMask ops); | 63 void EndDrag(blink::WebDragOperationsMask ops); |
| 61 | 64 |
| 62 void InstallOverscrollControllerDelegate(RenderWidgetHostViewAura* view); | 65 void InstallOverscrollControllerDelegate(RenderWidgetHostViewAura* view); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // On Windows we can run into problems if resources get released within the | 202 // On Windows we can run into problems if resources get released within the |
| 200 // initialization phase while the content (and its dimensions) are not known. | 203 // initialization phase while the content (and its dimensions) are not known. |
| 201 bool is_or_was_visible_; | 204 bool is_or_was_visible_; |
| 202 | 205 |
| 203 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 206 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
| 204 }; | 207 }; |
| 205 | 208 |
| 206 } // namespace content | 209 } // namespace content |
| 207 | 210 |
| 208 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 211 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
| OLD | NEW |