OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
24 #include "content/public/browser/web_contents_observer.h" | 24 #include "content/public/browser/web_contents_observer.h" |
25 #include "content/public/common/renderer_preferences.h" | 25 #include "content/public/common/renderer_preferences.h" |
26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 class NavigationEntry; | 29 class NavigationEntry; |
30 class NavigationControllerImpl; | 30 class NavigationControllerImpl; |
31 class RenderViewHostImpl; | 31 class RenderViewHostImpl; |
32 class RenderWidgetHostView; | 32 class RenderWidgetHostView; |
| 33 class TextInputManager; |
33 class WebContentsView; | 34 class WebContentsView; |
34 | 35 |
35 enum ResourceRequestAction { | 36 enum ResourceRequestAction { |
36 BLOCK, | 37 BLOCK, |
37 RESUME, | 38 RESUME, |
38 CANCEL | 39 CANCEL |
39 }; | 40 }; |
40 | 41 |
41 class CONTENT_EXPORT InterstitialPageImpl | 42 class CONTENT_EXPORT InterstitialPageImpl |
42 : public NON_EXPORTED_BASE(InterstitialPage), | 43 : public NON_EXPORTED_BASE(InterstitialPage), |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 SessionStorageNamespace* GetSessionStorageNamespace( | 154 SessionStorageNamespace* GetSessionStorageNamespace( |
154 SiteInstance* instance) override; | 155 SiteInstance* instance) override; |
155 | 156 |
156 FrameTree* GetFrameTree() override; | 157 FrameTree* GetFrameTree() override; |
157 | 158 |
158 // RenderWidgetHostDelegate implementation: | 159 // RenderWidgetHostDelegate implementation: |
159 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; | 160 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; |
160 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 161 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
161 bool* is_keyboard_shortcut) override; | 162 bool* is_keyboard_shortcut) override; |
162 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 163 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
| 164 TextInputManager* GetTextInputManager() override; |
163 | 165 |
164 bool enabled() const { return enabled_; } | 166 bool enabled() const { return enabled_; } |
165 WebContents* web_contents() const; | 167 WebContents* web_contents() const; |
166 const GURL& url() const { return url_; } | 168 const GURL& url() const { return url_; } |
167 | 169 |
168 // Creates the WebContentsView that shows the interstitial RVH. | 170 // Creates the WebContentsView that shows the interstitial RVH. |
169 // Overriden in unit tests. | 171 // Overriden in unit tests. |
170 virtual WebContentsView* CreateWebContentsView(); | 172 virtual WebContentsView* CreateWebContentsView(); |
171 | 173 |
172 // Notification magic. | 174 // Notification magic. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 302 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
301 | 303 |
302 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 304 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
303 | 305 |
304 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 306 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
305 }; | 307 }; |
306 | 308 |
307 } // namespace content | 309 } // namespace content |
308 | 310 |
309 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 311 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
OLD | NEW |