| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_SHELF_OVERFLOW_BUBBLE_VIEW_H_ | 5 #ifndef ASH_SHELF_OVERFLOW_BUBBLE_VIEW_H_ |
| 6 #define ASH_SHELF_OVERFLOW_BUBBLE_VIEW_H_ | 6 #define ASH_SHELF_OVERFLOW_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 bool IsHorizontalAlignment() const; | 36 bool IsHorizontalAlignment() const; |
| 37 | 37 |
| 38 const gfx::Size GetContentsSize() const; | 38 const gfx::Size GetContentsSize() const; |
| 39 | 39 |
| 40 // Gets arrow location based on shelf alignment. | 40 // Gets arrow location based on shelf alignment. |
| 41 views::BubbleBorder::Arrow GetBubbleArrow() const; | 41 views::BubbleBorder::Arrow GetBubbleArrow() const; |
| 42 | 42 |
| 43 void ScrollByXOffset(int x_offset); | 43 void ScrollByXOffset(int x_offset); |
| 44 void ScrollByYOffset(int y_offset); | 44 void ScrollByYOffset(int y_offset); |
| 45 | 45 |
| 46 ShelfLayoutManager* GetShelfLayoutManager() const; |
| 47 |
| 46 // views::View overrides: | 48 // views::View overrides: |
| 47 gfx::Size GetPreferredSize() const override; | 49 gfx::Size GetPreferredSize() const override; |
| 48 void Layout() override; | 50 void Layout() override; |
| 49 void ChildPreferredSizeChanged(views::View* child) override; | 51 void ChildPreferredSizeChanged(views::View* child) override; |
| 50 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; | 52 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; |
| 51 | 53 |
| 52 // ui::EventHandler overrides: | 54 // ui::EventHandler overrides: |
| 53 void OnScrollEvent(ui::ScrollEvent* event) override; | 55 void OnScrollEvent(ui::ScrollEvent* event) override; |
| 54 | 56 |
| 55 ShelfLayoutManager* GetShelfLayoutManager() const; | |
| 56 | |
| 57 ShelfView* shelf_view_; // Owned by views hierarchy. | 57 ShelfView* shelf_view_; // Owned by views hierarchy. |
| 58 gfx::Vector2d scroll_offset_; | 58 gfx::Vector2d scroll_offset_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(OverflowBubbleView); | 60 DISALLOW_COPY_AND_ASSIGN(OverflowBubbleView); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace ash | 63 } // namespace ash |
| 64 | 64 |
| 65 #endif // ASH_SHELF_OVERFLOW_BUBBLE_VIEW_H_ | 65 #endif // ASH_SHELF_OVERFLOW_BUBBLE_VIEW_H_ |
| OLD | NEW |