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

Side by Side Diff: ui/views/controls/separator.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
« no previous file with comments | « ui/views/controls/scrollbar/scroll_bar.cc ('k') | ui/views/controls/separator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SEPARATOR_H_ 5 #ifndef UI_VIEWS_CONTROLS_SEPARATOR_H_
6 #define UI_VIEWS_CONTROLS_SEPARATOR_H_ 6 #define UI_VIEWS_CONTROLS_SEPARATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 SkColor color() const { return color_; } 31 SkColor color() const { return color_; }
32 void SetColor(SkColor color); 32 void SetColor(SkColor color);
33 33
34 int size() const { return size_; } 34 int size() const { return size_; }
35 // Preferred size of one axis: height for horizontal separator 35 // Preferred size of one axis: height for horizontal separator
36 // and width for vertical separator 36 // and width for vertical separator
37 void SetPreferredSize(int size); 37 void SetPreferredSize(int size);
38 38
39 // Overridden from View: 39 // Overridden from View:
40 gfx::Size GetPreferredSize() const override; 40 gfx::Size GetPreferredSize() const override;
41 void GetAccessibleState(ui::AXViewState* state) override; 41 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
42 void OnPaint(gfx::Canvas* canvas) override; 42 void OnPaint(gfx::Canvas* canvas) override;
43 const char* GetClassName() const override; 43 const char* GetClassName() const override;
44 44
45 private: 45 private:
46 const Orientation orientation_; 46 const Orientation orientation_;
47 SkColor color_; 47 SkColor color_;
48 int size_; 48 int size_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(Separator); 50 DISALLOW_COPY_AND_ASSIGN(Separator);
51 }; 51 };
52 52
53 } // namespace views 53 } // namespace views
54 54
55 #endif // UI_VIEWS_CONTROLS_SEPARATOR_H_ 55 #endif // UI_VIEWS_CONTROLS_SEPARATOR_H_
OLDNEW
« no previous file with comments | « ui/views/controls/scrollbar/scroll_bar.cc ('k') | ui/views/controls/separator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698