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

Side by Side Diff: chrome/browser/ui/ash/launcher/app_shortcut_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_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h" 10 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h"
(...skipping 15 matching lines...) Expand all
26 26
27 virtual ~AppShortcutLauncherItemController(); 27 virtual ~AppShortcutLauncherItemController();
28 28
29 // LauncherItemController overrides: 29 // LauncherItemController overrides:
30 virtual string16 GetTitle() OVERRIDE; 30 virtual string16 GetTitle() OVERRIDE;
31 virtual bool HasWindow(aura::Window* window) const OVERRIDE; 31 virtual bool HasWindow(aura::Window* window) const OVERRIDE;
32 virtual bool IsOpen() const OVERRIDE; 32 virtual bool IsOpen() const OVERRIDE;
33 virtual void Launch(int event_flags) OVERRIDE; 33 virtual void Launch(int event_flags) OVERRIDE;
34 virtual void Activate() OVERRIDE; 34 virtual void Activate() OVERRIDE;
35 virtual void Close() OVERRIDE; 35 virtual void Close() OVERRIDE;
36 virtual void Clicked() OVERRIDE; 36 virtual void Clicked(const ui::Event& event) OVERRIDE;
37 virtual void OnRemoved() OVERRIDE; 37 virtual void OnRemoved() OVERRIDE;
38 virtual void LauncherItemChanged( 38 virtual void LauncherItemChanged(
39 int model_index, 39 int model_index,
40 const ash::LauncherItem& old_item) OVERRIDE; 40 const ash::LauncherItem& old_item) OVERRIDE;
41 virtual ChromeLauncherAppMenuItems* GetApplicationList() OVERRIDE; 41 virtual ChromeLauncherAppMenuItems* GetApplicationList() OVERRIDE;
42 std::vector<content::WebContents*> GetRunningApplications(); 42 std::vector<content::WebContents*> GetRunningApplications();
43 43
44 // Get the refocus url pattern, which can be used to identify this application 44 // Get the refocus url pattern, which can be used to identify this application
45 // from a URL link. 45 // from a URL link.
46 const GURL& refocus_url() const { return refocus_url_; } 46 const GURL& refocus_url() const { return refocus_url_; }
47 // Set the refocus url pattern. Used by unit tests. 47 // Set the refocus url pattern. Used by unit tests.
48 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; } 48 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; }
49 49
50 private: 50 private:
51 GURL refocus_url_; 51 GURL refocus_url_;
52 ChromeLauncherControllerPerApp* app_controller_; 52 ChromeLauncherControllerPerApp* app_controller_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); 54 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController);
55 }; 55 };
56 56
57 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_ H_ 57 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_ H_
OLDNEW
« no previous file with comments | « ash/wm/panel_layout_manager_unittest.cc ('k') | chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698