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

Side by Side Diff: ash/system/tray/tray_background_view.h

Issue 10825389: Fix accessability for web notification tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix asan bug Created 8 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/tray/system_tray_bubble.cc ('k') | ash/system/tray/tray_background_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 (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_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
6 #define ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/launcher/background_animator.h" 9 #include "ash/launcher/background_animator.h"
10 #include "ash/system/tray/tray_views.h" 10 #include "ash/system/tray/tray_views.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual ~TrayBackgroundView(); 60 virtual ~TrayBackgroundView();
61 61
62 // Called after the tray has been added to the widget containing it. 62 // Called after the tray has been added to the widget containing it.
63 virtual void Initialize(); 63 virtual void Initialize();
64 64
65 // Overridden from views::View. 65 // Overridden from views::View.
66 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 66 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
67 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 67 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
68 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE; 68 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE;
69 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; 69 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
70 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
70 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; 71 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE;
71 72
72 // Overridden from internal::ActionableView. 73 // Overridden from internal::ActionableView.
73 virtual bool PerformAction(const ui::Event& event) OVERRIDE; 74 virtual bool PerformAction(const ui::Event& event) OVERRIDE;
74 75
75 // Overridden from internal::BackgroundAnimatorDelegate. 76 // Overridden from internal::BackgroundAnimatorDelegate.
76 virtual void UpdateBackground(int alpha) OVERRIDE; 77 virtual void UpdateBackground(int alpha) OVERRIDE;
77 78
78 // Called whenever the shelf alignment changes. 79 // Called whenever the shelf alignment changes.
79 virtual void SetShelfAlignment(ShelfAlignment alignment); 80 virtual void SetShelfAlignment(ShelfAlignment alignment);
80 81
81 // Called when the anchor (tray or bubble) may have moved or changed. 82 // Called when the anchor (tray or bubble) may have moved or changed.
82 virtual void AnchorUpdated() {} 83 virtual void AnchorUpdated() {}
83 84
85 virtual string16 GetAccessibleName() = 0;
86
84 // Sets |contents| as a child and sets its background to |background_|. 87 // Sets |contents| as a child and sets its background to |background_|.
85 void SetContents(views::View* contents); 88 void SetContents(views::View* contents);
86 89
87 // Sets whether the tray paints a background. Default is true, but is set to 90 // Sets whether the tray paints a background. Default is true, but is set to
88 // false if a window overlaps the shelf. 91 // false if a window overlaps the shelf.
89 void SetPaintsBackground( 92 void SetPaintsBackground(
90 bool value, 93 bool value,
91 internal::BackgroundAnimator::ChangeType change_type); 94 internal::BackgroundAnimator::ChangeType change_type);
92 95
93 // Convenience function to call same function in status_area_widget_. 96 // Convenience function to call same function in status_area_widget_.
(...skipping 29 matching lines...) Expand all
123 scoped_ptr<internal::TrayLayerAnimationObserver> 126 scoped_ptr<internal::TrayLayerAnimationObserver>
124 layer_animation_observer_; 127 layer_animation_observer_;
125 128
126 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); 129 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView);
127 }; 130 };
128 131
129 } // namespace internal 132 } // namespace internal
130 } // namespace ash 133 } // namespace ash
131 134
132 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 135 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_bubble.cc ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698