| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_MUS_DISPLAY_MANAGER_H_ | 5 #ifndef COMPONENTS_MUS_DISPLAY_MANAGER_H_ |
| 6 #define COMPONENTS_MUS_DISPLAY_MANAGER_H_ | 6 #define COMPONENTS_MUS_DISPLAY_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void SetTitle(const base::string16& title) override; | 103 void SetTitle(const base::string16& title) override; |
| 104 const mojo::ViewportMetrics& GetViewportMetrics() override; | 104 const mojo::ViewportMetrics& GetViewportMetrics() override; |
| 105 void UpdateTextInputState(const ui::TextInputState& state) override; | 105 void UpdateTextInputState(const ui::TextInputState& state) override; |
| 106 void SetImeVisibility(bool visible) override; | 106 void SetImeVisibility(bool visible) override; |
| 107 | 107 |
| 108 private: | 108 private: |
| 109 void WantToDraw(); | 109 void WantToDraw(); |
| 110 void Draw(); | 110 void Draw(); |
| 111 void DidDraw(); | 111 void DidDraw(); |
| 112 void UpdateMetrics(const gfx::Size& size, float device_pixel_ratio); | 112 void UpdateMetrics(const gfx::Size& size, float device_pixel_ratio); |
| 113 scoped_ptr<cc::CompositorFrame> GenerateCompositorFrame(); |
| 114 const cc::CompositorFrame* GetLastCompositorFrame() const; |
| 113 | 115 |
| 114 // ui::PlatformWindowDelegate: | 116 // ui::PlatformWindowDelegate: |
| 115 void OnBoundsChanged(const gfx::Rect& new_bounds) override; | 117 void OnBoundsChanged(const gfx::Rect& new_bounds) override; |
| 116 void OnDamageRect(const gfx::Rect& damaged_region) override; | 118 void OnDamageRect(const gfx::Rect& damaged_region) override; |
| 117 void DispatchEvent(ui::Event* event) override; | 119 void DispatchEvent(ui::Event* event) override; |
| 118 void OnCloseRequest() override; | 120 void OnCloseRequest() override; |
| 119 void OnClosed() override; | 121 void OnClosed() override; |
| 120 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; | 122 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; |
| 121 void OnLostCapture() override; | 123 void OnLostCapture() override; |
| 122 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | 124 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 138 scoped_ptr<ui::PlatformWindow> platform_window_; | 140 scoped_ptr<ui::PlatformWindow> platform_window_; |
| 139 | 141 |
| 140 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; | 142 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; |
| 141 | 143 |
| 142 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); | 144 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); |
| 143 }; | 145 }; |
| 144 | 146 |
| 145 } // namespace view_manager | 147 } // namespace view_manager |
| 146 | 148 |
| 147 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_H_ | 149 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_H_ |
| OLD | NEW |