1 // Copyright (c) 2011 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.
5 #include "chrome/browser/ui/views/status_icons/status_tray_linux.h"
7 #if !defined(OS_CHROMEOS)
8 #include "chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.h"
9 #include "ui/views/linux_ui/linux_ui.h"
11 StatusTrayLinux::StatusTrayLinux() {
14 StatusTrayLinux::~StatusTrayLinux() {
17 StatusIcon
* StatusTrayLinux::CreatePlatformStatusIcon(
19 const gfx::ImageSkia
& image
,
20 const base::string16
& tool_tip
) {
21 return StatusIconLinuxWrapper::CreateWrappedStatusIcon(image
, tool_tip
);
24 StatusTray
* StatusTray::Create() {
25 const views::LinuxUI
* linux_ui
= views::LinuxUI::instance();
27 // Only create a status tray if we can actually create status icons.
28 if (linux_ui
&& linux_ui
->IsStatusIconSupported())
29 return new StatusTrayLinux();
32 #else // defined(OS_CHROMEOS)
33 StatusTray
* StatusTray::Create() {