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

Unified Diff: ash/system/tray/tray_item_more.h

Issue 2066583004: mash: Move most files in //ash/system/tray to //ash/common/system/tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trayupdatemove
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « ash/system/tray/tray_empty.cc ('k') | ash/system/tray/tray_item_more.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_item_more.h
diff --git a/ash/system/tray/tray_item_more.h b/ash/system/tray/tray_item_more.h
deleted file mode 100644
index afebb077f36f57081409c207d3f9b19d866d2a00..0000000000000000000000000000000000000000
--- a/ash/system/tray/tray_item_more.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2012 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 ASH_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
-#define ASH_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
-
-#include "ash/system/tray/actionable_view.h"
-#include "base/macros.h"
-#include "ui/views/view.h"
-
-namespace views {
-class ImageView;
-class Label;
-class View;
-}
-
-namespace ash {
-class SystemTrayItem;
-
-// A view with a chevron ('>') on the right edge. Clicking on the view brings up
-// the detailed view of the tray-item that owns it.
-class TrayItemMore : public ActionableView {
- public:
- TrayItemMore(SystemTrayItem* owner, bool show_more);
- ~TrayItemMore() override;
-
- SystemTrayItem* owner() const { return owner_; }
-
- void SetLabel(const base::string16& label);
- void SetImage(const gfx::ImageSkia* image_skia);
- void SetAccessibleName(const base::string16& name);
-
- protected:
- // Replaces the default icon (on the left of the label), and allows a custom
- // view to be placed there. Once the default icon is replaced, |SetImage|
- // should never be called.
- void ReplaceIcon(views::View* view);
-
- private:
- // Overridden from ActionableView.
- bool PerformAction(const ui::Event& event) override;
-
- // Overridden from views::View.
- void Layout() override;
- void GetAccessibleState(ui::AXViewState* state) override;
-
- SystemTrayItem* owner_;
- // True if |more_| should be shown.
- bool show_more_;
- views::ImageView* icon_;
- views::Label* label_;
- views::ImageView* more_;
- base::string16 accessible_name_;
-
- DISALLOW_COPY_AND_ASSIGN(TrayItemMore);
-};
-
-} // namespace ash
-
-#endif // ASH_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
« no previous file with comments | « ash/system/tray/tray_empty.cc ('k') | ash/system/tray/tray_item_more.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698