| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |