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

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

Issue 9703026: Makes the maximize/restore button handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 9 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_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 ash::LauncherModel* model() { return model_; } 152 ash::LauncherModel* model() { return model_; }
153 153
154 // ash::LauncherDelegate overrides: 154 // ash::LauncherDelegate overrides:
155 virtual void CreateNewWindow() OVERRIDE; 155 virtual void CreateNewWindow() OVERRIDE;
156 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; 156 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE;
157 virtual int GetBrowserShortcutResourceId() OVERRIDE; 157 virtual int GetBrowserShortcutResourceId() OVERRIDE;
158 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE; 158 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE;
159 virtual ui::MenuModel* CreateContextMenu( 159 virtual ui::MenuModel* CreateContextMenu(
160 const ash::LauncherItem& item) OVERRIDE; 160 const ash::LauncherItem& item) OVERRIDE;
161 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE;
161 162
162 // ash::LauncherModelObserver overrides: 163 // ash::LauncherModelObserver overrides:
163 virtual void LauncherItemAdded(int index) OVERRIDE; 164 virtual void LauncherItemAdded(int index) OVERRIDE;
164 virtual void LauncherItemRemoved(int index, ash::LauncherID id) OVERRIDE; 165 virtual void LauncherItemRemoved(int index, ash::LauncherID id) OVERRIDE;
165 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE; 166 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE;
166 virtual void LauncherItemChanged(int index, 167 virtual void LauncherItemChanged(int index,
167 const ash::LauncherItem& old_item) OVERRIDE; 168 const ash::LauncherItem& old_item) OVERRIDE;
168 virtual void LauncherItemWillChange(int index) OVERRIDE; 169 virtual void LauncherItemWillChange(int index) OVERRIDE;
169 170
170 // Overridden from content::NotificationObserver: 171 // Overridden from content::NotificationObserver:
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 231
231 // Used to load the image for an app tab. 232 // Used to load the image for an app tab.
232 scoped_ptr<AppIconLoader> app_icon_loader_; 233 scoped_ptr<AppIconLoader> app_icon_loader_;
233 234
234 content::NotificationRegistrar registrar_; 235 content::NotificationRegistrar registrar_;
235 236
236 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); 237 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate);
237 }; 238 };
238 239
239 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ 240 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace_controller.h ('k') | chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698