OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AURA_OVERSCROLL_NAVIGATION_OVERLAY_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_NAVIGATION_OVERLAY_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_NAVIGATION_OVERLAY_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_NAVIGATION_OVERLAY_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "content/browser/web_contents/aura/overscroll_window_animation.h" | 10 #include "content/browser/web_contents/aura/overscroll_window_animation.h" |
11 #include "content/browser/web_contents/web_contents_view_aura.h" | 11 #include "content/browser/web_contents/web_contents_view_aura.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
14 #include "ui/gfx/image/image.h" | 14 #include "ui/gfx/image/image.h" |
15 | 15 |
16 struct ViewHostMsg_UpdateRect_Params; | |
17 | |
18 namespace content { | 16 namespace content { |
19 | 17 |
20 class OverscrollWindowDelegate; | |
21 class OverscrollNavigationOverlayTest; | 18 class OverscrollNavigationOverlayTest; |
22 | 19 |
23 // When a history navigation is triggered at the end of an overscroll | 20 // When a history navigation is triggered at the end of an overscroll |
24 // navigation, it is necessary to show the history-screenshot until the page is | 21 // navigation, it is necessary to show the history-screenshot until the page is |
25 // done navigating and painting. This class accomplishes this by calling the | 22 // done navigating and painting. This class accomplishes this by calling the |
26 // navigation and creating, showing and destroying the screenshot window on top | 23 // navigation and creating, showing and destroying the screenshot window on top |
27 // of the page until the page has completed loading and painting. When the | 24 // of the page until the page has completed loading and painting. When the |
28 // overscroll completes, this screenshot window is returned by | 25 // overscroll completes, this screenshot window is returned by |
29 // OnOverscrollComplete and |window_| is set to own it. | 26 // OnOverscrollComplete and |window_| is set to own it. |
30 // There are two overscroll cases, for the first one the main window is the web | 27 // There are two overscroll cases, for the first one the main window is the web |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 115 |
119 // The window that hosts the web contents. | 116 // The window that hosts the web contents. |
120 aura::Window* web_contents_window_; | 117 aura::Window* web_contents_window_; |
121 | 118 |
122 DISALLOW_COPY_AND_ASSIGN(OverscrollNavigationOverlay); | 119 DISALLOW_COPY_AND_ASSIGN(OverscrollNavigationOverlay); |
123 }; | 120 }; |
124 | 121 |
125 } // namespace content | 122 } // namespace content |
126 | 123 |
127 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_NAVIGATION_OVERLAY_H_ | 124 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_NAVIGATION_OVERLAY_H_ |
OLD | NEW |