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

Side by Side Diff: ash/launcher/launcher_button_host.h

Issue 14533006: Drag and drop between app list and launcher - First patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_
6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ 6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 10
11 namespace ui { 11 namespace ui {
12 class LocatedEvent; 12 class LocatedEvent;
13 } 13 }
14 14
15 namespace views { 15 namespace views {
16 class View; 16 class View;
17 } 17 }
18 18
19 namespace ash { 19 namespace ash {
20 namespace internal { 20 namespace internal {
21 21
22 // The launcher buttons communicate back to the host by way of this interface. 22 // The launcher buttons communicate back to the host by way of this interface.
23 // This interface is used to enable reordering the items on the launcher. 23 // This interface is used to enable reordering the items on the launcher.
24 class ASH_EXPORT LauncherButtonHost { 24 class ASH_EXPORT LauncherButtonHost {
25 public: 25 public:
26 enum Pointer { 26 enum Pointer {
27 NONE, 27 NONE,
28 DRAG_AND_DROP,
28 MOUSE, 29 MOUSE,
29 TOUCH, 30 TOUCH,
30 }; 31 };
31 32
32 // Invoked when a pointer device is pressed on a view. 33 // Invoked when a pointer device is pressed on a view.
33 virtual void PointerPressedOnButton(views::View* view, 34 virtual void PointerPressedOnButton(views::View* view,
34 Pointer pointer, 35 Pointer pointer,
35 const ui::LocatedEvent& event) = 0; 36 const ui::LocatedEvent& event) = 0;
36 37
37 // Invoked when a pointer device is dragged over a view. 38 // Invoked when a pointer device is dragged over a view.
(...skipping 19 matching lines...) Expand all
57 virtual base::string16 GetAccessibleName(const views::View* view) = 0; 58 virtual base::string16 GetAccessibleName(const views::View* view) = 0;
58 59
59 protected: 60 protected:
60 virtual ~LauncherButtonHost() {} 61 virtual ~LauncherButtonHost() {}
61 }; 62 };
62 63
63 } // namespace internal 64 } // namespace internal
64 } // namespace ash 65 } // namespace ash
65 66
66 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ 67 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698