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 UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ | 5 #ifndef UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ |
6 #define UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ | 6 #define UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 views::NonClientFrameView* CreateNonClientFrameView( | 124 views::NonClientFrameView* CreateNonClientFrameView( |
125 views::Widget* widget) override; | 125 views::Widget* widget) override; |
126 bool WidgetHasHitTestMask() const override; | 126 bool WidgetHasHitTestMask() const override; |
127 void GetWidgetHitTestMask(gfx::Path* mask) const override; | 127 void GetWidgetHitTestMask(gfx::Path* mask) const override; |
128 base::string16 GetAccessibleWindowTitle() const override; | 128 base::string16 GetAccessibleWindowTitle() const override; |
129 | 129 |
130 // Overridden from views::BubbleDialogDelegateView. | 130 // Overridden from views::BubbleDialogDelegateView. |
131 void OnBeforeBubbleWidgetInit(Widget::InitParams* params, | 131 void OnBeforeBubbleWidgetInit(Widget::InitParams* params, |
132 Widget* bubble_widget) const override; | 132 Widget* bubble_widget) const override; |
133 | 133 |
134 // Overridden from views::DialogDelegateView. | |
Peter Kasting
2017/03/30 00:35:36
Nit: Combine this and below list into the one abov
| |
135 gfx::Size GetUnsnappedPreferredSize() const override; | |
136 | |
134 // Overridden from views::View. | 137 // Overridden from views::View. |
135 gfx::Size GetPreferredSize() const override; | |
136 gfx::Size GetMaximumSize() const override; | 138 gfx::Size GetMaximumSize() const override; |
137 int GetHeightForWidth(int width) const override; | 139 int GetHeightForWidth(int width) const override; |
138 void OnMouseEntered(const ui::MouseEvent& event) override; | 140 void OnMouseEntered(const ui::MouseEvent& event) override; |
139 void OnMouseExited(const ui::MouseEvent& event) override; | 141 void OnMouseExited(const ui::MouseEvent& event) override; |
140 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | 142 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
141 | 143 |
142 // Overridden from MouseWatcherListener | 144 // Overridden from MouseWatcherListener |
143 void MouseMovedOutOfHost() override; | 145 void MouseMovedOutOfHost() override; |
144 | 146 |
145 protected: | 147 protected: |
(...skipping 27 matching lines...) Expand all Loading... | |
173 | 175 |
174 // Used to find any mouse movements. | 176 // Used to find any mouse movements. |
175 std::unique_ptr<MouseWatcher> mouse_watcher_; | 177 std::unique_ptr<MouseWatcher> mouse_watcher_; |
176 | 178 |
177 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); | 179 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); |
178 }; | 180 }; |
179 | 181 |
180 } // namespace views | 182 } // namespace views |
181 | 183 |
182 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ | 184 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ |
OLD | NEW |