Chromium Code Reviews| Index: ash/shelf/app_list_button.h |
| diff --git a/ash/shelf/app_list_button.h b/ash/shelf/app_list_button.h |
| deleted file mode 100644 |
| index ac7d918050912dedb0e10b4b1dfa3c1b5eb23596..0000000000000000000000000000000000000000 |
| --- a/ash/shelf/app_list_button.h |
| +++ /dev/null |
| @@ -1,70 +0,0 @@ |
| -// Copyright 2014 The Chromium Authors. All rights reserved. |
|
James Cook
2016/07/20 17:00:06
I don't know why Reitveld shows these as modified
msw
2016/07/20 17:33:49
Acknowledged.
|
| -// Use of this source code is governed by a BSD-style license that can be |
| -// found in the LICENSE file. |
| - |
| -#ifndef ASH_SHELF_APP_LIST_BUTTON_H_ |
| -#define ASH_SHELF_APP_LIST_BUTTON_H_ |
| - |
| -#include "ash/ash_export.h" |
| -#include "base/macros.h" |
| -#include "ui/views/controls/button/image_button.h" |
| - |
| -namespace ash { |
| -class InkDropButtonListener; |
| -class ShelfView; |
| - |
| -// Button used for the AppList icon on the shelf. |
| -class ASH_EXPORT AppListButton : public views::ImageButton { |
| - public: |
| - explicit AppListButton(InkDropButtonListener* listener, |
| - ShelfView* shelf_view); |
| - ~AppListButton() override; |
| - |
| - void OnAppListShown(); |
| - void OnAppListDismissed(); |
| - |
| - bool draw_background_as_active() { return draw_background_as_active_; } |
| - |
| - protected: |
| - // views::ImageButton overrides: |
| - bool OnMousePressed(const ui::MouseEvent& event) override; |
| - void OnMouseReleased(const ui::MouseEvent& event) override; |
| - void OnMouseCaptureLost() override; |
| - bool OnMouseDragged(const ui::MouseEvent& event) override; |
| - void OnPaint(gfx::Canvas* canvas) override; |
| - void GetAccessibleState(ui::AXViewState* state) override; |
| - std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; |
| - void NotifyClick(const ui::Event& event) override; |
| - bool ShouldEnterPushedState(const ui::Event& event) override; |
| - bool ShouldShowInkDropHighlight() const override; |
| - |
| - // ui::EventHandler overrides: |
| - void OnGestureEvent(ui::GestureEvent* event) override; |
| - |
| - private: |
| - // Toggles the active state for painting the background and schedules a paint. |
| - void SetDrawBackgroundAsActive(bool draw_background_as_active); |
| - |
| - // Helper functions to paint the background and foreground of the AppList |
| - // button in Chrome OS MD. |
| - void PaintBackgroundMD(gfx::Canvas* canvas); |
| - void PaintForegroundMD(gfx::Canvas* canvas, |
| - const gfx::ImageSkia& foreground_image); |
| - |
| - // Helper function to paint the AppList button in Chrome OS non-MD. |
| - void PaintAppListButton(gfx::Canvas* canvas, |
| - const gfx::ImageSkia& foreground_image); |
| - |
| - // True if the background should render as active, regardless of the state of |
| - // the application list. |
| - bool draw_background_as_active_; |
| - |
| - InkDropButtonListener* listener_; |
| - ShelfView* shelf_view_; |
| - |
| - DISALLOW_COPY_AND_ASSIGN(AppListButton); |
| -}; |
| - |
| -} // namespace ash |
| - |
| -#endif // ASH_SHELF_APP_LIST_BUTTON_H_ |