Disable TabDragController tests that fail with a real compositor.
[chromium-blink-merge.git] / ash / shelf / shelf_window_watcher_item_delegate.h
blob7a40f638c5b63db9e4e733ea5dcc33bd06031353
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_SHELF_SHELF_WINDOW_WATCHER_ITEM_DELEGATE_H_
6 #define ASH_SHELF_SHELF_WINDOW_WATCHER_ITEM_DELEGATE_H_
8 #include "ash/shelf/shelf_item_delegate.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
12 namespace aura {
13 class Window;
16 namespace ash {
18 class ShelfModel;
20 namespace internal {
22 // ShelfItemDelegate for the items created by ShelfWindowWatcher.
23 class ShelfWindowWatcherItemDelegate : public ShelfItemDelegate {
24 public:
25 ShelfWindowWatcherItemDelegate(aura::Window* window, ShelfModel* model_);
27 virtual ~ShelfWindowWatcherItemDelegate();
29 private:
30 // ShelfItemDelegate overrides:
31 virtual bool ItemSelected(const ui::Event& event) OVERRIDE;
32 virtual base::string16 GetTitle() OVERRIDE;
33 virtual ui::MenuModel* CreateContextMenu(aura::Window* root_window) OVERRIDE;
34 virtual ShelfMenuModel* CreateApplicationMenu(int event_flags) OVERRIDE;
35 virtual bool IsDraggable() OVERRIDE;
36 virtual bool ShouldShowTooltip() OVERRIDE;
37 virtual void Close() OVERRIDE;
39 // Stores a Window associated with this item. Not owned.
40 aura::Window* window_;
42 // Not owned.
43 ShelfModel* model_;
45 DISALLOW_COPY_AND_ASSIGN(ShelfWindowWatcherItemDelegate);
48 } // namespace internal
49 } // namespace ash
51 #endif // ASH_SHELF_SHELF_WINDOW_WATCHER_ITEM_DELEGATE_H_