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

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

Issue 2535983004: Makes sure bounds and visibilty are updated correctly for new displays (Closed)
Patch Set: merge 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/test/mus/window_tree_client_private.cc ('k') | no next file » | 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/test_screen.h" 5 #include "ui/aura/test/test_screen.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "ui/aura/env.h" 10 #include "ui/aura/env.h"
11 #include "ui/aura/mus/window_tree_client.h" 11 #include "ui/aura/mus/window_tree_client.h"
12 #include "ui/aura/mus/window_tree_host_mus.h"
12 #include "ui/aura/test/mus/window_tree_client_private.h" 13 #include "ui/aura/test/mus/window_tree_client_private.h"
13 #include "ui/aura/window.h" 14 #include "ui/aura/window.h"
14 #include "ui/aura/window_event_dispatcher.h" 15 #include "ui/aura/window_event_dispatcher.h"
15 #include "ui/aura/window_tree_host.h" 16 #include "ui/aura/window_tree_host.h"
16 #include "ui/base/ime/input_method.h" 17 #include "ui/base/ime/input_method.h"
17 #include "ui/gfx/geometry/rect_conversions.h" 18 #include "ui/gfx/geometry/rect_conversions.h"
18 #include "ui/gfx/geometry/size_conversions.h" 19 #include "ui/gfx/geometry/size_conversions.h"
19 #include "ui/gfx/native_widget_types.h" 20 #include "ui/gfx/native_widget_types.h"
20 21
21 namespace aura { 22 namespace aura {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 TestScreen::TestScreen(const gfx::Rect& screen_bounds, 163 TestScreen::TestScreen(const gfx::Rect& screen_bounds,
163 WindowTreeClient* window_tree_client) 164 WindowTreeClient* window_tree_client)
164 : host_(nullptr), ui_scale_(1.0f), window_tree_client_(window_tree_client) { 165 : host_(nullptr), ui_scale_(1.0f), window_tree_client_(window_tree_client) {
165 static int64_t synthesized_display_id = 2000; 166 static int64_t synthesized_display_id = 2000;
166 display::Display display(synthesized_display_id++); 167 display::Display display(synthesized_display_id++);
167 display.SetScaleAndBounds(1.0f, screen_bounds); 168 display.SetScaleAndBounds(1.0f, screen_bounds);
168 ProcessDisplayChanged(display, true /* is_primary */); 169 ProcessDisplayChanged(display, true /* is_primary */);
169 } 170 }
170 171
171 } // namespace aura 172 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/mus/window_tree_client_private.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698