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

Unified Diff: ash/common/shelf/shelf_item_delegate.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/shelf_delegate.h ('k') | ash/common/shelf/shelf_item_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_item_delegate.h
diff --git a/ash/common/shelf/shelf_item_delegate.h b/ash/common/shelf/shelf_item_delegate.h
deleted file mode 100644
index 8ff4aed52bc2d1fac6bf9f76be34cf8c19bf2dc7..0000000000000000000000000000000000000000
--- a/ash/common/shelf/shelf_item_delegate.h
+++ /dev/null
@@ -1,51 +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_SHELF_ITEM_DELEGATE_H_
-#define ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_
-
-#include <stdint.h>
-
-#include "ash/ash_export.h"
-#include "ash/public/cpp/shelf_application_menu_item.h"
-#include "ash/public/cpp/shelf_types.h"
-#include "ui/events/event_constants.h"
-
-namespace ash {
-
-// Delegate for the ShelfItem.
-class ASH_EXPORT ShelfItemDelegate {
- public:
- ShelfItemDelegate();
- virtual ~ShelfItemDelegate();
-
- // Called when the user selects a shelf item. The event type and flags, the
- // relevant display id, and the source of the selection should be provided if
- // they are known to the caller; as some subclasses use these arguments.
- // Defaults: (ET_UNKNOWN, EF_NONE, kInvalidDisplayId, LAUNCH_FROM_UNKNOWN)
- // Returns the action performed by selecting the item.
- virtual ShelfAction ItemSelected(ui::EventType event_type,
- int event_flags,
- int64_t display_id,
- ShelfLaunchSource source) = 0;
-
- // A helper to call ItemSelected with a source and default arguments.
- ShelfAction ItemSelectedBySource(ShelfLaunchSource source);
-
- // Returns any application menu items that should appear for this shelf item.
- // |event_flags| specifies the flags of the event which triggered this menu.
- virtual ShelfAppMenuItemList GetAppMenuItems(int event_flags) = 0;
-
- // Called on invocation of a shelf item's application menu command.
- virtual void ExecuteCommand(uint32_t command_id, int event_flags) = 0;
-
- // Closes all windows associated with this item.
- virtual void Close() = 0;
-
- DISALLOW_COPY_AND_ASSIGN(ShelfItemDelegate);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_
« no previous file with comments | « ash/common/shelf/shelf_delegate.h ('k') | ash/common/shelf/shelf_item_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698