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

Side by Side Diff: ui/views/controls/menu/menu_scroll_view_container.h

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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 "base/macros.h" 8 #include "base/macros.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 17 matching lines...) Expand all
28 // External function to check if the bubble border is usd. 28 // External function to check if the bubble border is usd.
29 bool HasBubbleBorder(); 29 bool HasBubbleBorder();
30 30
31 // Offsets the Arrow from the default location. 31 // Offsets the Arrow from the default location.
32 void SetBubbleArrowOffset(int offset); 32 void SetBubbleArrowOffset(int offset);
33 33
34 // View overrides. 34 // View overrides.
35 gfx::Size GetPreferredSize() const override; 35 gfx::Size GetPreferredSize() const override;
36 void Layout() override; 36 void Layout() override;
37 void OnPaintBackground(gfx::Canvas* canvas) override; 37 void OnPaintBackground(gfx::Canvas* canvas) override;
38 void GetAccessibleState(ui::AXViewState* state) override; 38 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
39 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 39 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
40 40
41 protected: 41 protected:
42 // View override. 42 // View override.
43 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; 43 void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
44 44
45 private: 45 private:
46 // Create the default border. 46 // Create the default border.
47 void CreateDefaultBorder(); 47 void CreateDefaultBorder();
48 48
(...skipping 19 matching lines...) Expand all
68 68
69 // Weak reference to the currently set border. 69 // Weak reference to the currently set border.
70 BubbleBorder* bubble_border_; 70 BubbleBorder* bubble_border_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(MenuScrollViewContainer); 72 DISALLOW_COPY_AND_ASSIGN(MenuScrollViewContainer);
73 }; 73 };
74 74
75 } // namespace views 75 } // namespace views
76 76
77 #endif // UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ 77 #endif // UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_item_view.cc ('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