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

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

Issue 2066583004: mash: Move most files in //ash/system/tray to //ash/common/system/tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trayupdatemove
Patch Set: rebase Created 4 years, 6 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/system/tray/actionable_view.cc ('k') | ash/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/system/tray/fixed_sized_scroll_view.h
diff --git a/ash/system/tray/fixed_sized_scroll_view.h b/ash/system/tray/fixed_sized_scroll_view.h
deleted file mode 100644
index cafb28f3384a9fda66fc4d5925b4044873d4bf0a..0000000000000000000000000000000000000000
--- a/ash/system/tray/fixed_sized_scroll_view.h
+++ /dev/null
@@ -1,44 +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_SYSTEM_TRAY_FIXED_SIZED_SCROLL_VIEW_H_
-#define ASH_SYSTEM_TRAY_FIXED_SIZED_SCROLL_VIEW_H_
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "ui/views/controls/scroll_view.h"
-
-namespace ash {
-
-// A custom scroll-view that has a specified dimension.
-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) { fixed_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_SYSTEM_TRAY_FIXED_SIZED_SCROLL_VIEW_H_
« no previous file with comments | « ash/system/tray/actionable_view.cc ('k') | ash/system/tray/fixed_sized_scroll_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698