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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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/special_popup_row.cc ('k') | ash/system/tray/system_tray.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_SYSTEM_TRAY_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/system/tray/system_tray_bubble.h" 9 #include "ash/system/tray/system_tray_bubble.h"
10 #include "ash/system/tray/tray_background_view.h" 10 #include "ash/system/tray/tray_background_view.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void BubbleResized(const views::TrayBubbleView* bubble_view) OVERRIDE; 128 virtual void BubbleResized(const views::TrayBubbleView* bubble_view) OVERRIDE;
129 virtual void HideBubbleWithView( 129 virtual void HideBubbleWithView(
130 const views::TrayBubbleView* bubble_view) OVERRIDE; 130 const views::TrayBubbleView* bubble_view) OVERRIDE;
131 virtual bool ClickedOutsideBubble() OVERRIDE; 131 virtual bool ClickedOutsideBubble() OVERRIDE;
132 132
133 // Overridden from message_center::TrayBubbleView::Delegate. 133 // Overridden from message_center::TrayBubbleView::Delegate.
134 virtual void BubbleViewDestroyed() OVERRIDE; 134 virtual void BubbleViewDestroyed() OVERRIDE;
135 virtual void OnMouseEnteredView() OVERRIDE; 135 virtual void OnMouseEnteredView() OVERRIDE;
136 virtual void OnMouseExitedView() OVERRIDE; 136 virtual void OnMouseExitedView() OVERRIDE;
137 virtual base::string16 GetAccessibleNameForBubble() OVERRIDE; 137 virtual base::string16 GetAccessibleNameForBubble() OVERRIDE;
138 virtual gfx::Rect GetAnchorRect(views::Widget* anchor_widget, 138 virtual gfx::Rect GetAnchorRect(
139 AnchorType anchor_type, 139 views::Widget* anchor_widget,
140 AnchorAlignment anchor_alignment) OVERRIDE; 140 AnchorType anchor_type,
141 AnchorAlignment anchor_alignment) const OVERRIDE;
141 virtual void HideBubble(const views::TrayBubbleView* bubble_view) OVERRIDE; 142 virtual void HideBubble(const views::TrayBubbleView* bubble_view) OVERRIDE;
142 143
143 TrayAccessibility* GetTrayAccessibilityForTest() { 144 TrayAccessibility* GetTrayAccessibilityForTest() {
144 return tray_accessibility_; 145 return tray_accessibility_;
145 } 146 }
146 147
147 // Get the tray item view (or NULL) for a given |tray_item| in a unit test. 148 // Get the tray item view (or NULL) for a given |tray_item| in a unit test.
148 views::View* GetTrayItemViewForTest(SystemTrayItem* tray_item); 149 views::View* GetTrayItemViewForTest(SystemTrayItem* tray_item);
149 150
150 // Gets tray_date_ for browser tests. 151 // Gets tray_date_ for browser tests.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 227
227 TrayAccessibility* tray_accessibility_; // not owned 228 TrayAccessibility* tray_accessibility_; // not owned
228 TrayDate* tray_date_; 229 TrayDate* tray_date_;
229 230
230 DISALLOW_COPY_AND_ASSIGN(SystemTray); 231 DISALLOW_COPY_AND_ASSIGN(SystemTray);
231 }; 232 };
232 233
233 } // namespace ash 234 } // namespace ash
234 235
235 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 236 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
OLDNEW
« no previous file with comments | « ash/system/tray/special_popup_row.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698