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 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 #if defined(OS_WIN) | 163 #if defined(OS_WIN) |
160 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | 164 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; |
161 #endif | 165 #endif |
162 | 166 |
163 bool enabled() const { return enabled_; } | 167 bool enabled() const { return enabled_; } |
164 WebContents* web_contents() const; | 168 WebContents* web_contents() const; |
165 const GURL& url() const { return url_; } | 169 const GURL& url() const { return url_; } |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 295 |
292 // Whether the throbber should be paused. This is true from the moment the | 296 // Whether the throbber should be paused. This is true from the moment the |
293 // interstitial is shown until the moment the interstitial goes away or the | 297 // interstitial is shown until the moment the interstitial goes away or the |
294 // user chooses to proceed. | 298 // user chooses to proceed. |
295 bool pause_throbber_; | 299 bool pause_throbber_; |
296 | 300 |
297 scoped_ptr<InterstitialPageDelegate> delegate_; | 301 scoped_ptr<InterstitialPageDelegate> delegate_; |
298 | 302 |
299 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 303 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
300 | 304 |
| 305 TextInputState text_input_state_; |
| 306 |
301 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 307 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
302 | 308 |
303 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 309 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
304 }; | 310 }; |
305 | 311 |
306 } // namespace content | 312 } // namespace content |
307 | 313 |
308 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 314 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
OLD | NEW |