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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 SessionStorageNamespace* GetSessionStorageNamespace( | 151 SessionStorageNamespace* GetSessionStorageNamespace( |
151 SiteInstance* instance) override; | 152 SiteInstance* instance) override; |
152 | 153 |
153 FrameTree* GetFrameTree() override; | 154 FrameTree* GetFrameTree() override; |
154 | 155 |
155 // RenderWidgetHostDelegate implementation: | 156 // RenderWidgetHostDelegate implementation: |
156 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; | 157 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; |
157 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 158 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
158 bool* is_keyboard_shortcut) override; | 159 bool* is_keyboard_shortcut) override; |
159 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 160 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
| 161 TextInputManager* GetTextInputManager() override; |
160 | 162 |
161 bool enabled() const { return enabled_; } | 163 bool enabled() const { return enabled_; } |
162 WebContents* web_contents() const; | 164 WebContents* web_contents() const; |
163 const GURL& url() const { return url_; } | 165 const GURL& url() const { return url_; } |
164 | 166 |
165 // Creates the WebContentsView that shows the interstitial RVH. | 167 // Creates the WebContentsView that shows the interstitial RVH. |
166 // Overriden in unit tests. | 168 // Overriden in unit tests. |
167 virtual WebContentsView* CreateWebContentsView(); | 169 virtual WebContentsView* CreateWebContentsView(); |
168 | 170 |
169 // Notification magic. | 171 // Notification magic. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 299 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
298 | 300 |
299 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 301 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
300 | 302 |
301 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 303 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
302 }; | 304 }; |
303 | 305 |
304 } // namespace content | 306 } // namespace content |
305 | 307 |
306 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 308 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
OLD | NEW |