Chromium Code Reviews| 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_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 | 9 |
| 10 class GURL; | 10 class GURL; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 72 // the target URL. | 72 // the target URL. |
| 73 // Warning: 'this' has been deleted when this method returns. | 73 // Warning: 'this' has been deleted when this method returns. |
| 74 virtual void Proceed() = 0; | 74 virtual void Proceed() = 0; |
| 75 | 75 |
| 76 // Sizes the RenderViewHost showing the actual interstitial page contents. | 76 // Sizes the RenderViewHost showing the actual interstitial page contents. |
| 77 virtual void SetSize(const gfx::Size& size) = 0; | 77 virtual void SetSize(const gfx::Size& size) = 0; |
| 78 | 78 |
| 79 // Sets the focus to the interstitial. | 79 // Sets the focus to the interstitial. |
| 80 virtual void Focus() = 0; | 80 virtual void Focus() = 0; |
| 81 | 81 |
| 82 virtual RenderViewHost* GetRenderViewHostForTesting() const = 0; | 82 // Gets the RenderViewHost associated with the Interstitial Page. |
| 83 // Used for routing gestures to the interstitial in Android as it shares a | |
|
Bernhard Bauer
2014/12/22 14:50:05
Nit: I would probably rephrase this slightly, to n
knn
2015/01/07 23:50:29
Done.
| |
| 84 // single platform window for all tabs. | |
| 85 virtual RenderViewHost* GetRenderViewHost() const = 0; | |
|
Charlie Reis
2015/01/07 20:55:38
Can you expose RenderFrameHost* GetMainFrame() ins
knn
2015/01/07 23:50:29
Done.
| |
| 86 | |
| 83 virtual InterstitialPageDelegate* GetDelegateForTesting() = 0; | 87 virtual InterstitialPageDelegate* GetDelegateForTesting() = 0; |
| 84 virtual void DontCreateViewForTesting() = 0; | 88 virtual void DontCreateViewForTesting() = 0; |
| 85 }; | 89 }; |
| 86 | 90 |
| 87 } // namespace content | 91 } // namespace content |
| 88 | 92 |
| 89 #endif // CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ | 93 #endif // CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ |
| OLD | NEW |