| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // Sets the focus to the interstitial. | 105 // Sets the focus to the interstitial. |
| 106 void Focus(); | 106 void Focus(); |
| 107 | 107 |
| 108 // Focus the first (last if reverse is true) element in the interstitial page. | 108 // Focus the first (last if reverse is true) element in the interstitial page. |
| 109 // Called when tab traversing. | 109 // Called when tab traversing. |
| 110 void FocusThroughTabTraversal(bool reverse); | 110 void FocusThroughTabTraversal(bool reverse); |
| 111 | 111 |
| 112 virtual content::ViewType GetRenderViewType() const OVERRIDE; | 112 virtual content::ViewType GetRenderViewType() const OVERRIDE; |
| 113 | 113 |
| 114 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
| 115 |
| 114 // See description above field. | 116 // See description above field. |
| 115 void set_reload_on_dont_proceed(bool value) { | 117 void set_reload_on_dont_proceed(bool value) { |
| 116 reload_on_dont_proceed_ = value; | 118 reload_on_dont_proceed_ = value; |
| 117 } | 119 } |
| 118 bool reload_on_dont_proceed() const { return reload_on_dont_proceed_; } | 120 bool reload_on_dont_proceed() const { return reload_on_dont_proceed_; } |
| 119 | 121 |
| 120 protected: | 122 protected: |
| 121 // content::NotificationObserver method: | 123 // content::NotificationObserver method: |
| 122 virtual void Observe(int type, | 124 virtual void Observe(int type, |
| 123 const content::NotificationSource& source, | 125 const content::NotificationSource& source, |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; | 252 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; |
| 251 static InterstitialPageMap* tab_to_interstitial_page_; | 253 static InterstitialPageMap* tab_to_interstitial_page_; |
| 252 | 254 |
| 253 // Settings passed to the renderer. | 255 // Settings passed to the renderer. |
| 254 content::RendererPreferences renderer_preferences_; | 256 content::RendererPreferences renderer_preferences_; |
| 255 | 257 |
| 256 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); | 258 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); |
| 257 }; | 259 }; |
| 258 | 260 |
| 259 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 261 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| OLD | NEW |