OLD | NEW |
(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_ |
OLD | NEW |