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

Unified Diff: ui/views/test/test_views.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/test/slider_test_api.cc ('k') | ui/views/test/test_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/test_views.h
diff --git a/ui/views/test/test_views.h b/ui/views/test/test_views.h
deleted file mode 100644
index 429e59f531ffed5dcba70d8cf5337d3a2558ca34..0000000000000000000000000000000000000000
--- a/ui/views/test/test_views.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef UI_VIEWS_TEST_TEST_VIEWS_H_
-#define UI_VIEWS_TEST_TEST_VIEWS_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "ui/views/view.h"
-
-namespace views {
-
-// A view that requests a set amount of space.
-class StaticSizedView : public View {
- public:
- explicit StaticSizedView(const gfx::Size& size);
- virtual ~StaticSizedView();
-
- virtual gfx::Size GetPreferredSize() const override;
-
- private:
- gfx::Size size_;
-
- DISALLOW_COPY_AND_ASSIGN(StaticSizedView);
-};
-
-// A view that accomodates testing layouts that use GetHeightForWidth.
-class ProportionallySizedView : public View {
- public:
- explicit ProportionallySizedView(int factor);
- virtual ~ProportionallySizedView();
-
- void set_preferred_width(int width) { preferred_width_ = width; }
-
- virtual int GetHeightForWidth(int w) const override;
- virtual gfx::Size GetPreferredSize() const override;
-
- private:
- // The multiplicative factor between width and height, i.e.
- // height = width * factor_.
- int factor_;
-
- // The width used as the preferred size. -1 if not used.
- int preferred_width_;
-
- DISALLOW_COPY_AND_ASSIGN(ProportionallySizedView);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_TEST_TEST_VIEWS_H_
« no previous file with comments | « ui/views/test/slider_test_api.cc ('k') | ui/views/test/test_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698