| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_ | 5 #ifndef SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_ |
| 6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_ | 6 #define SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // Called when a display is removed. |id| is the display id of the display | 28 // Called when a display is removed. |id| is the display id of the display |
| 29 // that was removed. | 29 // that was removed. |
| 30 virtual void OnDisplayRemoved(int64_t id) = 0; | 30 virtual void OnDisplayRemoved(int64_t id) = 0; |
| 31 | 31 |
| 32 // Called when a display is modified. |id| is the display id of the modified | 32 // Called when a display is modified. |id| is the display id of the modified |
| 33 // display and |metrics| contains updated display viewport information. | 33 // display and |metrics| contains updated display viewport information. |
| 34 virtual void OnDisplayModified(int64_t id, | 34 virtual void OnDisplayModified(int64_t id, |
| 35 const ViewportMetrics& metrics) = 0; | 35 const ViewportMetrics& metrics) = 0; |
| 36 | 36 |
| 37 // Called when the primary display is changed. |
| 38 virtual void OnPrimaryDisplayChanged(int64_t primary_display_id) = 0; |
| 39 |
| 37 protected: | 40 protected: |
| 38 virtual ~PlatformScreenDelegate() {} | 41 virtual ~PlatformScreenDelegate() {} |
| 39 }; | 42 }; |
| 40 | 43 |
| 41 } // namespace display | 44 } // namespace display |
| 42 | 45 |
| 43 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_ | 46 #endif // SERVICES_UI_DISPLAY_PLATFORM_SCREEN_DELEGATE_H_ |
| OLD | NEW |