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

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

Issue 6053012: This adds a "killed tab" page and pages reload when killed on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indent Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_TAB_CONTENTS_VIEW_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 // Sets the page title for the native widgets corresponding to the view. This 75 // Sets the page title for the native widgets corresponding to the view. This
76 // is not strictly necessary and isn't expected to be displayed anywhere, but 76 // is not strictly necessary and isn't expected to be displayed anywhere, but
77 // can aid certain debugging tools such as Spy++ on Windows where you are 77 // can aid certain debugging tools such as Spy++ on Windows where you are
78 // trying to find a specific window. 78 // trying to find a specific window.
79 virtual void SetPageTitle(const std::wstring& title) = 0; 79 virtual void SetPageTitle(const std::wstring& title) = 0;
80 80
81 // Used to notify the view that a tab has crashed so each platform can 81 // Used to notify the view that a tab has crashed so each platform can
82 // prepare the sad tab. 82 // prepare the sad tab.
83 virtual void OnTabCrashed() = 0; 83 virtual void OnTabCrashed(base::TerminationStatus status,
84 int error_code) = 0;
84 85
85 // TODO(brettw) this is a hack. It's used in two places at the time of this 86 // TODO(brettw) this is a hack. It's used in two places at the time of this
86 // writing: (1) when render view hosts switch, we need to size the replaced 87 // writing: (1) when render view hosts switch, we need to size the replaced
87 // one to be correct, since it wouldn't have known about sizes that happened 88 // one to be correct, since it wouldn't have known about sizes that happened
88 // while it was hidden; (2) in constrained windows. 89 // while it was hidden; (2) in constrained windows.
89 // 90 //
90 // (1) will be fixed once interstitials are cleaned up. (2) seems like it 91 // (1) will be fixed once interstitials are cleaned up. (2) seems like it
91 // should be cleaned up or done some other way, since this works for normal 92 // should be cleaned up or done some other way, since this works for normal
92 // TabContents without the special code. 93 // TabContents without the special code.
93 virtual void SizeContents(const gfx::Size& size) = 0; 94 virtual void SizeContents(const gfx::Size& size) = 0;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 210
210 // These maps hold on to the widgets that we created on behalf of the 211 // These maps hold on to the widgets that we created on behalf of the
211 // renderer that haven't shown yet. 212 // renderer that haven't shown yet.
212 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; 213 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews;
213 PendingWidgetViews pending_widget_views_; 214 PendingWidgetViews pending_widget_views_;
214 215
215 DISALLOW_COPY_AND_ASSIGN(TabContentsView); 216 DISALLOW_COPY_AND_ASSIGN(TabContentsView);
216 }; 217 };
217 218
218 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 219 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents/tab_contents_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698