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

Side by Side Diff: ash/common/system/tray/tray_item_more.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TRAY_TRAY_ITEM_MORE_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/common/system/tray/actionable_view.h" 10 #include "ash/common/system/tray/actionable_view.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // 47 //
48 // By default this will be called when OnNativeThemeChanged() is called which 48 // By default this will be called when OnNativeThemeChanged() is called which
49 // will ensure the most up to date theme is actually applied. 49 // will ensure the most up to date theme is actually applied.
50 virtual void UpdateStyle(); 50 virtual void UpdateStyle();
51 51
52 private: 52 private:
53 // Overridden from ActionableView. 53 // Overridden from ActionableView.
54 bool PerformAction(const ui::Event& event) override; 54 bool PerformAction(const ui::Event& event) override;
55 55
56 // Overridden from views::View. 56 // Overridden from views::View.
57 void GetAccessibleState(ui::AXViewState* state) override; 57 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
58 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 58 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
59 59
60 // True if |more_| should be shown. 60 // True if |more_| should be shown.
61 bool show_more_; 61 bool show_more_;
62 views::ImageView* icon_; 62 views::ImageView* icon_;
63 views::Label* label_; 63 views::Label* label_;
64 views::ImageView* more_; 64 views::ImageView* more_;
65 base::string16 accessible_name_; 65 base::string16 accessible_name_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(TrayItemMore); 67 DISALLOW_COPY_AND_ASSIGN(TrayItemMore);
68 }; 68 };
69 69
70 } // namespace ash 70 } // namespace ash
71 71
72 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ 72 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_background_view.cc ('k') | ash/common/system/tray/tray_item_more.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698