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 "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "content/public/browser/web_contents_observer.h" | 23 #include "content/public/browser/web_contents_observer.h" |
24 #include "content/public/common/renderer_preferences.h" | 24 #include "content/public/common/renderer_preferences.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 | 26 |
27 namespace content { | 27 namespace content { |
28 class NavigationEntry; | 28 class NavigationEntry; |
29 class NavigationControllerImpl; | 29 class NavigationControllerImpl; |
30 class RenderViewHostImpl; | 30 class RenderViewHostImpl; |
31 class RenderWidgetHostView; | 31 class RenderWidgetHostView; |
32 class WebContentsView; | 32 class WebContentsView; |
| 33 struct TextInputState; |
33 | 34 |
34 enum ResourceRequestAction { | 35 enum ResourceRequestAction { |
35 BLOCK, | 36 BLOCK, |
36 RESUME, | 37 RESUME, |
37 CANCEL | 38 CANCEL |
38 }; | 39 }; |
39 | 40 |
40 class CONTENT_EXPORT InterstitialPageImpl | 41 class CONTENT_EXPORT InterstitialPageImpl |
41 : public NON_EXPORTED_BASE(InterstitialPage), | 42 : public NON_EXPORTED_BASE(InterstitialPage), |
42 public NotificationObserver, | 43 public NotificationObserver, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override; | 147 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override; |
147 void ShowCreatedFullscreenWidget(int route_id) override; | 148 void ShowCreatedFullscreenWidget(int route_id) override; |
148 | 149 |
149 SessionStorageNamespace* GetSessionStorageNamespace( | 150 SessionStorageNamespace* GetSessionStorageNamespace( |
150 SiteInstance* instance) override; | 151 SiteInstance* instance) override; |
151 | 152 |
152 FrameTree* GetFrameTree() override; | 153 FrameTree* GetFrameTree() override; |
153 | 154 |
154 // RenderWidgetHostDelegate implementation: | 155 // RenderWidgetHostDelegate implementation: |
155 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; | 156 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; |
| 157 const TextInputState* GetTextInputState() override; |
| 158 void UpdateTextInputState(RenderWidgetHostViewBase* rwhv, |
| 159 bool text_input_state_changed) override; |
156 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 160 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
157 bool* is_keyboard_shortcut) override; | 161 bool* is_keyboard_shortcut) override; |
158 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 162 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
159 | 163 |
160 bool enabled() const { return enabled_; } | 164 bool enabled() const { return enabled_; } |
161 WebContents* web_contents() const; | 165 WebContents* web_contents() const; |
162 const GURL& url() const { return url_; } | 166 const GURL& url() const { return url_; } |
163 | 167 |
164 // Creates the WebContentsView that shows the interstitial RVH. | 168 // Creates the WebContentsView that shows the interstitial RVH. |
165 // Overriden in unit tests. | 169 // Overriden in unit tests. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 292 |
289 // Whether the throbber should be paused. This is true from the moment the | 293 // Whether the throbber should be paused. This is true from the moment the |
290 // interstitial is shown until the moment the interstitial goes away or the | 294 // interstitial is shown until the moment the interstitial goes away or the |
291 // user chooses to proceed. | 295 // user chooses to proceed. |
292 bool pause_throbber_; | 296 bool pause_throbber_; |
293 | 297 |
294 scoped_ptr<InterstitialPageDelegate> delegate_; | 298 scoped_ptr<InterstitialPageDelegate> delegate_; |
295 | 299 |
296 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 300 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
297 | 301 |
| 302 scoped_ptr<TextInputState> text_input_state_; |
| 303 |
298 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 304 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
299 | 305 |
300 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 306 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
301 }; | 307 }; |
302 | 308 |
303 } // namespace content | 309 } // namespace content |
304 | 310 |
305 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 311 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
OLD | NEW |