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

Unified Diff: ash/test/ash_test_base.h

Issue 2821213002: chromeos: converts ash devtools to aura::Window (Closed)
Patch Set: fix cast Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ash/test/ash_test_base.h
diff --git a/ash/test/ash_test_base.h b/ash/test/ash_test_base.h
index 21eeea617cfa595d5f9b619d0cd136339f2269ce..4837d394bfbd396c6c99a71b4a4962bc00e6e7a6 100644
--- a/ash/test/ash_test_base.h
+++ b/ash/test/ash_test_base.h
@@ -10,6 +10,7 @@
#include <memory>
#include <string>
+#include "ash/public/cpp/shell_window_ids.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/threading/thread.h"
@@ -98,6 +99,14 @@ class AshTestBase : public testing::Test {
aura::Window* CreateTestWindowInShell(SkColor color,
int id,
const gfx::Rect& bounds);
+
+ // Creates a visible window parented to |parent| with the specified bounds and
+ // id.
+ std::unique_ptr<aura::Window> CreateChildWindow(
+ aura::Window* parent,
+ const gfx::Rect& bounds = gfx::Rect(),
+ int shell_window_id = kShellWindowId_Invalid);
+
aura::Window* CreateTestWindowInShellWithDelegate(
aura::WindowDelegate* delegate,
int id,

Powered by Google App Engine
This is Rietveld 408576698