Chromium Code Reviews| 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_COMMON_SHELL_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SHELL_DELEGATE_H_ |
| 6 #define ASH_COMMON_SHELL_DELEGATE_H_ | 6 #define ASH_COMMON_SHELL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 126 // Creates a GPU support object. Shell takes ownership of the object. | 126 // Creates a GPU support object. Shell takes ownership of the object. |
| 127 virtual GPUSupport* CreateGPUSupport() = 0; | 127 virtual GPUSupport* CreateGPUSupport() = 0; |
| 128 | 128 |
| 129 // Get the product name. | 129 // Get the product name. |
| 130 virtual base::string16 GetProductName() const = 0; | 130 virtual base::string16 GetProductName() const = 0; |
| 131 | 131 |
| 132 virtual void OpenKeyboardShortcutHelpPage() const {} | 132 virtual void OpenKeyboardShortcutHelpPage() const {} |
| 133 | 133 |
| 134 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 134 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
| 135 | 135 |
| 136 // Returns true if touchscreen is on, otherwise false. | |
| 137 virtual bool IsTouchscreenEnabled() const = 0; | |
| 138 | |
| 136 // Toggles the status of the touchpad / touchscreen on or off. | 139 // Toggles the status of the touchpad / touchscreen on or off. |
| 137 virtual void ToggleTouchpad() {} | 140 virtual void ToggleTouchpad() {} |
|
Daniel Erat
2016/11/29 21:03:36
"toggle" methods always seem a bit strange to me,
Qiang(Joe) Xu
2016/11/30 22:09:11
done
| |
| 138 virtual void ToggleTouchscreen() {} | 141 virtual void ToggleTouchscreen() {} |
| 139 }; | 142 }; |
| 140 | 143 |
| 141 } // namespace ash | 144 } // namespace ash |
| 142 | 145 |
| 143 #endif // ASH_COMMON_SHELL_DELEGATE_H_ | 146 #endif // ASH_COMMON_SHELL_DELEGATE_H_ |
| OLD | NEW |