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

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

Issue 2084733002: mash: Move tray accessibility and keyboard to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@typenamespace
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/system_tray.cc ('k') | ash/system/tray/tray_details_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_details_view.h
diff --git a/ash/system/tray/tray_details_view.h b/ash/system/tray/tray_details_view.h
deleted file mode 100644
index 63e118ba1490392c43af62d7cb040960f24e6fa7..0000000000000000000000000000000000000000
--- a/ash/system/tray/tray_details_view.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2012 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_TRAY_DETAILS_VIEW_H_
-#define ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_
-
-#include "ash/ash_export.h"
-#include "ash/common/system/tray/special_popup_row.h"
-#include "base/macros.h"
-#include "ui/views/view.h"
-
-namespace views {
-class ScrollView;
-}
-
-namespace ash {
-class FixedSizedScrollView;
-class ScrollBorder;
-class SystemTrayItem;
-class ViewClickListener;
-
-class ASH_EXPORT TrayDetailsView : public views::View {
- public:
- explicit TrayDetailsView(SystemTrayItem* owner);
- ~TrayDetailsView() override;
-
- // Creates a row with special highlighting etc. This is typically the
- // bottom-most row in the popup.
- void CreateSpecialRow(int string_id, ViewClickListener* listener);
-
- // Creates a scrollable list. The list has a border at the bottom if there is
- // any other view between the list and the footer row at the bottom.
- void CreateScrollableList();
-
- // Adds a separator in scrollable list.
- void AddScrollSeparator();
-
- // Removes (and destroys) all child views.
- void Reset();
-
- // Transition to default view from details view. If |footer_| has focus before
- // transition, the default view should focus on the owner of this details
- // view.
- void TransitionToDefaultView();
-
- SystemTrayItem* owner() const { return owner_; }
- SpecialPopupRow* footer() const { return footer_; }
- FixedSizedScrollView* scroller() const { return scroller_; }
- views::View* scroll_content() const { return scroll_content_; }
-
- protected:
- // Overridden from views::View.
- void Layout() override;
- void OnPaintBorder(gfx::Canvas* canvas) override;
-
- private:
- SystemTrayItem* owner_;
- SpecialPopupRow* footer_;
- FixedSizedScrollView* scroller_;
- views::View* scroll_content_;
- ScrollBorder* scroll_border_; // Weak reference
-
- DISALLOW_COPY_AND_ASSIGN(TrayDetailsView);
-};
-
-} // namespace ash
-
-#endif // ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_details_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698