| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void OnMouseEntered(const ui::MouseEvent& event) override; | 138 void OnMouseEntered(const ui::MouseEvent& event) override; |
| 139 void OnMouseExited(const ui::MouseEvent& event) override; | 139 void OnMouseExited(const ui::MouseEvent& event) override; |
| 140 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | 140 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 141 | 141 |
| 142 // Overridden from MouseWatcherListener | 142 // Overridden from MouseWatcherListener |
| 143 void MouseMovedOutOfHost() override; | 143 void MouseMovedOutOfHost() override; |
| 144 | 144 |
| 145 protected: | 145 protected: |
| 146 // Overridden from views::BubbleDialogDelegateView. | 146 // Overridden from views::BubbleDialogDelegateView. |
| 147 int GetDialogButtons() const override; | 147 int GetDialogButtons() const override; |
| 148 void SizeToContents() override; |
| 148 | 149 |
| 149 // Overridden from views::View. | 150 // Overridden from views::View. |
| 150 void ChildPreferredSizeChanged(View* child) override; | 151 void ChildPreferredSizeChanged(View* child) override; |
| 151 void ViewHierarchyChanged( | 152 void ViewHierarchyChanged( |
| 152 const ViewHierarchyChangedDetails& details) override; | 153 const ViewHierarchyChangedDetails& details) override; |
| 153 | 154 |
| 154 private: | 155 private: |
| 155 InitParams params_; | 156 InitParams params_; |
| 156 BoxLayout* layout_; | 157 BoxLayout* layout_; |
| 157 Delegate* delegate_; | 158 Delegate* delegate_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 169 | 170 |
| 170 // Used to find any mouse movements. | 171 // Used to find any mouse movements. |
| 171 std::unique_ptr<MouseWatcher> mouse_watcher_; | 172 std::unique_ptr<MouseWatcher> mouse_watcher_; |
| 172 | 173 |
| 173 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); | 174 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); |
| 174 }; | 175 }; |
| 175 | 176 |
| 176 } // namespace views | 177 } // namespace views |
| 177 | 178 |
| 178 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ | 179 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ |
| OLD | NEW |