Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: ui/aura/mus/window_tree_host_mus.cc

Issue 2693823004: aura-mus: Implement DesktopWindowTreeHostMus::SetOpacity(). (Closed)
Patch Set: Removed the comments in WindowPortMus::SetOpacityFromServer Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.h ('k') | ui/aura/mus/window_tree_host_mus_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.h ('k') | ui/aura/mus/window_tree_host_mus_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698