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

Side by Side Diff: chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h

Issue 2558963002: Move shelf item tooltip flag from delegate to item. (Closed)
Patch Set: Remove WmWindowMus::SetBoolProperty override. Created 4 years 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
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 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void Launch(ash::LaunchSource source, int event_flags) override; 45 void Launch(ash::LaunchSource source, int event_flags) override;
46 ash::ShelfItemDelegate::PerformedAction Activate( 46 ash::ShelfItemDelegate::PerformedAction Activate(
47 ash::LaunchSource source) override; 47 ash::LaunchSource source) override;
48 ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override; 48 ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override;
49 ash::ShelfItemDelegate::PerformedAction ItemSelected( 49 ash::ShelfItemDelegate::PerformedAction ItemSelected(
50 const ui::Event& event) override; 50 const ui::Event& event) override;
51 base::string16 GetTitle() override; 51 base::string16 GetTitle() override;
52 ash::ShelfMenuModel* CreateApplicationMenu(int event_flags) override; 52 ash::ShelfMenuModel* CreateApplicationMenu(int event_flags) override;
53 bool IsDraggable() override; 53 bool IsDraggable() override;
54 bool CanPin() const override; 54 bool CanPin() const override;
55 bool ShouldShowTooltip() override;
56 void Close() override; 55 void Close() override;
57 56
58 // Get the refocus url pattern, which can be used to identify this application 57 // Get the refocus url pattern, which can be used to identify this application
59 // from a URL link. 58 // from a URL link.
60 const GURL& refocus_url() const { return refocus_url_; } 59 const GURL& refocus_url() const { return refocus_url_; }
61 // Set the refocus url pattern. Used by unit tests. 60 // Set the refocus url pattern. Used by unit tests.
62 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; } 61 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; }
63 62
64 ChromeLauncherController* controller() { return chrome_launcher_controller_; } 63 ChromeLauncherController* controller() { return chrome_launcher_controller_; }
65 64
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Since V2 applications can be undetectable after launching, this timer is 101 // Since V2 applications can be undetectable after launching, this timer is
103 // keeping track of the last launch attempt. 102 // keeping track of the last launch attempt.
104 base::Time last_launch_attempt_; 103 base::Time last_launch_attempt_;
105 104
106 ChromeLauncherController* chrome_launcher_controller_; 105 ChromeLauncherController* chrome_launcher_controller_;
107 106
108 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); 107 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController);
109 }; 108 };
110 109
111 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_ H_ 110 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_ H_
OLDNEW
« no previous file with comments | « ash/wm/window_properties.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