OLD | NEW |
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 ASH_SHELL_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 | 14 |
| 15 class GURL; |
| 16 |
15 namespace aura { | 17 namespace aura { |
16 class Window; | 18 class Window; |
17 } | 19 } |
18 | 20 |
19 namespace gfx { | 21 namespace gfx { |
20 class Rect; | 22 class Rect; |
21 } | 23 } |
22 | 24 |
23 namespace views { | 25 namespace views { |
24 class Widget; | 26 class Widget; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 72 |
71 // Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab | 73 // Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab |
72 // or the window switching key). If |order_by_activity| is true then windows | 74 // or the window switching key). If |order_by_activity| is true then windows |
73 // are returned in most-recently-used order with the currently active window | 75 // are returned in most-recently-used order with the currently active window |
74 // at the front of the list. Otherwise any order may be returned. The list | 76 // at the front of the list. Otherwise any order may be returned. The list |
75 // does not contain NULL pointers. | 77 // does not contain NULL pointers. |
76 virtual std::vector<aura::Window*> GetCycleWindowList( | 78 virtual std::vector<aura::Window*> GetCycleWindowList( |
77 CycleSource source, | 79 CycleSource source, |
78 CycleOrder order) const = 0; | 80 CycleOrder order) const = 0; |
79 | 81 |
| 82 // Invoked to open new browser tab with URL |url|. |
| 83 virtual void OpenNewTab(const GURL& url) = 0; |
| 84 |
80 // Launcher related methods -------------------------------------------------- | 85 // Launcher related methods -------------------------------------------------- |
81 | 86 |
82 // Invoked when the user clicks on button in the launcher to create a new | 87 // Invoked when the user clicks on button in the launcher to create a new |
83 // window. | 88 // window. |
84 virtual void CreateNewWindow() = 0; | 89 virtual void CreateNewWindow() = 0; |
85 | 90 |
86 // Invoked when the user clicks on a window entry in the launcher. | 91 // Invoked when the user clicks on a window entry in the launcher. |
87 virtual void LauncherItemClicked(const LauncherItem& item) = 0; | 92 virtual void LauncherItemClicked(const LauncherItem& item) = 0; |
88 | 93 |
89 // Returns the resource id of the image to show on the browser shortcut | 94 // Returns the resource id of the image to show on the browser shortcut |
90 // button. | 95 // button. |
91 virtual int GetBrowserShortcutResourceId() = 0; | 96 virtual int GetBrowserShortcutResourceId() = 0; |
92 | 97 |
93 // Returns the title to display for the specified launcher item. | 98 // Returns the title to display for the specified launcher item. |
94 virtual string16 GetLauncherItemTitle(const LauncherItem& item) = 0; | 99 virtual string16 GetLauncherItemTitle(const LauncherItem& item) = 0; |
95 }; | 100 }; |
96 | 101 |
97 } // namespace ash | 102 } // namespace ash |
98 | 103 |
99 #endif // ASH_SHELL_DELEGATE_H_ | 104 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |