| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ |
| 6 #define UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ |
| 7 | 7 |
| 8 #include "ui/views/view.h" | 8 #include "ui/views/view.h" |
| 9 #include "ui/views/bubble/bubble_border.h" | 9 #include "ui/views/bubble/bubble_border.h" |
| 10 #include "ui/views/controls/menu/menu_types.h" | 10 #include "ui/views/controls/menu/menu_types.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 View* scroll_down_button() const { return scroll_down_button_; } | 24 View* scroll_down_button() const { return scroll_down_button_; } |
| 25 View* scroll_up_button() const { return scroll_up_button_; } | 25 View* scroll_up_button() const { return scroll_up_button_; } |
| 26 | 26 |
| 27 // External function to check if the bubble border is usd. | 27 // External function to check if the bubble border is usd. |
| 28 bool HasBubbleBorder(); | 28 bool HasBubbleBorder(); |
| 29 | 29 |
| 30 // Offsets the Arrow from the default location. | 30 // Offsets the Arrow from the default location. |
| 31 void SetBubbleArrowOffset(int offset); | 31 void SetBubbleArrowOffset(int offset); |
| 32 | 32 |
| 33 // View overrides. | 33 // View overrides. |
| 34 gfx::Size GetPreferredSize() const override; |
| 35 void Layout() override; |
| 34 void OnPaintBackground(gfx::Canvas* canvas) override; | 36 void OnPaintBackground(gfx::Canvas* canvas) override; |
| 35 void Layout() override; | |
| 36 gfx::Size GetPreferredSize() const override; | |
| 37 void GetAccessibleState(ui::AXViewState* state) override; | 37 void GetAccessibleState(ui::AXViewState* state) override; |
| 38 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
| 38 | 39 |
| 39 protected: | 40 protected: |
| 40 // View override. | 41 // View override. |
| 41 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; | 42 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; |
| 42 | 43 |
| 43 private: | 44 private: |
| 44 // Create the default border. | 45 // Create the default border. |
| 45 void CreateDefaultBorder(); | 46 void CreateDefaultBorder(); |
| 46 | 47 |
| 47 // Create the bubble border. | 48 // Create the bubble border. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 66 | 67 |
| 67 // Weak reference to the currently set border. | 68 // Weak reference to the currently set border. |
| 68 BubbleBorder* bubble_border_; | 69 BubbleBorder* bubble_border_; |
| 69 | 70 |
| 70 DISALLOW_COPY_AND_ASSIGN(MenuScrollViewContainer); | 71 DISALLOW_COPY_AND_ASSIGN(MenuScrollViewContainer); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace views | 74 } // namespace views |
| 74 | 75 |
| 75 #endif // UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ | 76 #endif // UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ |
| OLD | NEW |