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

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

Issue 22887015: Remove PerBrowser launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 7 years, 4 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.
Mr4D (OOO till 08-26) 2013/08/16 22:43:22 Again -> Rename to "chrome_launcher_controller.h".
simonhong_ 2013/08/19 05:26:11 Done.
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_CHROME_LAUNCHER_CONTROLLER_PER_APP_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_APP_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_APP_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_APP_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 public ash::ShelfLayoutManagerObserver { 81 public ash::ShelfLayoutManagerObserver {
82 public: 82 public:
83 ChromeLauncherControllerPerApp(Profile* profile, ash::LauncherModel* model); 83 ChromeLauncherControllerPerApp(Profile* profile, ash::LauncherModel* model);
84 virtual ~ChromeLauncherControllerPerApp(); 84 virtual ~ChromeLauncherControllerPerApp();
85 85
86 // ChromeLauncherController overrides: 86 // ChromeLauncherController overrides:
87 87
88 // Initializes this ChromeLauncherControllerPerApp. 88 // Initializes this ChromeLauncherControllerPerApp.
89 virtual void Init() OVERRIDE; 89 virtual void Init() OVERRIDE;
90 90
91 // Returns the new per application interface of the given launcher. If it is
92 // a per browser (old) controller, it will return NULL;
93 // TODO(skuhne): Remove when we rip out the old launcher.
94 virtual ChromeLauncherControllerPerApp* GetPerAppInterface() OVERRIDE;
95
96 // Creates a new tabbed item on the launcher for |controller|.
97 virtual ash::LauncherID CreateTabbedLauncherItem(
98 LauncherItemController* controller,
99 IncognitoState is_incognito,
100 ash::LauncherItemStatus status) OVERRIDE;
101
102 // Creates a new app item on the launcher for |controller|. 91 // Creates a new app item on the launcher for |controller|.
103 virtual ash::LauncherID CreateAppLauncherItem( 92 virtual ash::LauncherID CreateAppLauncherItem(
104 LauncherItemController* controller, 93 LauncherItemController* controller,
105 const std::string& app_id, 94 const std::string& app_id,
106 ash::LauncherItemStatus status) OVERRIDE; 95 ash::LauncherItemStatus status) OVERRIDE;
107 96
108 // Updates the running status of an item. It will also update the status of 97 // Updates the running status of an item. It will also update the status of
109 // browsers launcher item if needed. 98 // browsers launcher item if needed.
110 virtual void SetItemStatus(ash::LauncherID id, 99 virtual void SetItemStatus(ash::LauncherID id,
111 ash::LauncherItemStatus status) OVERRIDE; 100 ash::LauncherItemStatus status) OVERRIDE;
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 // The owned browser shortcut item. 488 // The owned browser shortcut item.
500 scoped_ptr<BrowserShortcutLauncherItemController> browser_item_controller_; 489 scoped_ptr<BrowserShortcutLauncherItemController> browser_item_controller_;
501 490
502 // If true, incoming pinned state changes should be ignored. 491 // If true, incoming pinned state changes should be ignored.
503 bool ignore_persist_pinned_state_change_; 492 bool ignore_persist_pinned_state_change_;
504 493
505 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerPerApp); 494 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerPerApp);
506 }; 495 };
507 496
508 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_APP_H_ 497 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698