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

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

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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/common/system/tray/tray_image_item.cc ('k') | ash/common/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/common/system/tray/tray_item_more.h
diff --git a/ash/common/system/tray/tray_item_more.h b/ash/common/system/tray/tray_item_more.h
deleted file mode 100644
index fbbd721942fefc5e5b290855ecdf1e55e9047fe9..0000000000000000000000000000000000000000
--- a/ash/common/system/tray/tray_item_more.h
+++ /dev/null
@@ -1,75 +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_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
-#define ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
-
-#include <memory>
-
-#include "ash/common/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;
-class TrayPopupItemStyle;
-class TriView;
-
-// A view with a more arrow on the right edge. Clicking on the view brings up
-// the detailed view of the tray-item that owns it. If the view is disabled, it
-// will not show the more arrow.
-class TrayItemMore : public ActionableView {
- public:
- explicit TrayItemMore(SystemTrayItem* owner);
- ~TrayItemMore() override;
-
- void SetLabel(const base::string16& label);
- void SetImage(const gfx::ImageSkia& image_skia);
- void SetAccessibleName(const base::string16& name);
-
- protected:
- // Returns a style that will be applied to the elements in the UpdateStyle()
- // method if |this| is enabled; otherwise, we force |this| to use
- // ColorStyle::DISABLED.
- std::unique_ptr<TrayPopupItemStyle> CreateStyle() const;
-
- // Called by CreateStyle() to give descendants a chance to customize the
- // style; e.g. to change the style's ColorStyle based on whether Bluetooth is
- // enabled/disabled.
- virtual std::unique_ptr<TrayPopupItemStyle> HandleCreateStyle() const;
-
- // Applies the style created from CreateStyle(). Should be called whenever any
- // input state changes that changes the style configuration created by
- // CreateStyle(). E.g. if Bluetooth is changed between enabled/disabled then
- // a differently configured style will be returned from CreateStyle() and thus
- // it will need to be applied.
- virtual void UpdateStyle();
-
- private:
- // Overridden from ActionableView.
- bool PerformAction(const ui::Event& event) override;
-
- // Overridden from views::View.
- void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
- void OnEnabledChanged() override;
- void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
-
- TriView* tri_view_;
- views::ImageView* icon_;
- views::Label* label_;
- views::ImageView* more_;
- base::string16 accessible_name_;
-
- DISALLOW_COPY_AND_ASSIGN(TrayItemMore);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
« no previous file with comments | « ash/common/system/tray/tray_image_item.cc ('k') | ash/common/system/tray/tray_item_more.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698