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

Unified Diff: ui/views/test/test_layout_manager.cc

Issue 2439093002: Reland of "Added common layout framework for system menu rows." (Closed)
Patch Set: Addressed review comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/test/test_layout_manager.h ('k') | ui/views/test/test_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/test_layout_manager.cc
diff --git a/ui/views/test/test_layout_manager.cc b/ui/views/test/test_layout_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ae1f2678b20e70ffb6afaa6293a712256c1bae2e
--- /dev/null
+++ b/ui/views/test/test_layout_manager.cc
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/views/test/test_layout_manager.h"
+
+namespace views {
+namespace test {
+
+TestLayoutManager::TestLayoutManager() {}
+
+TestLayoutManager::~TestLayoutManager() {}
+
+void TestLayoutManager::Layout(View* host) {}
+
+gfx::Size TestLayoutManager::GetPreferredSize(const View* host) const {
+ return preferred_size_;
+}
+
+int TestLayoutManager::GetPreferredHeightForWidth(const View* host,
+ int width) const {
+ return preferred_height_for_width_;
+}
+
+} // namespace test
+} // namespace views
« no previous file with comments | « ui/views/test/test_layout_manager.h ('k') | ui/views/test/test_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698