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

Unified Diff: ash/common/shelf/app_list_button.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
« no previous file with comments | « ash/common/session/session_state_observer.cc ('k') | ash/common/shelf/app_list_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/app_list_button.h
diff --git a/ash/common/shelf/app_list_button.h b/ash/common/shelf/app_list_button.h
deleted file mode 100644
index d4a0fbeeb7f5160d5ea739a1496b12612526af2e..0000000000000000000000000000000000000000
--- a/ash/common/shelf/app_list_button.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 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_SHELF_APP_LIST_BUTTON_H_
-#define ASH_COMMON_SHELF_APP_LIST_BUTTON_H_
-
-#include "ash/ash_export.h"
-#include "base/macros.h"
-#include "third_party/skia/include/core/SkColor.h"
-#include "ui/views/controls/button/image_button.h"
-
-namespace ash {
-class InkDropButtonListener;
-class ShelfView;
-class WmShelf;
-
-// Button used for the AppList icon on the shelf.
-class ASH_EXPORT AppListButton : public views::ImageButton {
- public:
- AppListButton(InkDropButtonListener* listener,
- ShelfView* shelf_view,
- WmShelf* wm_shelf);
- ~AppListButton() override;
-
- void OnAppListShown();
- void OnAppListDismissed();
-
- bool is_showing_app_list() const { return is_showing_app_list_; }
-
- // Updates background and schedules a paint.
- void UpdateShelfItemBackground(SkColor color);
-
- 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 GetAccessibleNodeData(ui::AXNodeData* node_data) override;
- std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override;
- void NotifyClick(const ui::Event& event) override;
- bool ShouldEnterPushedState(const ui::Event& event) override;
- std::unique_ptr<views::InkDrop> CreateInkDrop() override;
- std::unique_ptr<views::InkDropMask> CreateInkDropMask() const override;
-
- // ui::EventHandler overrides:
- void OnGestureEvent(ui::GestureEvent* event) override;
-
- private:
- // Get the center point of the app list button used to draw its background and
- // ink drops.
- gfx::Point GetCenterPoint() const;
-
- // True if the app list is currently showing for this display.
- // This is useful because other IsApplistVisible functions aren't per-display.
- bool is_showing_app_list_;
-
- // Color used to paint the background.
- SkColor background_color_;
-
- InkDropButtonListener* listener_;
- ShelfView* shelf_view_;
- WmShelf* wm_shelf_;
-
- DISALLOW_COPY_AND_ASSIGN(AppListButton);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SHELF_APP_LIST_BUTTON_H_
« no previous file with comments | « ash/common/session/session_state_observer.cc ('k') | ash/common/shelf/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698