blob: 9e9197ef148368f7359cf530c8180c389fbf294f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright 2015 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_BACKGROUND_BACKGROUND_TRIGGER_H_
#define CHROME_BROWSER_BACKGROUND_BACKGROUND_TRIGGER_H_
#include "base/strings/string16.h"
#include "ui/gfx/image/image_skia.h"
// Enables background mode if registered with the BackgroundModeManager.
class BackgroundTrigger {
public:
virtual ~BackgroundTrigger() {}
// The name to be displayed in the status icon menu and the installation
// notification.
virtual base::string16 GetName() = 0;
// The icon to be displayed in the status icon menu.
virtual gfx::ImageSkia* GetIcon() = 0;
// Handles a user's click on the status icon menu item.
virtual void OnMenuClick() = 0;
};
#endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_TRIGGER_H_
|