OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_BUTTON_TRAY_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_BUTTON_TRAY_H_ |
6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_BUTTON_TRAY_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_BUTTON_TRAY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // Returns true if the palette tray contains the given point. This is useful | 75 // Returns true if the palette tray contains the given point. This is useful |
76 // for determining if an event should be propagated through to the palette. | 76 // for determining if an event should be propagated through to the palette. |
77 bool ContainsPointInScreen(const gfx::Point& point); | 77 bool ContainsPointInScreen(const gfx::Point& point); |
78 | 78 |
79 private: | 79 private: |
80 // views::TrayBubbleView::Delegate: | 80 // views::TrayBubbleView::Delegate: |
81 void BubbleViewDestroyed() override; | 81 void BubbleViewDestroyed() override; |
82 void OnMouseEnteredView() override; | 82 void OnMouseEnteredView() override; |
83 void OnMouseExitedView() override; | 83 void OnMouseExitedView() override; |
84 base::string16 GetAccessibleNameForBubble() override; | 84 base::string16 GetAccessibleNameForBubble() override; |
85 gfx::Rect GetAnchorRect(views::Widget* anchor_widget, | |
86 AnchorType anchor_type, | |
87 AnchorAlignment anchor_alignment) const override; | |
88 void OnBeforeBubbleWidgetInit( | 85 void OnBeforeBubbleWidgetInit( |
89 views::Widget* anchor_widget, | 86 views::Widget* anchor_widget, |
90 views::Widget* bubble_widget, | 87 views::Widget* bubble_widget, |
91 views::Widget::InitParams* params) const override; | 88 views::Widget::InitParams* params) const override; |
92 void HideBubble(const views::TrayBubbleView* bubble_view) override; | 89 void HideBubble(const views::TrayBubbleView* bubble_view) override; |
93 | 90 |
94 // PaletteToolManager::Delegate: | 91 // PaletteToolManager::Delegate: |
95 void OnActiveToolChanged() override; | 92 void OnActiveToolChanged() override; |
96 WmWindow* GetWindow() override; | 93 WmWindow* GetWindow() override; |
97 | 94 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 int num_actions_in_bubble_ = 0; | 132 int num_actions_in_bubble_ = 0; |
136 | 133 |
137 base::WeakPtrFactory<PaletteTray> weak_factory_; | 134 base::WeakPtrFactory<PaletteTray> weak_factory_; |
138 | 135 |
139 DISALLOW_COPY_AND_ASSIGN(PaletteTray); | 136 DISALLOW_COPY_AND_ASSIGN(PaletteTray); |
140 }; | 137 }; |
141 | 138 |
142 } // namespace ash | 139 } // namespace ash |
143 | 140 |
144 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_BUTTON_TRAY_H_ | 141 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_BUTTON_TRAY_H_ |
OLD | NEW |