Chromium Code Reviews| Index: ui/display/manager/chromeos/display_configurator.h |
| diff --git a/ui/display/manager/chromeos/display_configurator.h b/ui/display/manager/chromeos/display_configurator.h |
| index c9034adf3609d7771818fea79a7d42eaebf79694..498cac162594523b092ea7d84ec8a0dfade8a2d4 100644 |
| --- a/ui/display/manager/chromeos/display_configurator.h |
| +++ b/ui/display/manager/chromeos/display_configurator.h |
| @@ -51,20 +51,13 @@ class DISPLAY_MANAGER_EXPORT DisplayConfigurator |
| typedef base::Callback<void(bool /* success */)> EnableProtectionCallback; |
| - struct QueryProtectionResponse { |
| - // True if the query succeeded, false otherwise. |
| - bool success = false; |
| - |
| - // The type of connected display links, which is a bitmask of |
| - // DisplayConnectionType values. |
| - uint32_t link_mask = 0; |
| - |
| - // The desired protection methods, which is a bitmask of the |
| - // ContentProtectionMethod values. |
| - uint32_t protection_mask = 0; |
| - }; |
| - |
| - typedef base::Callback<void(const QueryProtectionResponse&)> |
| + // link_mask: The type of connected display links, which is a bitmask of |
| + // DisplayConnectionType values. |
| + // protection_mask: The desired protection methods, which is a bitmask of the |
| + // ContentProtectionMethod values. |
| + typedef base::Callback<void(bool /* success */, |
|
rjkroege
2017/02/09 00:44:43
using in new code?
Peng
2017/02/10 15:57:02
Yes. To use the same signature with mojo interface
|
| + uint32_t /* link_mask */, |
| + uint32_t /* protection_mask */)> |
| QueryProtectionCallback; |
| typedef base::Callback<void(bool /* success */)> DisplayControlCallback; |