| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 ActionState action_taken() const { return action_taken_; } | 96 ActionState action_taken() const { return action_taken_; } |
| 97 | 97 |
| 98 // Sets the focus to the interstitial. | 98 // Sets the focus to the interstitial. |
| 99 void Focus(); | 99 void Focus(); |
| 100 | 100 |
| 101 // Focus the first (last if reverse is true) element in the interstitial page. | 101 // Focus the first (last if reverse is true) element in the interstitial page. |
| 102 // Called when tab traversing. | 102 // Called when tab traversing. |
| 103 void FocusThroughTabTraversal(bool reverse); | 103 void FocusThroughTabTraversal(bool reverse); |
| 104 | 104 |
| 105 virtual content::ViewType GetRenderViewType() const; | 105 virtual content::ViewType GetRenderViewType() const OVERRIDE; |
| 106 | 106 |
| 107 // See description above field. | 107 // See description above field. |
| 108 void set_reload_on_dont_proceed(bool value) { | 108 void set_reload_on_dont_proceed(bool value) { |
| 109 reload_on_dont_proceed_ = value; | 109 reload_on_dont_proceed_ = value; |
| 110 } | 110 } |
| 111 bool reload_on_dont_proceed() const { return reload_on_dont_proceed_; } | 111 bool reload_on_dont_proceed() const { return reload_on_dont_proceed_; } |
| 112 | 112 |
| 113 protected: | 113 protected: |
| 114 // content::NotificationObserver method: | 114 // content::NotificationObserver method: |
| 115 virtual void Observe(int type, | 115 virtual void Observe(int type, |
| 116 const content::NotificationSource& source, | 116 const content::NotificationSource& source, |
| 117 const content::NotificationDetails& details); | 117 const content::NotificationDetails& details) OVERRIDE; |
| 118 | 118 |
| 119 // RenderViewHostDelegate implementation: | 119 // RenderViewHostDelegate implementation: |
| 120 virtual View* GetViewDelegate() OVERRIDE; | 120 virtual View* GetViewDelegate() OVERRIDE; |
| 121 virtual const GURL& GetURL() const OVERRIDE; | 121 virtual const GURL& GetURL() const OVERRIDE; |
| 122 virtual void RenderViewGone(RenderViewHost* render_view_host, | 122 virtual void RenderViewGone(RenderViewHost* render_view_host, |
| 123 base::TerminationStatus status, | 123 base::TerminationStatus status, |
| 124 int error_code) OVERRIDE; | 124 int error_code) OVERRIDE; |
| 125 virtual void DidNavigate( | 125 virtual void DidNavigate( |
| 126 RenderViewHost* render_view_host, | 126 RenderViewHost* render_view_host, |
| 127 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 127 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; | 238 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; |
| 239 static InterstitialPageMap* tab_to_interstitial_page_; | 239 static InterstitialPageMap* tab_to_interstitial_page_; |
| 240 | 240 |
| 241 // Settings passed to the renderer. | 241 // Settings passed to the renderer. |
| 242 content::RendererPreferences renderer_preferences_; | 242 content::RendererPreferences renderer_preferences_; |
| 243 | 243 |
| 244 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); | 244 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 247 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| OLD | NEW |