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

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

Issue 2867673004: Use OnceCallback on Mojo interfaces in //ash (Closed)
Patch Set: count -> container_count Created 3 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
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 22 matching lines...) Expand all
33 33
34 static std::unique_ptr<AppShortcutLauncherItemController> Create( 34 static std::unique_ptr<AppShortcutLauncherItemController> Create(
35 const ash::ShelfID& shelf_id); 35 const ash::ShelfID& shelf_id);
36 36
37 std::vector<content::WebContents*> GetRunningApplications(); 37 std::vector<content::WebContents*> GetRunningApplications();
38 38
39 // ash::ShelfItemDelegate overrides: 39 // ash::ShelfItemDelegate overrides:
40 void ItemSelected(std::unique_ptr<ui::Event> event, 40 void ItemSelected(std::unique_ptr<ui::Event> event,
41 int64_t display_id, 41 int64_t display_id,
42 ash::ShelfLaunchSource source, 42 ash::ShelfLaunchSource source,
43 const ItemSelectedCallback& callback) override; 43 ItemSelectedCallback callback) override;
44 ash::MenuItemList GetAppMenuItems(int event_flags) override; 44 ash::MenuItemList GetAppMenuItems(int event_flags) override;
45 void ExecuteCommand(uint32_t command_id, int32_t event_flags) override; 45 void ExecuteCommand(uint32_t command_id, int32_t event_flags) override;
46 void Close() override; 46 void Close() override;
47 47
48 // Get the refocus url pattern, which can be used to identify this application 48 // Get the refocus url pattern, which can be used to identify this application
49 // from a URL link. 49 // from a URL link.
50 const GURL& refocus_url() const { return refocus_url_; } 50 const GURL& refocus_url() const { return refocus_url_; }
51 // Set the refocus url pattern. Used by unit tests. 51 // Set the refocus url pattern. Used by unit tests.
52 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; } 52 void set_refocus_url(const GURL& refocus_url) { refocus_url_ = refocus_url; }
53 53
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // keeping track of the last launch attempt. 88 // keeping track of the last launch attempt.
89 base::Time last_launch_attempt_; 89 base::Time last_launch_attempt_;
90 90
91 // The cached list of open app web contents shown in an application menu. 91 // The cached list of open app web contents shown in an application menu.
92 std::vector<content::WebContents*> app_menu_items_; 92 std::vector<content::WebContents*> app_menu_items_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController); 94 DISALLOW_COPY_AND_ASSIGN(AppShortcutLauncherItemController);
95 }; 95 };
96 96
97 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_ H_ 97 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_SHORTCUT_LAUNCHER_ITEM_CONTROLLER_ H_
OLDNEW
« no previous file with comments | « ash/wm/session_state_animator_impl.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