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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 virtual RenderViewHost* GetRenderViewHostForTesting() const = 0; |
| 83 virtual InterstitialPageDelegate* GetDelegateForTesting() = 0; | 83 virtual InterstitialPageDelegate* GetDelegateForTesting() = 0; |
| 84 virtual void DontCreateViewForTesting() = 0; | 84 virtual void DontCreateViewForTesting() = 0; |
| 85 | |
| 86 #if defined(OS_ANDROID) | |
| 87 // Android shares a single view for all tabs, so we need to expose the | |
| 88 // RenderViewHost to properly route gestures to the interstitial. | |
| 89 virtual RenderViewHost* GetRenderViewHost() const = 0; | |
|
jam
2012/11/07 01:19:28
since this is only called from inside content, can
Ted C
2012/11/07 01:34:31
Done.
| |
| 90 #endif | |
| 85 }; | 91 }; |
| 86 | 92 |
| 87 } // namespace content | 93 } // namespace content |
| 88 | 94 |
| 89 #endif // CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ | 95 #endif // CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ |
| OLD | NEW |