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

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

Issue 2901273003: chromeos: Remove TrayBubbleView::Delegate::OnBeforeBubbleWidgetInit (Closed)
Patch Set: nit Created 3 years, 6 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
« 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 <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Updates the visibility of this tray's separator. 92 // Updates the visibility of this tray's separator.
93 void set_separator_visibility(bool visible) { separator_visible_ = visible; } 93 void set_separator_visibility(bool visible) { separator_visible_ = visible; }
94 94
95 // Gets the anchor for bubbles, which is tray_container(). 95 // Gets the anchor for bubbles, which is tray_container().
96 views::View* GetBubbleAnchor() const; 96 views::View* GetBubbleAnchor() const;
97 97
98 // Gets additional insets for positioning bubbles relative to 98 // Gets additional insets for positioning bubbles relative to
99 // tray_container(). 99 // tray_container().
100 gfx::Insets GetBubbleAnchorInsets() const; 100 gfx::Insets GetBubbleAnchorInsets() const;
101 101
102 // Returns the container window for the bubble (on the proper display).
103 aura::Window* GetBubbleWindowContainer() const;
104
102 protected: 105 protected:
103 // ActionableView: 106 // ActionableView:
104 std::unique_ptr<views::InkDropMask> CreateInkDropMask() const override; 107 std::unique_ptr<views::InkDropMask> CreateInkDropMask() const override;
105 bool ShouldEnterPushedState(const ui::Event& event) override; 108 bool ShouldEnterPushedState(const ui::Event& event) override;
106 bool PerformAction(const ui::Event& event) override; 109 bool PerformAction(const ui::Event& event) override;
107 void HandlePerformActionResult(bool action_performed, 110 void HandlePerformActionResult(bool action_performed,
108 const ui::Event& event) override; 111 const ui::Event& event) override;
109 void OnPaintFocus(gfx::Canvas* canvas) override; 112 void OnPaintFocus(gfx::Canvas* canvas) override;
110 113
111 private: 114 private:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 148
146 std::unique_ptr<TrayWidgetObserver> widget_observer_; 149 std::unique_ptr<TrayWidgetObserver> widget_observer_;
147 std::unique_ptr<TrayEventFilter> tray_event_filter_; 150 std::unique_ptr<TrayEventFilter> tray_event_filter_;
148 151
149 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); 152 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView);
150 }; 153 };
151 154
152 } // namespace ash 155 } // namespace ash
153 156
154 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 157 #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