Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: chrome/browser/tab_contents/interstitial_page.h

Issue 164458: Land http://codereview.chromium.org/159067: (Closed)
Patch Set: undo docs Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 bool action_taken() const { return action_taken_; } 80 bool action_taken() const { return action_taken_; }
81 81
82 // Sets the focus to the interstitial. 82 // Sets the focus to the interstitial.
83 void Focus(); 83 void Focus();
84 84
85 // Focus the first (last if reverse is true) element in the interstitial page. 85 // Focus the first (last if reverse is true) element in the interstitial page.
86 // Called when tab traversing. 86 // Called when tab traversing.
87 void FocusThroughTabTraversal(bool reverse); 87 void FocusThroughTabTraversal(bool reverse);
88 88
89 virtual ViewType::Type GetRenderViewType() const {
90 return ViewType::INTERSTITIAL_PAGE;
91 }
92 virtual int GetBrowserWindowID() const;
93
89 protected: 94 protected:
90 // NotificationObserver method: 95 // NotificationObserver method:
91 virtual void Observe(NotificationType type, 96 virtual void Observe(NotificationType type,
92 const NotificationSource& source, 97 const NotificationSource& source,
93 const NotificationDetails& details); 98 const NotificationDetails& details);
94 99
95 // RenderViewHostDelegate implementation: 100 // RenderViewHostDelegate implementation:
96 virtual View* GetViewDelegate(); 101 virtual View* GetViewDelegate();
97 virtual const GURL& GetURL() const; 102 virtual const GURL& GetURL() const;
98 virtual void RenderViewGone(RenderViewHost* render_view_host); 103 virtual void RenderViewGone(RenderViewHost* render_view_host);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 typedef std::map<TabContents*,InterstitialPage*> InterstitialPageMap; 209 typedef std::map<TabContents*,InterstitialPage*> InterstitialPageMap;
205 static InterstitialPageMap* tab_to_interstitial_page_; 210 static InterstitialPageMap* tab_to_interstitial_page_;
206 211
207 // Settings passed to the renderer. 212 // Settings passed to the renderer.
208 RendererPreferences renderer_preferences_; 213 RendererPreferences renderer_preferences_;
209 214
210 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); 215 DISALLOW_COPY_AND_ASSIGN(InterstitialPage);
211 }; 216 };
212 217
213 #endif // #ifndef CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ 218 #endif // #ifndef CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.h ('k') | chrome/browser/tab_contents/interstitial_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698