| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ | 5 #ifndef BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ |
| 6 #define BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ | 6 #define BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; | 49 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; |
| 50 void OnLostCapture() override; | 50 void OnLostCapture() override; |
| 51 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | 51 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, |
| 52 float device_pixel_ratio) override; | 52 float device_pixel_ratio) override; |
| 53 void OnAcceleratedWidgetDestroyed() override; | 53 void OnAcceleratedWidgetDestroyed() override; |
| 54 void OnActivationChanged(bool active) override; | 54 void OnActivationChanged(bool active) override; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 // BlimpCompositorManagerClient implementation. | 57 // BlimpCompositorManagerClient implementation. |
| 58 void OnSwapBuffersCompleted() override; | 58 void OnSwapBuffersCompleted() override; |
| 59 void DidCommitAndDrawFrame() override; | |
| 60 | 59 |
| 61 float device_pixel_ratio_; | 60 float device_pixel_ratio_; |
| 62 | 61 |
| 63 BlimpDisplayManagerDelegate* delegate_; | 62 BlimpDisplayManagerDelegate* delegate_; |
| 64 TabControlFeature* tab_control_feature_; | 63 TabControlFeature* tab_control_feature_; |
| 65 | 64 |
| 66 std::unique_ptr<BlimpCompositorManager> blimp_compositor_manager_; | 65 std::unique_ptr<BlimpCompositorManager> blimp_compositor_manager_; |
| 67 std::unique_ptr<ui::PlatformWindow> platform_window_; | 66 std::unique_ptr<ui::PlatformWindow> platform_window_; |
| 68 | 67 |
| 69 DISALLOW_COPY_AND_ASSIGN(BlimpDisplayManager); | 68 DISALLOW_COPY_AND_ASSIGN(BlimpDisplayManager); |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 } // namespace client | 71 } // namespace client |
| 73 } // namespace blimp | 72 } // namespace blimp |
| 74 | 73 |
| 75 #endif // BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ | 74 #endif // BLIMP_CLIENT_APP_LINUX_BLIMP_DISPLAY_MANAGER_H_ |
| OLD | NEW |