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

Unified Diff: ash/common/shelf/overflow_button.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: 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/shelf/overflow_bubble_view.cc ('k') | ash/common/shelf/overflow_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/overflow_button.h
diff --git a/ash/common/shelf/overflow_button.h b/ash/common/shelf/overflow_button.h
deleted file mode 100644
index 32bf382225b0f75c8fecdcf7c97b6fc10c16fbf5..0000000000000000000000000000000000000000
--- a/ash/common/shelf/overflow_button.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2013 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_SHELF_OVERFLOW_BUTTON_H_
-#define ASH_COMMON_SHELF_OVERFLOW_BUTTON_H_
-
-#include "base/macros.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/image/image_skia.h"
-#include "ui/views/controls/button/custom_button.h"
-
-namespace ash {
-class ShelfView;
-class WmShelf;
-
-// Shelf overflow chevron button.
-class OverflowButton : public views::CustomButton {
- public:
- // |shelf_view| is the view containing this button.
- OverflowButton(ShelfView* shelf_view, WmShelf* wm_shelf);
- ~OverflowButton() override;
-
- void OnShelfAlignmentChanged();
- void OnOverflowBubbleShown();
- void OnOverflowBubbleHidden();
-
- // Updates background and schedules a paint.
- void UpdateShelfItemBackground(SkColor color);
-
- private:
- // views::CustomButton:
- void OnPaint(gfx::Canvas* canvas) override;
- std::unique_ptr<views::InkDrop> CreateInkDrop() override;
- std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override;
- bool ShouldEnterPushedState(const ui::Event& event) override;
- void NotifyClick(const ui::Event& event) override;
- std::unique_ptr<views::InkDropMask> CreateInkDropMask() const override;
-
- // Helper functions to paint the background and foreground of the button
- // at |bounds|.
- void PaintBackground(gfx::Canvas* canvas, const gfx::Rect& bounds);
- void PaintForeground(gfx::Canvas* canvas, const gfx::Rect& bounds);
-
- // Calculates the bounds of the overflow button based on the shelf alignment.
- gfx::Rect CalculateButtonBounds() const;
-
- // Used for bottom shelf alignment.
- gfx::ImageSkia bottom_image_;
-
- // Cached rotations of |bottom_image_| used for left and right shelf
- // alignments.
- gfx::ImageSkia left_image_;
- gfx::ImageSkia right_image_;
-
- ShelfView* shelf_view_;
- WmShelf* wm_shelf_;
-
- // Color used to paint the background.
- SkColor background_color_;
-
- DISALLOW_COPY_AND_ASSIGN(OverflowButton);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SHELF_OVERFLOW_BUTTON_H_
« no previous file with comments | « ash/common/shelf/overflow_bubble_view.cc ('k') | ash/common/shelf/overflow_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698