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

Side by Side Diff: ash/common/shelf/shelf_button.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/shelf/app_list_button.cc ('k') | ash/common/shelf/shelf_button.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHELF_SHELF_BUTTON_H_ 5 #ifndef ASH_COMMON_SHELF_SHELF_BUTTON_H_
6 #define ASH_COMMON_SHELF_SHELF_BUTTON_H_ 6 #define ASH_COMMON_SHELF_SHELF_BUTTON_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/gfx/shadow_value.h" 10 #include "ui/gfx/shadow_value.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // View override - needed by unit test. 65 // View override - needed by unit test.
66 void OnMouseCaptureLost() override; 66 void OnMouseCaptureLost() override;
67 67
68 protected: 68 protected:
69 // View overrides: 69 // View overrides:
70 const char* GetClassName() const override; 70 const char* GetClassName() const override;
71 bool OnMousePressed(const ui::MouseEvent& event) override; 71 bool OnMousePressed(const ui::MouseEvent& event) override;
72 void OnMouseReleased(const ui::MouseEvent& event) override; 72 void OnMouseReleased(const ui::MouseEvent& event) override;
73 bool OnMouseDragged(const ui::MouseEvent& event) override; 73 bool OnMouseDragged(const ui::MouseEvent& event) override;
74 void GetAccessibleState(ui::AXViewState* state) override; 74 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
75 void Layout() override; 75 void Layout() override;
76 void ChildPreferredSizeChanged(views::View* child) override; 76 void ChildPreferredSizeChanged(views::View* child) override;
77 void OnFocus() override; 77 void OnFocus() override;
78 void OnBlur() override; 78 void OnBlur() override;
79 void OnPaint(gfx::Canvas* canvas) override; 79 void OnPaint(gfx::Canvas* canvas) override;
80 80
81 // ui::EventHandler overrides: 81 // ui::EventHandler overrides:
82 void OnGestureEvent(ui::GestureEvent* event) override; 82 void OnGestureEvent(ui::GestureEvent* event) override;
83 83
84 // views::CustomButton overrides: 84 // views::CustomButton overrides:
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // If non-null the destuctor sets this to true. This is set while the menu is 119 // If non-null the destuctor sets this to true. This is set while the menu is
120 // showing and used to detect if the menu was deleted while running. 120 // showing and used to detect if the menu was deleted while running.
121 bool* destroyed_flag_; 121 bool* destroyed_flag_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(ShelfButton); 123 DISALLOW_COPY_AND_ASSIGN(ShelfButton);
124 }; 124 };
125 125
126 } // namespace ash 126 } // namespace ash
127 127
128 #endif // ASH_COMMON_SHELF_SHELF_BUTTON_H_ 128 #endif // ASH_COMMON_SHELF_SHELF_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/app_list_button.cc ('k') | ash/common/shelf/shelf_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698