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

Unified Diff: ui/views/controls/menu/menu_scroll_view_container.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
Index: ui/views/controls/menu/menu_scroll_view_container.h
diff --git a/ui/views/controls/menu/menu_scroll_view_container.h b/ui/views/controls/menu/menu_scroll_view_container.h
deleted file mode 100644
index fb0c2ffeac9c4ecd58021b086cc4a5f45d5dd0c9..0000000000000000000000000000000000000000
--- a/ui/views/controls/menu/menu_scroll_view_container.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) 2011 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_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_
-#define UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_
-
-#include "ui/views/view.h"
-#include "ui/views/bubble/bubble_border.h"
-#include "ui/views/controls/menu/menu_types.h"
-
-namespace views {
-
-class SubmenuView;
-
-// MenuScrollViewContainer contains the SubmenuView (through a MenuScrollView)
-// and two scroll buttons. The scroll buttons are only visible and enabled if
-// the preferred height of the SubmenuView is bigger than our bounds.
-class MenuScrollViewContainer : public View {
- public:
- explicit MenuScrollViewContainer(SubmenuView* content_view);
-
- // Returns the buttons for scrolling up/down.
- View* scroll_down_button() const { return scroll_down_button_; }
- View* scroll_up_button() const { return scroll_up_button_; }
-
- // External function to check if the bubble border is usd.
- bool HasBubbleBorder();
-
- // Offsets the Arrow from the default location.
- void SetBubbleArrowOffset(int offset);
-
- // View overrides.
- virtual void OnPaintBackground(gfx::Canvas* canvas) override;
- virtual void Layout() override;
- virtual gfx::Size GetPreferredSize() const override;
- virtual void GetAccessibleState(ui::AXViewState* state) override;
-
- protected:
- // View override.
- virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
-
- private:
- // Create the default border.
- void CreateDefaultBorder();
-
- // Create the bubble border.
- void CreateBubbleBorder();
-
- BubbleBorder::Arrow BubbleBorderTypeFromAnchor(MenuAnchorPosition anchor);
-
- class MenuScrollView;
-
- // The scroll buttons.
- View* scroll_up_button_;
- View* scroll_down_button_;
-
- // The scroll view.
- MenuScrollView* scroll_view_;
-
- // The content view.
- SubmenuView* content_view_;
-
- // If set the currently set border is a bubble border.
- BubbleBorder::Arrow arrow_;
-
- // Weak reference to the currently set border.
- BubbleBorder* bubble_border_;
-
- DISALLOW_COPY_AND_ASSIGN(MenuScrollViewContainer);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_
« no previous file with comments | « ui/views/controls/menu/menu_runner_impl_interface.h ('k') | ui/views/controls/menu/menu_scroll_view_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698