| 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 #include "ui/aura/window_port_local.h" | 5 #include "ui/aura/window_port_local.h" |
| 6 | 6 |
| 7 #include "ui/aura/client/cursor_client.h" | 7 #include "ui/aura/client/cursor_client.h" |
| 8 #include "ui/aura/env.h" | 8 #include "ui/aura/env.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/aura/window_delegate.h" | 10 #include "ui/aura/window_delegate.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(ScopedCursorHider); | 53 DISALLOW_COPY_AND_ASSIGN(ScopedCursorHider); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace | 56 } // namespace |
| 57 | 57 |
| 58 WindowPortLocal::WindowPortLocal(Window* window) : window_(window) {} | 58 WindowPortLocal::WindowPortLocal(Window* window) : window_(window) {} |
| 59 | 59 |
| 60 WindowPortLocal::~WindowPortLocal() {} | 60 WindowPortLocal::~WindowPortLocal() {} |
| 61 | 61 |
| 62 std::unique_ptr<WindowPortInitData> WindowPortLocal::OnPreInit(Window* window) { | 62 void WindowPortLocal::OnPreInit(Window* window) {} |
| 63 return nullptr; | |
| 64 } | |
| 65 | |
| 66 void WindowPortLocal::OnPostInit( | |
| 67 std::unique_ptr<WindowPortInitData> init_data) {} | |
| 68 | 63 |
| 69 void WindowPortLocal::OnDeviceScaleFactorChanged(float device_scale_factor) { | 64 void WindowPortLocal::OnDeviceScaleFactorChanged(float device_scale_factor) { |
| 70 ScopedCursorHider hider(window_); | 65 ScopedCursorHider hider(window_); |
| 71 if (window_->delegate()) | 66 if (window_->delegate()) |
| 72 window_->delegate()->OnDeviceScaleFactorChanged(device_scale_factor); | 67 window_->delegate()->OnDeviceScaleFactorChanged(device_scale_factor); |
| 73 } | 68 } |
| 74 | 69 |
| 75 void WindowPortLocal::OnWillAddChild(Window* child) {} | 70 void WindowPortLocal::OnWillAddChild(Window* child) {} |
| 76 | 71 |
| 77 void WindowPortLocal::OnWillRemoveChild(Window* child) {} | 72 void WindowPortLocal::OnWillRemoveChild(Window* child) {} |
| 78 | 73 |
| 79 void WindowPortLocal::OnWillMoveChild(size_t current_index, size_t dest_index) { | 74 void WindowPortLocal::OnWillMoveChild(size_t current_index, size_t dest_index) { |
| 80 } | 75 } |
| 81 | 76 |
| 82 void WindowPortLocal::OnVisibilityChanged(bool visible) {} | 77 void WindowPortLocal::OnVisibilityChanged(bool visible) {} |
| 83 | 78 |
| 84 void WindowPortLocal::OnDidChangeBounds(const gfx::Rect& old_bounds, | 79 void WindowPortLocal::OnDidChangeBounds(const gfx::Rect& old_bounds, |
| 85 const gfx::Rect& new_bounds) {} | 80 const gfx::Rect& new_bounds) {} |
| 86 | 81 |
| 87 std::unique_ptr<WindowPortPropertyData> WindowPortLocal::OnWillChangeProperty( | 82 std::unique_ptr<WindowPortPropertyData> WindowPortLocal::OnWillChangeProperty( |
| 88 const void* key) { | 83 const void* key) { |
| 89 return nullptr; | 84 return nullptr; |
| 90 } | 85 } |
| 91 | 86 |
| 92 void WindowPortLocal::OnPropertyChanged( | 87 void WindowPortLocal::OnPropertyChanged( |
| 93 const void* key, | 88 const void* key, |
| 94 std::unique_ptr<WindowPortPropertyData> data) {} | 89 std::unique_ptr<WindowPortPropertyData> data) {} |
| 95 | 90 |
| 96 } // namespace aura | 91 } // namespace aura |
| OLD | NEW |