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 ActionState action_taken() const { return action_taken_; } | 95 ActionState action_taken() const { return action_taken_; } |
96 | 96 |
97 // Sets the focus to the interstitial. | 97 // Sets the focus to the interstitial. |
98 void Focus(); | 98 void Focus(); |
99 | 99 |
100 // Focus the first (last if reverse is true) element in the interstitial page. | 100 // Focus the first (last if reverse is true) element in the interstitial page. |
101 // Called when tab traversing. | 101 // Called when tab traversing. |
102 void FocusThroughTabTraversal(bool reverse); | 102 void FocusThroughTabTraversal(bool reverse); |
103 | 103 |
104 virtual ViewType::Type GetRenderViewType() const; | 104 virtual ViewType::Type GetRenderViewType() const; |
105 virtual int GetBrowserWindowID() const; | |
106 | 105 |
107 // See description above field. | 106 // See description above field. |
108 void set_reload_on_dont_proceed(bool value) { | 107 void set_reload_on_dont_proceed(bool value) { |
109 reload_on_dont_proceed_ = value; | 108 reload_on_dont_proceed_ = value; |
110 } | 109 } |
111 bool reload_on_dont_proceed() const { return reload_on_dont_proceed_; } | 110 bool reload_on_dont_proceed() const { return reload_on_dont_proceed_; } |
112 | 111 |
113 virtual void UpdateInspectorSetting(const std::string& key, | 112 virtual void UpdateInspectorSetting(const std::string& key, |
114 const std::string& value); | 113 const std::string& value); |
115 virtual void ClearInspectorSettings(); | 114 virtual void ClearInspectorSettings(); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; | 238 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; |
240 static InterstitialPageMap* tab_to_interstitial_page_; | 239 static InterstitialPageMap* tab_to_interstitial_page_; |
241 | 240 |
242 // Settings passed to the renderer. | 241 // Settings passed to the renderer. |
243 RendererPreferences renderer_preferences_; | 242 RendererPreferences renderer_preferences_; |
244 | 243 |
245 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); | 244 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); |
246 }; | 245 }; |
247 | 246 |
248 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 247 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
OLD | NEW |