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

Side by Side Diff: ui/aura/test/aura_test_base.cc

Issue 2650833002: Set focusibility correctly when initializing a window in mus+ash. (Closed)
Patch Set: addressed feedback. Created 3 years, 11 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/test/aura_test_base.h ('k') | ui/views/mus/mus_client.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/test/aura_test_base.h" 5 #include "ui/aura/test/aura_test_base.h"
6 6
7 #include "ui/aura/client/window_parenting_client.h" 7 #include "ui/aura/client/window_parenting_client.h"
8 #include "ui/aura/mus/property_utils.h" 8 #include "ui/aura/mus/property_utils.h"
9 #include "ui/aura/mus/window_tree_client.h" 9 #include "ui/aura/mus/window_tree_client.h"
10 #include "ui/aura/mus/window_tree_host_mus.h" 10 #include "ui/aura/mus/window_tree_host_mus.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 return true; 162 return true;
163 } 163 }
164 164
165 bool AuraTestBase::OnWmSetProperty( 165 bool AuraTestBase::OnWmSetProperty(
166 Window* window, 166 Window* window,
167 const std::string& name, 167 const std::string& name,
168 std::unique_ptr<std::vector<uint8_t>>* new_data) { 168 std::unique_ptr<std::vector<uint8_t>>* new_data) {
169 return true; 169 return true;
170 } 170 }
171 171
172 void AuraTestBase::OnWmSetCanFocus(Window* window, bool can_focus) {}
173
172 Window* AuraTestBase::OnWmCreateTopLevelWindow( 174 Window* AuraTestBase::OnWmCreateTopLevelWindow(
173 ui::mojom::WindowType window_type, 175 ui::mojom::WindowType window_type,
174 std::map<std::string, std::vector<uint8_t>>* properties) { 176 std::map<std::string, std::vector<uint8_t>>* properties) {
175 Window* window = new Window(nullptr); 177 Window* window = new Window(nullptr);
176 SetWindowType(window, window_type); 178 SetWindowType(window, window_type);
177 window->Init(ui::LAYER_NOT_DRAWN); 179 window->Init(ui::LAYER_NOT_DRAWN);
178 return window; 180 return window;
179 } 181 }
180 182
181 void AuraTestBase::OnWmClientJankinessChanged( 183 void AuraTestBase::OnWmClientJankinessChanged(
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 244
243 void AuraTestBaseWithType::SetUp() { 245 void AuraTestBaseWithType::SetUp() {
244 DCHECK(!setup_called_); 246 DCHECK(!setup_called_);
245 setup_called_ = true; 247 setup_called_ = true;
246 ConfigureBackend(GetParam()); 248 ConfigureBackend(GetParam());
247 AuraTestBase::SetUp(); 249 AuraTestBase::SetUp();
248 } 250 }
249 251
250 } // namespace test 252 } // namespace test
251 } // namespace aura 253 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/aura_test_base.h ('k') | ui/views/mus/mus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698