diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-06 12:28:15 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-06 12:28:15 +0000 |
commit | 01a0026b14dc7943c2000bcc5a21225a69ed519f (patch) | |
tree | d954a54ce816f1e810333b221dbd1838f46eb302 /chrome/browser/ui/sad_tab.h | |
parent | f6aa4702974b6cee20bb9ce5a5da19e370e051d2 (diff) | |
download | chromium_src-01a0026b14dc7943c2000bcc5a21225a69ed519f.zip chromium_src-01a0026b14dc7943c2000bcc5a21225a69ed519f.tar.gz chromium_src-01a0026b14dc7943c2000bcc5a21225a69ed519f.tar.bz2 |
gtk: Add SabTab interface and break the dependency on gtk from SadTabHelper.
BUG=125846
TEST=navigate to chrome://crash or open the Task Manager and end some process.
Both should work fine as before, no regressions
R=erg@chromium.org
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/11316273
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/sad_tab.h')
-rw-r--r-- | chrome/browser/ui/sad_tab.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/chrome/browser/ui/sad_tab.h b/chrome/browser/ui/sad_tab.h new file mode 100644 index 0000000..b96c3e4 --- /dev/null +++ b/chrome/browser/ui/sad_tab.h @@ -0,0 +1,33 @@ +// Copyright 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_UI_SAD_TAB_H_ +#define CHROME_BROWSER_UI_SAD_TAB_H_ + +#include "chrome/browser/ui/sad_tab_types.h" + +namespace content { +class WebContents; +} + +namespace chrome { + +// Cross-platform interface to show the Sad tab UI. +class SadTab { + public: + // Factory function to create the platform specific implementations. + static SadTab* Create(content::WebContents* web_contents, SadTabKind kind); + + virtual ~SadTab() {} + + // Shows the Sad tab. + virtual void Show() = 0; + + // Closes the Sad tab. + virtual void Close() = 0; +}; + +} // namespace chrome + +#endif // CHROME_BROWSER_UI_SAD_TAB_H_ |