| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 FrameTree* GetFrameTree() override; | 154 FrameTree* GetFrameTree() override; |
| 155 | 155 |
| 156 // RenderWidgetHostDelegate implementation: | 156 // RenderWidgetHostDelegate implementation: |
| 157 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; | 157 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; |
| 158 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 158 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 159 bool* is_keyboard_shortcut) override; | 159 bool* is_keyboard_shortcut) override; |
| 160 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 160 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
| 161 TextInputManager* GetTextInputManager() override; | 161 TextInputManager* GetTextInputManager() override; |
| 162 void GetScreenInfo(content::ScreenInfo* screen_info) override; | 162 void GetScreenInfo(content::ScreenInfo* screen_info) override; |
| 163 void UpdateDeviceScaleFactor(double device_scale_factor) override; | 163 void UpdateDeviceScaleFactor(double device_scale_factor) override; |
| 164 bool OnMessageReceived(RenderWidgetHost* render_widget_host, |
| 165 const IPC::Message& message) override; |
| 164 | 166 |
| 165 bool enabled() const { return enabled_; } | 167 bool enabled() const { return enabled_; } |
| 166 WebContents* web_contents() const; | 168 WebContents* web_contents() const; |
| 167 const GURL& url() const { return url_; } | 169 const GURL& url() const { return url_; } |
| 168 | 170 |
| 169 // Creates the WebContentsView that shows the interstitial RVH. | 171 // Creates the WebContentsView that shows the interstitial RVH. |
| 170 // Overriden in unit tests. | 172 // Overriden in unit tests. |
| 171 virtual WebContentsView* CreateWebContentsView(); | 173 virtual WebContentsView* CreateWebContentsView(); |
| 172 | 174 |
| 173 // Notification magic. | 175 // Notification magic. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 297 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
| 296 | 298 |
| 297 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 299 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
| 298 | 300 |
| 299 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 301 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
| 300 }; | 302 }; |
| 301 | 303 |
| 302 } // namespace content | 304 } // namespace content |
| 303 | 305 |
| 304 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 306 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
| OLD | NEW |