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

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

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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: ash/common/system/tray/tray_popup_item_container.h
diff --git a/ash/common/system/tray/tray_popup_item_container.h b/ash/common/system/tray/tray_popup_item_container.h
deleted file mode 100644
index 2fdddb7f437ef252e93ded814a773fd5894ec180..0000000000000000000000000000000000000000
--- a/ash/common/system/tray/tray_popup_item_container.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 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 ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_ITEM_CONTAINER_H_
-#define ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_ITEM_CONTAINER_H_
-
-#include "base/macros.h"
-#include "ui/views/view.h"
-
-namespace ash {
-
-// A view which can optionally change the background color when a mouse is
-// hovering or a user is interacting via touch.
-class TrayPopupItemContainer : public views::View {
- public:
- TrayPopupItemContainer(views::View* view, bool change_background);
-
- ~TrayPopupItemContainer() override;
-
- bool active() { return active_; }
-
- private:
- // Sets whether the active background is to be used, and triggers a paint.
- void SetActive(bool active);
-
- // views::View:
- void ChildVisibilityChanged(views::View* child) override;
- void ChildPreferredSizeChanged(views::View* child) override;
- void OnMouseEntered(const ui::MouseEvent& event) override;
- void OnMouseExited(const ui::MouseEvent& event) override;
- void OnGestureEvent(ui::GestureEvent* event) override;
- void OnPaintBackground(gfx::Canvas* canvas) override;
-
- // True if either a mouse is hovering over this view, or if a user has touched
- // down.
- bool active_;
-
- // True if mouse hover and touch feedback can alter the background color of
- // the container.
- bool change_background_;
-
- DISALLOW_COPY_AND_ASSIGN(TrayPopupItemContainer);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_ITEM_CONTAINER_H_
« no previous file with comments | « ash/common/system/tray/tray_popup_ink_drop_style.h ('k') | ash/common/system/tray/tray_popup_item_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698