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

Side by Side Diff: ash/common/system/user/button_from_view.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 | « ash/common/system/tray/tray_utils.cc ('k') | ash/common/system/user/button_from_view.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMMON_SYSTEM_USER_BUTTON_FROM_VIEW_H_ 5 #ifndef ASH_COMMON_SYSTEM_USER_BUTTON_FROM_VIEW_H_
6 #define ASH_COMMON_SYSTEM_USER_BUTTON_FROM_VIEW_H_ 6 #define ASH_COMMON_SYSTEM_USER_BUTTON_FROM_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gfx/geometry/insets.h" 9 #include "ui/gfx/geometry/insets.h"
10 #include "ui/views/controls/button/custom_button.h" 10 #include "ui/views/controls/button/custom_button.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // Called when the border should remain even in the non highlighted state. 31 // Called when the border should remain even in the non highlighted state.
32 void ForceBorderVisible(bool show); 32 void ForceBorderVisible(bool show);
33 33
34 // Overridden from views::View 34 // Overridden from views::View
35 void OnMouseEntered(const ui::MouseEvent& event) override; 35 void OnMouseEntered(const ui::MouseEvent& event) override;
36 void OnMouseExited(const ui::MouseEvent& event) override; 36 void OnMouseExited(const ui::MouseEvent& event) override;
37 void OnPaint(gfx::Canvas* canvas) override; 37 void OnPaint(gfx::Canvas* canvas) override;
38 void OnFocus() override; 38 void OnFocus() override;
39 void OnBlur() override; 39 void OnBlur() override;
40 void GetAccessibleState(ui::AXViewState* state) override; 40 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
41 41
42 // Check if the item is hovered. 42 // Check if the item is hovered.
43 bool is_hovered_for_test() { return button_hovered_; } 43 bool is_hovered_for_test() { return button_hovered_; }
44 44
45 private: 45 private:
46 // Change the hover/active state of the "button" when the status changes. 46 // Change the hover/active state of the "button" when the status changes.
47 void ShowActive(); 47 void ShowActive();
48 48
49 // Content of button. 49 // Content of button.
50 views::View* content_; 50 views::View* content_;
(...skipping 10 matching lines...) Expand all
61 // The insets which get used for the drawn accessibility (tab) frame. 61 // The insets which get used for the drawn accessibility (tab) frame.
62 gfx::Insets tab_frame_inset_; 62 gfx::Insets tab_frame_inset_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(ButtonFromView); 64 DISALLOW_COPY_AND_ASSIGN(ButtonFromView);
65 }; 65 };
66 66
67 } // namespace tray 67 } // namespace tray
68 } // namespace ash 68 } // namespace ash
69 69
70 #endif // ASH_COMMON_SYSTEM_USER_BUTTON_FROM_VIEW_H_ 70 #endif // ASH_COMMON_SYSTEM_USER_BUTTON_FROM_VIEW_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_utils.cc ('k') | ash/common/system/user/button_from_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698