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

Side by Side Diff: ash/test/test_launcher_delegate.h

Issue 12093075: Move the panel to the root window where the mouse click occurred. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated comment Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shell/launcher_delegate_impl.cc ('k') | ash/test/test_launcher_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_TEST_LAUNCHER_DELEGATE_H_ 5 #ifndef ASH_TEST_TEST_LAUNCHER_DELEGATE_H_
6 #define ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ 6 #define ASH_TEST_TEST_LAUNCHER_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 19 matching lines...) Expand all
30 void AddLauncherItem(aura::Window* window, LauncherItemStatus status); 30 void AddLauncherItem(aura::Window* window, LauncherItemStatus status);
31 31
32 static TestLauncherDelegate* instance() { return instance_; } 32 static TestLauncherDelegate* instance() { return instance_; }
33 33
34 // WindowObserver implementation 34 // WindowObserver implementation
35 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; 35 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE;
36 36
37 // LauncherDelegate implementation. 37 // LauncherDelegate implementation.
38 virtual void OnBrowserShortcutClicked(int event_flags) OVERRIDE; 38 virtual void OnBrowserShortcutClicked(int event_flags) OVERRIDE;
39 virtual void ItemClicked(const LauncherItem& item, 39 virtual void ItemClicked(const LauncherItem& item,
40 int event_flags) OVERRIDE; 40 const ui::Event& event) OVERRIDE;
41 virtual int GetBrowserShortcutResourceId() OVERRIDE; 41 virtual int GetBrowserShortcutResourceId() OVERRIDE;
42 virtual string16 GetTitle(const LauncherItem& item) OVERRIDE; 42 virtual string16 GetTitle(const LauncherItem& item) OVERRIDE;
43 virtual ui::MenuModel* CreateContextMenu(const LauncherItem& item, 43 virtual ui::MenuModel* CreateContextMenu(const LauncherItem& item,
44 aura::RootWindow* root) OVERRIDE; 44 aura::RootWindow* root) OVERRIDE;
45 virtual ui::MenuModel* CreateApplicationMenu( 45 virtual ui::MenuModel* CreateApplicationMenu(
46 const LauncherItem& item) OVERRIDE; 46 const LauncherItem& item) OVERRIDE;
47 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; 47 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE;
48 virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE; 48 virtual bool IsDraggable(const ash::LauncherItem& item) OVERRIDE;
49 49
50 private: 50 private:
(...skipping 12 matching lines...) Expand all
63 // Parent windows we are watching. 63 // Parent windows we are watching.
64 ObservedWindows observed_windows_; 64 ObservedWindows observed_windows_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate); 66 DISALLOW_COPY_AND_ASSIGN(TestLauncherDelegate);
67 }; 67 };
68 68
69 } // namespace test 69 } // namespace test
70 } // namespace ash 70 } // namespace ash
71 71
72 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE_H_ 72 #endif // ASH_TEST_TEST_LAUNCHER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell/launcher_delegate_impl.cc ('k') | ash/test/test_launcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698