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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // Returns the amount the animating window should be translated in response to | 76 // Returns the amount the animating window should be translated in response to |
77 // the overscroll gesture. | 77 // the overscroll gesture. |
78 gfx::Vector2d GetTranslationForOverscroll(int delta_x, int delta_y); | 78 gfx::Vector2d GetTranslationForOverscroll(int delta_x, int delta_y); |
79 | 79 |
80 // Overridden from WebContentsView: | 80 // Overridden from WebContentsView: |
81 virtual void CreateView( | 81 virtual void CreateView( |
82 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; | 82 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; |
83 virtual RenderWidgetHostView* CreateViewForWidget( | 83 virtual RenderWidgetHostView* CreateViewForWidget( |
84 RenderWidgetHost* render_widget_host) OVERRIDE; | 84 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 85 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
| 86 RenderWidgetHost* render_widget_host) OVERRIDE; |
85 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 87 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
86 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 88 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
87 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 89 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
88 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; | 90 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; |
89 virtual void SetPageTitle(const string16& title) OVERRIDE; | 91 virtual void SetPageTitle(const string16& title) OVERRIDE; |
90 virtual void OnTabCrashed(base::TerminationStatus status, | 92 virtual void OnTabCrashed(base::TerminationStatus status, |
91 int error_code) OVERRIDE; | 93 int error_code) OVERRIDE; |
92 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 94 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
93 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 95 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
94 virtual void Focus() OVERRIDE; | 96 virtual void Focus() OVERRIDE; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // This is the completed overscroll gesture. This is used for the animation | 190 // This is the completed overscroll gesture. This is used for the animation |
189 // callback that happens in response to a completed overscroll gesture. | 191 // callback that happens in response to a completed overscroll gesture. |
190 OverscrollMode completed_overscroll_gesture_; | 192 OverscrollMode completed_overscroll_gesture_; |
191 | 193 |
192 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 194 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
193 }; | 195 }; |
194 | 196 |
195 } // namespace content | 197 } // namespace content |
196 | 198 |
197 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 199 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
OLD | NEW |