OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ |
6 #define VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ | 6 #define VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "views/view.h" | 9 #include "views/view.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 View* scroll_down_button() const { return scroll_down_button_; } | 23 View* scroll_down_button() const { return scroll_down_button_; } |
24 View* scroll_up_button() const { return scroll_up_button_; } | 24 View* scroll_up_button() const { return scroll_up_button_; } |
25 | 25 |
26 // View overrides. | 26 // View overrides. |
27 virtual void PaintBackground(gfx::Canvas* canvas); | 27 virtual void PaintBackground(gfx::Canvas* canvas); |
28 virtual void Layout(); | 28 virtual void Layout(); |
29 virtual void DidChangeBounds(const gfx::Rect& previous, | 29 virtual void DidChangeBounds(const gfx::Rect& previous, |
30 const gfx::Rect& current); | 30 const gfx::Rect& current); |
31 virtual gfx::Size GetPreferredSize(); | 31 virtual gfx::Size GetPreferredSize(); |
32 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | 32 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
| 33 virtual bool GetAccessibleState(AccessibilityTypes::State* state); |
33 | 34 |
34 private: | 35 private: |
35 class MenuScrollView; | 36 class MenuScrollView; |
36 | 37 |
37 // The scroll buttons. | 38 // The scroll buttons. |
38 View* scroll_up_button_; | 39 View* scroll_up_button_; |
39 View* scroll_down_button_; | 40 View* scroll_down_button_; |
40 | 41 |
41 // The scroll view. | 42 // The scroll view. |
42 MenuScrollView* scroll_view_; | 43 MenuScrollView* scroll_view_; |
43 | 44 |
44 DISALLOW_COPY_AND_ASSIGN(MenuScrollViewContainer); | 45 DISALLOW_COPY_AND_ASSIGN(MenuScrollViewContainer); |
45 }; | 46 }; |
46 | 47 |
47 } // namespace views | 48 } // namespace views |
48 | 49 |
49 #endif // VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ | 50 #endif // VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ |
OLD | NEW |