This source file includes following definitions.
- CreatePlatformStatusIcon
- Create
- Create
#include "chrome/browser/ui/views/status_icons/status_tray_linux.h"
#if !defined(OS_CHROMEOS)
#include "chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.h"
#include "ui/views/linux_ui/linux_ui.h"
StatusTrayLinux::StatusTrayLinux() {
}
StatusTrayLinux::~StatusTrayLinux() {
}
StatusIcon* StatusTrayLinux::CreatePlatformStatusIcon(
StatusIconType type,
const gfx::ImageSkia& image,
const base::string16& tool_tip) {
return StatusIconLinuxWrapper::CreateWrappedStatusIcon(image, tool_tip);
}
StatusTray* StatusTray::Create() {
const views::LinuxUI* linux_ui = views::LinuxUI::instance();
if (linux_ui && linux_ui->IsStatusIconSupported())
return new StatusTrayLinux();
return NULL;
}
#else
StatusTray* StatusTray::Create() {
return NULL;
}
#endif