| 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 UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Helper function to get the scale factor. | 46 // Helper function to get the scale factor. |
| 47 float GetScaleFactor() const; | 47 float GetScaleFactor() const; |
| 48 | 48 |
| 49 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip); | 49 void SetBoundsInDIP(const gfx::Rect& bounds_in_dip); |
| 50 | 50 |
| 51 // DesktopWindowTreeHost: | 51 // DesktopWindowTreeHost: |
| 52 void Init(aura::Window* content_window, | 52 void Init(aura::Window* content_window, |
| 53 const Widget::InitParams& params) override; | 53 const Widget::InitParams& params) override; |
| 54 void OnNativeWidgetCreated(const Widget::InitParams& params) override; | 54 void OnNativeWidgetCreated(const Widget::InitParams& params) override; |
| 55 void OnWidgetInitDone() override; |
| 55 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; | 56 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; |
| 56 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( | 57 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( |
| 57 DesktopNativeCursorManager* cursor_manager) override; | 58 DesktopNativeCursorManager* cursor_manager) override; |
| 58 void Close() override; | 59 void Close() override; |
| 59 void CloseNow() override; | 60 void CloseNow() override; |
| 60 aura::WindowTreeHost* AsWindowTreeHost() override; | 61 aura::WindowTreeHost* AsWindowTreeHost() override; |
| 61 void ShowWindowWithState(ui::WindowShowState state) override; | 62 void ShowWindowWithState(ui::WindowShowState state) override; |
| 62 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; | 63 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; |
| 63 bool IsVisible() const override; | 64 bool IsVisible() const override; |
| 64 void SetSize(const gfx::Size& size) override; | 65 void SetSize(const gfx::Size& size) override; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 144 |
| 144 // Used so that Close() isn't immediate. | 145 // Used so that Close() isn't immediate. |
| 145 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; | 146 base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_; |
| 146 | 147 |
| 147 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); | 148 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostMus); |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 } // namespace views | 151 } // namespace views |
| 151 | 152 |
| 152 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ | 153 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_MUS_H_ |
| OLD | NEW |