| 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 #include "ui/aura/mus/window_tree_host_mus.h" | 5 #include "ui/aura/mus/window_tree_host_mus.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "ui/aura/env.h" | 8 #include "ui/aura/env.h" |
| 9 #include "ui/aura/mus/input_method_mus.h" | 9 #include "ui/aura/mus/input_method_mus.h" |
| 10 #include "ui/aura/mus/window_port_mus.h" | 10 #include "ui/aura/mus/window_port_mus.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 const gfx::Insets& insets, | 139 const gfx::Insets& insets, |
| 140 const std::vector<gfx::Rect>& additional_client_area) { | 140 const std::vector<gfx::Rect>& additional_client_area) { |
| 141 delegate_->OnWindowTreeHostClientAreaWillChange(this, insets, | 141 delegate_->OnWindowTreeHostClientAreaWillChange(this, insets, |
| 142 additional_client_area); | 142 additional_client_area); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void WindowTreeHostMus::SetHitTestMask(const base::Optional<gfx::Rect>& rect) { | 145 void WindowTreeHostMus::SetHitTestMask(const base::Optional<gfx::Rect>& rect) { |
| 146 delegate_->OnWindowTreeHostHitTestMaskWillChange(this, rect); | 146 delegate_->OnWindowTreeHostHitTestMaskWillChange(this, rect); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void WindowTreeHostMus::SetOpacity(float value) { |
| 150 delegate_->OnWindowTreeHostSetOpacity(this, value); |
| 151 } |
| 152 |
| 149 void WindowTreeHostMus::DeactivateWindow() { | 153 void WindowTreeHostMus::DeactivateWindow() { |
| 150 delegate_->OnWindowTreeHostDeactivateWindow(this); | 154 delegate_->OnWindowTreeHostDeactivateWindow(this); |
| 151 } | 155 } |
| 152 | 156 |
| 153 void WindowTreeHostMus::StackAbove(Window* window) { | 157 void WindowTreeHostMus::StackAbove(Window* window) { |
| 154 delegate_->OnWindowTreeHostStackAbove(this, window); | 158 delegate_->OnWindowTreeHostStackAbove(this, window); |
| 155 } | 159 } |
| 156 | 160 |
| 157 void WindowTreeHostMus::StackAtTop() { | 161 void WindowTreeHostMus::StackAtTop() { |
| 158 delegate_->OnWindowTreeHostStackAtTop(this); | 162 delegate_->OnWindowTreeHostStackAtTop(this); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 void WindowTreeHostMus::OnCloseRequest() { | 210 void WindowTreeHostMus::OnCloseRequest() { |
| 207 OnHostCloseRequested(); | 211 OnHostCloseRequested(); |
| 208 } | 212 } |
| 209 | 213 |
| 210 gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() { | 214 gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() { |
| 211 // TODO: This should read the profile from mus. crbug.com/647510 | 215 // TODO: This should read the profile from mus. crbug.com/647510 |
| 212 return gfx::ICCProfile(); | 216 return gfx::ICCProfile(); |
| 213 } | 217 } |
| 214 | 218 |
| 215 } // namespace aura | 219 } // namespace aura |
| OLD | NEW |