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

Side by Side Diff: chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.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
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 CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 const std::string& app_launcher_id() const { return app_launcher_id_; } 45 const std::string& app_launcher_id() const { return app_launcher_id_; }
46 46
47 // LauncherItemController overrides. 47 // LauncherItemController overrides.
48 virtual string16 GetTitle() OVERRIDE; 48 virtual string16 GetTitle() OVERRIDE;
49 virtual bool HasWindow(aura::Window* window) const OVERRIDE; 49 virtual bool HasWindow(aura::Window* window) const OVERRIDE;
50 virtual bool IsOpen() const OVERRIDE; 50 virtual bool IsOpen() const OVERRIDE;
51 virtual void Launch(int event_flags) OVERRIDE; 51 virtual void Launch(int event_flags) OVERRIDE;
52 virtual void Activate() OVERRIDE; 52 virtual void Activate() OVERRIDE;
53 virtual void Close() OVERRIDE; 53 virtual void Close() OVERRIDE;
54 virtual void Clicked() OVERRIDE; 54 virtual void Clicked(const ui::Event& event) OVERRIDE;
55 virtual void OnRemoved() OVERRIDE {} 55 virtual void OnRemoved() OVERRIDE {}
56 virtual void LauncherItemChanged( 56 virtual void LauncherItemChanged(
57 int model_index, 57 int model_index,
58 const ash::LauncherItem& old_item) OVERRIDE {} 58 const ash::LauncherItem& old_item) OVERRIDE {}
59 virtual ChromeLauncherAppMenuItems* GetApplicationList() OVERRIDE; 59 virtual ChromeLauncherAppMenuItems* GetApplicationList() OVERRIDE;
60 60
61 // Get the number of running applications/incarnations of this. 61 // Get the number of running applications/incarnations of this.
62 size_t shell_window_count() const { return shell_windows_.size(); } 62 size_t shell_window_count() const { return shell_windows_.size(); }
63 63
64 // Activates the window at position |index|. 64 // Activates the window at position |index|.
(...skipping 15 matching lines...) Expand all
80 ShellWindowList shell_windows_; 80 ShellWindowList shell_windows_;
81 81
82 // The launcher id associated with this set of windows. There is one 82 // The launcher id associated with this set of windows. There is one
83 // AppLauncherItemController for each |app_launcher_id_|. 83 // AppLauncherItemController for each |app_launcher_id_|.
84 const std::string app_launcher_id_; 84 const std::string app_launcher_id_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherItemController); 86 DISALLOW_COPY_AND_ASSIGN(ShellWindowLauncherItemController);
87 }; 87 };
88 88
89 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_ H_ 89 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_SHELL_WINDOW_LAUNCHER_ITEM_CONTROLLER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698