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

Side by Side Diff: ash/test/ash_test_base.h

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 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 | « ash/test/BUILD.gn ('k') | ash/test/test_shell_delegate.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 #ifndef ASH_TEST_ASH_TEST_BASE_H_ 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_
6 #define ASH_TEST_ASH_TEST_BASE_H_ 6 #define ASH_TEST_ASH_TEST_BASE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Update the display configuration as given in |display_specs|. 76 // Update the display configuration as given in |display_specs|.
77 // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. 77 // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details.
78 void UpdateDisplay(const std::string& display_specs); 78 void UpdateDisplay(const std::string& display_specs);
79 79
80 // Returns a root Window. Usually this is the active root Window, but that 80 // Returns a root Window. Usually this is the active root Window, but that
81 // method can return NULL sometimes, and in those cases, we fall back on the 81 // method can return NULL sometimes, and in those cases, we fall back on the
82 // primary root Window. 82 // primary root Window.
83 aura::Window* CurrentContext(); 83 aura::Window* CurrentContext();
84 84
85 // Creates and shows a widget. See ash/common/shell_window_ids.h for values 85 // Creates and shows a widget. See ash/public/cpp/shell_window_ids.h for
86 // for |container_id|. 86 // values for |container_id|.
87 static std::unique_ptr<views::Widget> CreateTestWidget( 87 static std::unique_ptr<views::Widget> CreateTestWidget(
88 views::WidgetDelegate* delegate, 88 views::WidgetDelegate* delegate,
89 int container_id, 89 int container_id,
90 const gfx::Rect& bounds); 90 const gfx::Rect& bounds);
91 91
92 // Versions of the functions in aura::test:: that go through our shell 92 // Versions of the functions in aura::test:: that go through our shell
93 // StackingController instead of taking a parent. 93 // StackingController instead of taking a parent.
94 aura::Window* CreateTestWindowInShellWithId(int id); 94 aura::Window* CreateTestWindowInShellWithId(int id);
95 aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds); 95 aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds);
96 aura::Window* CreateTestWindowInShell(SkColor color, 96 aura::Window* CreateTestWindowInShell(SkColor color,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 ~NoSessionAshTestBase() override {} 202 ~NoSessionAshTestBase() override {}
203 203
204 private: 204 private:
205 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); 205 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase);
206 }; 206 };
207 207
208 } // namespace test 208 } // namespace test
209 } // namespace ash 209 } // namespace ash
210 210
211 #endif // ASH_TEST_ASH_TEST_BASE_H_ 211 #endif // ASH_TEST_ASH_TEST_BASE_H_
OLDNEW
« no previous file with comments | « ash/test/BUILD.gn ('k') | ash/test/test_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698