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_INTERSTITIAL_PAGE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 int32 page_id, | 95 int32 page_id, |
96 const string16& title, | 96 const string16& title, |
97 base::i18n::TextDirection title_direction) OVERRIDE; | 97 base::i18n::TextDirection title_direction) OVERRIDE; |
98 virtual content::RendererPreferences GetRendererPrefs( | 98 virtual content::RendererPreferences GetRendererPrefs( |
99 content::BrowserContext* browser_context) const OVERRIDE; | 99 content::BrowserContext* browser_context) const OVERRIDE; |
100 virtual webkit_glue::WebPreferences GetWebkitPrefs() OVERRIDE; | 100 virtual webkit_glue::WebPreferences GetWebkitPrefs() OVERRIDE; |
101 virtual content::ViewType GetRenderViewType() const OVERRIDE; | 101 virtual content::ViewType GetRenderViewType() const OVERRIDE; |
102 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; | 102 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
103 | 103 |
104 // RenderWidgetHostDelegate implementation: | 104 // RenderWidgetHostDelegate implementation: |
105 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 105 virtual bool PreHandleKeyboardEvent( |
106 bool* is_keyboard_shortcut) OVERRIDE; | 106 const content::NativeWebKeyboardEvent& event, |
| 107 bool* is_keyboard_shortcut) OVERRIDE; |
107 virtual void HandleKeyboardEvent( | 108 virtual void HandleKeyboardEvent( |
108 const NativeWebKeyboardEvent& event) OVERRIDE; | 109 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
109 | 110 |
110 bool enabled() const { return enabled_; } | 111 bool enabled() const { return enabled_; } |
111 content::WebContents* web_contents() const; | 112 content::WebContents* web_contents() const; |
112 const GURL& url() const { return url_; } | 113 const GURL& url() const { return url_; } |
113 | 114 |
114 // Creates the RenderViewHost containing the interstitial content. | 115 // Creates the RenderViewHost containing the interstitial content. |
115 // Overriden in unit tests. | 116 // Overriden in unit tests. |
116 virtual content::RenderViewHost* CreateRenderViewHost(); | 117 virtual content::RenderViewHost* CreateRenderViewHost(); |
117 | 118 |
118 // Creates the WebContentsView that shows the interstitial RVH. | 119 // Creates the WebContentsView that shows the interstitial RVH. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 mutable content::RendererPreferences renderer_preferences_; | 194 mutable content::RendererPreferences renderer_preferences_; |
194 | 195 |
195 bool create_view_; | 196 bool create_view_; |
196 | 197 |
197 scoped_ptr<content::InterstitialPageDelegate> delegate_; | 198 scoped_ptr<content::InterstitialPageDelegate> delegate_; |
198 | 199 |
199 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 200 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
200 }; | 201 }; |
201 | 202 |
202 #endif // CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ | 203 #endif // CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ |
OLD | NEW |