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

Unified Diff: ash/shelf/shelf_window_watcher_item_delegate.h

Issue 2211463002: mash: Move ShelfWindowWatcher[ItemDelegate] to ash/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move ShelfWindowWatcher to WmShell. Created 4 years, 4 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/shelf/shelf_window_watcher_item_delegate.h
diff --git a/ash/shelf/shelf_window_watcher_item_delegate.h b/ash/shelf/shelf_window_watcher_item_delegate.h
deleted file mode 100644
index 74499cb9644ca858498156f854306f469e7d7688..0000000000000000000000000000000000000000
--- a/ash/shelf/shelf_window_watcher_item_delegate.h
+++ /dev/null
@@ -1,40 +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_SHELF_SHELF_WINDOW_WATCHER_ITEM_DELEGATE_H_
-#define ASH_SHELF_SHELF_WINDOW_WATCHER_ITEM_DELEGATE_H_
-
-#include "ash/common/shelf/shelf_item_delegate.h"
-#include "base/macros.h"
-
-namespace ash {
-
-class WmWindow;
-
-// ShelfItemDelegate for the items created by ShelfWindowWatcher.
-class ShelfWindowWatcherItemDelegate : public ShelfItemDelegate {
- public:
- explicit ShelfWindowWatcherItemDelegate(WmWindow* window);
- ~ShelfWindowWatcherItemDelegate() override;
-
- private:
- // ShelfItemDelegate overrides:
- ShelfItemDelegate::PerformedAction ItemSelected(
- const ui::Event& event) override;
- base::string16 GetTitle() override;
- ShelfMenuModel* CreateApplicationMenu(int event_flags) override;
- bool IsDraggable() override;
- bool CanPin() const override;
- bool ShouldShowTooltip() override;
- void Close() override;
-
- // The window associated with this item. Not owned.
- WmWindow* window_;
-
- DISALLOW_COPY_AND_ASSIGN(ShelfWindowWatcherItemDelegate);
-};
-
-} // namespace ash
-
-#endif // ASH_SHELF_SHELF_WINDOW_WATCHER_ITEM_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698