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

Side by Side Diff: components/sad_tab/sad_tab_client.h

Issue 543663002: Componentize sad_tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_SAD_TAB_SAD_TAB_CLIENT_H_
6 #define COMPONENTS_SAD_TAB_SAD_TAB_CLIENT_H_
7
8 #include <string>
9
10 #include "components/sad_tab/sad_tab_types.h"
11
12 namespace content {
13 class WebContents;
14 }
15
16 namespace gfx {
17 class ImageSkia;
18 }
19
20 namespace sad_tab {
21
22 class SadTabClient {
23 public:
24 virtual ~SadTabClient() {}
25
26 // Returns true if the browser is in shutdown.
27 virtual bool IsInBrowserShutdown() = 0;
28
29 // Shows the feedback page.
30 virtual void ShowFeedbackPage(content::WebContents* web_contents,
31 const std::string& description_template,
32 const std::string& category_tag) = 0;
33
34 // Returns the image to be shown on a tab of the specified kind.
35 virtual gfx::ImageSkia* GetImageForKind(SadTabKind kind) = 0;
36 };
37
38 } // namespace sad_tab
39
40 #endif // COMPONENTS_SAD_TAB_SAD_TAB_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698