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 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Called when virtual keyboard has been activated/deactivated. | 107 // Called when virtual keyboard has been activated/deactivated. |
108 virtual void VirtualKeyboardActivated(bool activated) = 0; | 108 virtual void VirtualKeyboardActivated(bool activated) = 0; |
109 | 109 |
110 // Adds or removes virtual keyboard state observer. | 110 // Adds or removes virtual keyboard state observer. |
111 virtual void AddVirtualKeyboardStateObserver( | 111 virtual void AddVirtualKeyboardStateObserver( |
112 VirtualKeyboardStateObserver* observer) = 0; | 112 VirtualKeyboardStateObserver* observer) = 0; |
113 virtual void RemoveVirtualKeyboardStateObserver( | 113 virtual void RemoveVirtualKeyboardStateObserver( |
114 VirtualKeyboardStateObserver* observer) = 0; | 114 VirtualKeyboardStateObserver* observer) = 0; |
115 | 115 |
116 // Opens the |url| in a new browser tab. | 116 // Opens the |url| in a new browser tab. |
117 virtual void OpenUrl(const GURL& url) = 0; | 117 virtual void OpenUrlFromArc(const GURL& url) = 0; |
118 | 118 |
119 // Get the AppListPresenter. Ownership stays with Chrome. | 119 // Get the AppListPresenter. Ownership stays with Chrome. |
120 virtual app_list::AppListPresenter* GetAppListPresenter() = 0; | 120 virtual app_list::AppListPresenter* GetAppListPresenter() = 0; |
121 | 121 |
122 // Creates a new ShelfDelegate. Shell takes ownership of the returned | 122 // Creates a new ShelfDelegate. Shell takes ownership of the returned |
123 // value. | 123 // value. |
124 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; | 124 virtual ShelfDelegate* CreateShelfDelegate(ShelfModel* model) = 0; |
125 | 125 |
126 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 126 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
127 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; | 127 virtual SystemTrayDelegate* CreateSystemTrayDelegate() = 0; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 160 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
161 | 161 |
162 // Toggles the status of the touchpad / touchscreen on or off. | 162 // Toggles the status of the touchpad / touchscreen on or off. |
163 virtual void ToggleTouchpad() {} | 163 virtual void ToggleTouchpad() {} |
164 virtual void ToggleTouchscreen() {} | 164 virtual void ToggleTouchscreen() {} |
165 }; | 165 }; |
166 | 166 |
167 } // namespace ash | 167 } // namespace ash |
168 | 168 |
169 #endif // ASH_SHELL_DELEGATE_H_ | 169 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |