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

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

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Created 4 years 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 void WindowTreeHostMus::SetClientArea(const gfx::Insets& insets) { 111 void WindowTreeHostMus::SetClientArea(const gfx::Insets& insets) {
112 delegate_->OnWindowTreeHostClientAreaWillChange(this, insets, 112 delegate_->OnWindowTreeHostClientAreaWillChange(this, insets,
113 std::vector<gfx::Rect>()); 113 std::vector<gfx::Rect>());
114 } 114 }
115 115
116 void WindowTreeHostMus::SetHitTestMask(const base::Optional<gfx::Rect>& rect) { 116 void WindowTreeHostMus::SetHitTestMask(const base::Optional<gfx::Rect>& rect) {
117 delegate_->OnWindowTreeHostHitTestMaskWillChange(this, rect); 117 delegate_->OnWindowTreeHostHitTestMaskWillChange(this, rect);
118 } 118 }
119 119
120 void WindowTreeHostMus::ClearFocus() {
121 delegate_->OnWindowTreeHostClearFocus();
122 }
Elliot Glaysher 2016/12/13 23:30:20 I don't like this emerging pattern. DesktopWindowT
123
120 display::Display WindowTreeHostMus::GetDisplay() const { 124 display::Display WindowTreeHostMus::GetDisplay() const {
121 for (const display::Display& display : 125 for (const display::Display& display :
122 display::Screen::GetScreen()->GetAllDisplays()) { 126 display::Screen::GetScreen()->GetAllDisplays()) {
123 if (display.id() == display_id_) 127 if (display.id() == display_id_)
124 return display; 128 return display;
125 } 129 }
126 return display::Display(); 130 return display::Display();
127 } 131 }
128 132
129 void WindowTreeHostMus::ShowImpl() { 133 void WindowTreeHostMus::ShowImpl() {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 void WindowTreeHostMus::OnCloseRequest() { 165 void WindowTreeHostMus::OnCloseRequest() {
162 OnHostCloseRequested(); 166 OnHostCloseRequested();
163 } 167 }
164 168
165 gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() { 169 gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() {
166 // TODO: This should read the profile from mus. crbug.com/647510 170 // TODO: This should read the profile from mus. crbug.com/647510
167 return gfx::ICCProfile(); 171 return gfx::ICCProfile();
168 } 172 }
169 173
170 } // namespace aura 174 } // 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