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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_status_icon.h

Issue 304933002: Revert of Fall back to X11 system tray icons if libappindicator is not available (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/libgtk2ui/gtk2_status_icon.h
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_status_icon.h b/chrome/browser/ui/libgtk2ui/gtk2_status_icon.h
deleted file mode 100644
index d25b487b62192425902d096d75106700b32ccb42..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/libgtk2ui/gtk2_status_icon.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2014 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_UI_LIBGTK2UI_GTK2_STATUS_ICON_H_
-#define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_STATUS_ICON_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/strings/string16.h"
-#include "chrome/browser/ui/libgtk2ui/gtk2_signal.h"
-#include "ui/base/glib/glib_integers.h"
-#include "ui/base/glib/glib_signal.h"
-#include "ui/views/linux_ui/status_icon_linux.h"
-
-typedef struct _GtkStatusIcon GtkStatusIcon;
-
-namespace gfx {
-class ImageSkia;
-}
-
-namespace ui {
-class MenuModel;
-}
-
-namespace libgtk2ui {
-class AppIndicatorIconMenu;
-
-// Status icon implementation which uses the system tray X11 spec (via
-// GtkStatusIcon).
-class Gtk2StatusIcon : public views::StatusIconLinux {
- public:
- Gtk2StatusIcon(const gfx::ImageSkia& image, const base::string16& tool_tip);
- virtual ~Gtk2StatusIcon();
-
- // Overridden from views::StatusIconLinux:
- virtual void SetImage(const gfx::ImageSkia& image) OVERRIDE;
- virtual void SetPressedImage(const gfx::ImageSkia& image) OVERRIDE;
- virtual void SetToolTip(const base::string16& tool_tip) OVERRIDE;
- virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) OVERRIDE;
- virtual void RefreshPlatformContextMenu() OVERRIDE;
-
- private:
- CHROMEG_CALLBACK_0(Gtk2StatusIcon, void, OnClick, GtkStatusIcon*);
-
- CHROMEG_CALLBACK_2(Gtk2StatusIcon,
- void,
- OnContextMenuRequested,
- GtkStatusIcon*,
- guint,
- guint);
-
- GtkStatusIcon* gtk_status_icon_;
-
- scoped_ptr<AppIndicatorIconMenu> menu_;
-
- DISALLOW_COPY_AND_ASSIGN(Gtk2StatusIcon);
-};
-
-} // namespace libgtk2ui
-
-#endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_STATUS_ICON_H_
« no previous file with comments | « chrome/browser/ui/libgtk2ui/app_indicator_icon_menu.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_status_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698