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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 const NotificationDetails& details) override; | 100 const NotificationDetails& details) override; |
101 | 101 |
102 // RenderFrameHostDelegate implementation: | 102 // RenderFrameHostDelegate implementation: |
103 bool OnMessageReceived(RenderFrameHost* render_frame_host, | 103 bool OnMessageReceived(RenderFrameHost* render_frame_host, |
104 const IPC::Message& message) override; | 104 const IPC::Message& message) override; |
105 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; | 105 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; |
106 void UpdateTitle(RenderFrameHost* render_frame_host, | 106 void UpdateTitle(RenderFrameHost* render_frame_host, |
107 int32_t page_id, | 107 int32_t page_id, |
108 const base::string16& title, | 108 const base::string16& title, |
109 base::i18n::TextDirection title_direction) override; | 109 base::i18n::TextDirection title_direction) override; |
| 110 InterstitialPage* GetAsInterstitialPage() override; |
110 AccessibilityMode GetAccessibilityMode() const override; | 111 AccessibilityMode GetAccessibilityMode() const override; |
111 void Cut() override; | 112 void Cut() override; |
112 void Copy() override; | 113 void Copy() override; |
113 void Paste() override; | 114 void Paste() override; |
114 void SelectAll() override; | 115 void SelectAll() override; |
115 | 116 |
116 // RenderViewHostDelegate implementation: | 117 // RenderViewHostDelegate implementation: |
117 RenderViewHostDelegateView* GetDelegateView() override; | 118 RenderViewHostDelegateView* GetDelegateView() override; |
118 bool OnMessageReceived(RenderViewHost* render_view_host, | 119 bool OnMessageReceived(RenderViewHost* render_view_host, |
119 const IPC::Message& message) override; | 120 const IPC::Message& message) override; |
(...skipping 30 matching lines...) Expand all Loading... |
150 // RenderWidgetHostDelegate implementation: | 151 // RenderWidgetHostDelegate implementation: |
151 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; | 152 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; |
152 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 153 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
153 bool* is_keyboard_shortcut) override; | 154 bool* is_keyboard_shortcut) override; |
154 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 155 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
155 #if defined(OS_WIN) | 156 #if defined(OS_WIN) |
156 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | 157 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; |
157 #endif | 158 #endif |
158 | 159 |
159 bool enabled() const { return enabled_; } | 160 bool enabled() const { return enabled_; } |
160 WebContents* web_contents() const; | 161 WebContents* web_contents() const override; |
161 const GURL& url() const { return url_; } | 162 const GURL& url() const { return url_; } |
162 | 163 |
163 // Creates the WebContentsView that shows the interstitial RVH. | 164 // Creates the WebContentsView that shows the interstitial RVH. |
164 // Overriden in unit tests. | 165 // Overriden in unit tests. |
165 virtual WebContentsView* CreateWebContentsView(); | 166 virtual WebContentsView* CreateWebContentsView(); |
166 | 167 |
167 // Notification magic. | 168 // Notification magic. |
168 NotificationRegistrar notification_registrar_; | 169 NotificationRegistrar notification_registrar_; |
169 | 170 |
170 private: | 171 private: |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; | 295 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; |
295 | 296 |
296 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; | 297 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; |
297 | 298 |
298 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); | 299 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); |
299 }; | 300 }; |
300 | 301 |
301 } // namespace content | 302 } // namespace content |
302 | 303 |
303 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ | 304 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ |
OLD | NEW |