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

Side by Side Diff: chrome/browser/ui/views/status_icons/status_tray_linux.cc

Issue 23922007: Merge the LinuxUI interface from its own .so into libviews.so. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/status_icons/status_tray_linux.h" 5 #include "chrome/browser/ui/views/status_icons/status_tray_linux.h"
6 6
7 #ifndef OS_CHROMEOS 7 #if !defined(OS_CHROMEOS)
8 #include "chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.h" 8 #include "chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.h"
9 #include "ui/linux_ui/linux_ui.h" 9 #include "ui/views/linux_ui/linux_ui.h"
10 10
11 StatusTrayLinux::StatusTrayLinux() { 11 StatusTrayLinux::StatusTrayLinux() {
12 } 12 }
13 13
14 StatusTrayLinux::~StatusTrayLinux() { 14 StatusTrayLinux::~StatusTrayLinux() {
15 } 15 }
16 16
17 StatusIcon* StatusTrayLinux::CreatePlatformStatusIcon( 17 StatusIcon* StatusTrayLinux::CreatePlatformStatusIcon(
18 StatusIconType type, 18 StatusIconType type,
19 const gfx::ImageSkia& image, 19 const gfx::ImageSkia& image,
20 const string16& tool_tip) { 20 const string16& tool_tip) {
21 return StatusIconLinuxWrapper::CreateWrappedStatusIcon(image, tool_tip); 21 return StatusIconLinuxWrapper::CreateWrappedStatusIcon(image, tool_tip);
22 } 22 }
23 23
24 StatusTray* StatusTray::Create() { 24 StatusTray* StatusTray::Create() {
25 const ui::LinuxUI* linux_ui = ui::LinuxUI::instance(); 25 const views::LinuxUI* linux_ui = views::LinuxUI::instance();
26 26
27 // Only create a status tray if we can actually create status icons. 27 // Only create a status tray if we can actually create status icons.
28 if (linux_ui && linux_ui->IsStatusIconSupported()) 28 if (linux_ui && linux_ui->IsStatusIconSupported())
29 return new StatusTrayLinux(); 29 return new StatusTrayLinux();
30 return NULL; 30 return NULL;
31 } 31 }
32 #else 32 #else // defined(OS_CHROMEOS)
33 StatusTray* StatusTray::Create() { 33 StatusTray* StatusTray::Create() {
34 return NULL; 34 return NULL;
35 } 35 }
36 #endif 36 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698