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

Unified Diff: ash/common/system/tray/fixed_sized_scroll_view.h

Issue 2671063002: Remove FixedSizedScrollView. (Closed)
Patch Set: rebase Created 3 years, 10 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 | « ash/common/system/chromeos/network/tray_sms.cc ('k') | ash/common/system/tray/fixed_sized_scroll_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/fixed_sized_scroll_view.h
diff --git a/ash/common/system/tray/fixed_sized_scroll_view.h b/ash/common/system/tray/fixed_sized_scroll_view.h
deleted file mode 100644
index d45c479f5b9ece0671621d051fd38dc991350fd1..0000000000000000000000000000000000000000
--- a/ash/common/system/tray/fixed_sized_scroll_view.h
+++ /dev/null
@@ -1,45 +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 ASH_COMMON_SYSTEM_TRAY_FIXED_SIZED_SCROLL_VIEW_H_
-#define ASH_COMMON_SYSTEM_TRAY_FIXED_SIZED_SCROLL_VIEW_H_
-
-#include "base/macros.h"
-#include "ui/views/controls/scroll_view.h"
-
-namespace ash {
-
-// A custom scroll-view that has a specified dimension.
-// TODO(estade): can we get rid of this class? In MD, it hardly differs in
-// behavior from ScrollView.
-class FixedSizedScrollView : public views::ScrollView {
- public:
- FixedSizedScrollView();
- ~FixedSizedScrollView() override;
-
- void SetContentsView(views::View* view);
-
- // Change the fixed size of the view. Invalidates the layout (by calling
- // PreferredSizeChanged()).
- void SetFixedSize(const gfx::Size& size);
-
- void set_fixed_size(const gfx::Size& size);
-
- // Overridden from views::View:
- gfx::Size GetPreferredSize() const override;
- void Layout() override;
-
- protected:
- // Overridden from views::View:
- void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
-
- private:
- gfx::Size fixed_size_;
-
- DISALLOW_COPY_AND_ASSIGN(FixedSizedScrollView);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_TRAY_FIXED_SIZED_SCROLL_VIEW_H_
« no previous file with comments | « ash/common/system/chromeos/network/tray_sms.cc ('k') | ash/common/system/tray/fixed_sized_scroll_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698