| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_AURA_SHELL_SHELL_DELEGATE_H_ | 5 #ifndef UI_AURA_SHELL_SHELL_DELEGATE_H_ |
| 6 #define UI_AURA_SHELL_SHELL_DELEGATE_H_ | 6 #define UI_AURA_SHELL_SHELL_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "ui/aura_shell/aura_shell_export.h" | 10 #include "ui/aura_shell/aura_shell_export.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const gfx::Rect& bounds, | 43 const gfx::Rect& bounds, |
| 44 const SetWidgetCallback& callback) = 0; | 44 const SetWidgetCallback& callback) = 0; |
| 45 | 45 |
| 46 // Invoked when the user clicks on a window entry in the launcher. | 46 // Invoked when the user clicks on a window entry in the launcher. |
| 47 virtual void LauncherItemClicked(const LauncherItem& item) = 0; | 47 virtual void LauncherItemClicked(const LauncherItem& item) = 0; |
| 48 | 48 |
| 49 // Invoked when a window is added. If the delegate wants the launcher to show | 49 // Invoked when a window is added. If the delegate wants the launcher to show |
| 50 // an entry for |item->window| it should configure |item| appropriately and | 50 // an entry for |item->window| it should configure |item| appropriately and |
| 51 // return true. | 51 // return true. |
| 52 virtual bool ConfigureLauncherItem(LauncherItem* item) = 0; | 52 virtual bool ConfigureLauncherItem(LauncherItem* item) = 0; |
| 53 }; |
| 53 | 54 |
| 54 // Returns the resource id of the image to show on the button that creates a | |
| 55 // new browser window. | |
| 56 virtual int GetResourceIDForNewBrowserWindow() = 0; | |
| 57 }; | |
| 58 } // namespace aura_shell | 55 } // namespace aura_shell |
| 59 | 56 |
| 60 #endif // UI_AURA_SHELL_SHELL_DELEGATE_H_ | 57 #endif // UI_AURA_SHELL_SHELL_DELEGATE_H_ |
| OLD | NEW |