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

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

Issue 12510005: Remove close_on_deactivate=false for tray bubbles (2nd) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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.cc ('k') | ash/system/tray/tray_bubble_wrapper.h » ('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/shelf_types.h" 10 #include "ash/shelf_types.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Called whenever the shelf alignment changes. 80 // Called whenever the shelf alignment changes.
81 virtual void SetShelfAlignment(ShelfAlignment alignment); 81 virtual void SetShelfAlignment(ShelfAlignment alignment);
82 82
83 // Called when the anchor (tray or bubble) may have moved or changed. 83 // Called when the anchor (tray or bubble) may have moved or changed.
84 virtual void AnchorUpdated() {} 84 virtual void AnchorUpdated() {}
85 85
86 // Called from GetAccessibleState, must return a valid accessible name. 86 // Called from GetAccessibleState, must return a valid accessible name.
87 virtual string16 GetAccessibleNameForTray() = 0; 87 virtual string16 GetAccessibleNameForTray() = 0;
88 88
89 // Hides the bubble associated with |bubble_view|. Called when the widget 89 // Hides the bubble associated with |bubble_view|. Called when the widget
90 // is closed. 90 // is closed. |bubble_view| may be already destroyed.
91 virtual void HideBubbleWithView(const views::TrayBubbleView* bubble_view) = 0; 91 virtual void HideBubbleWithView(const views::TrayBubbleView* bubble_view) = 0;
92 92
93 // Called by the bubble wrapper when a click event occurs outside the bubble. 93 // Called by the bubble wrapper when a click event occurs outside the bubble.
94 // May close the bubble. Returns true if the event is handled. 94 // May close the bubble. Returns true if the event is handled.
95 virtual bool ClickedOutsideBubble() = 0; 95 virtual bool ClickedOutsideBubble() = 0;
96 96
97 // Sets |contents| as a child. 97 // Sets |contents| as a child.
98 void SetContents(views::View* contents); 98 void SetContents(views::View* contents);
99 99
100 // Creates and sets contents background to |background_|. 100 // Creates and sets contents background to |background_|.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 scoped_ptr<TrayWidgetObserver> widget_observer_; 160 scoped_ptr<TrayWidgetObserver> widget_observer_;
161 scoped_ptr<TrayEventFilter> tray_event_filter_; 161 scoped_ptr<TrayEventFilter> tray_event_filter_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); 163 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView);
164 }; 164 };
165 165
166 } // namespace internal 166 } // namespace internal
167 } // namespace ash 167 } // namespace ash
168 168
169 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 169 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/tray_bubble_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698