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_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 const Notification& notification); | 39 const Notification& notification); |
40 ~NotificationView() override; | 40 ~NotificationView() override; |
41 | 41 |
42 // Overridden from views::View: | 42 // Overridden from views::View: |
43 gfx::Size GetPreferredSize() const override; | 43 gfx::Size GetPreferredSize() const override; |
44 int GetHeightForWidth(int width) const override; | 44 int GetHeightForWidth(int width) const override; |
45 void Layout() override; | 45 void Layout() override; |
46 void OnFocus() override; | 46 void OnFocus() override; |
47 void ScrollRectToVisible(const gfx::Rect& rect) override; | 47 void ScrollRectToVisible(const gfx::Rect& rect) override; |
48 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; | 48 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; |
| 49 void OnMouseMoved(const ui::MouseEvent& event) override; |
49 void OnMouseEntered(const ui::MouseEvent& event) override; | 50 void OnMouseEntered(const ui::MouseEvent& event) override; |
50 void OnMouseExited(const ui::MouseEvent& event) override; | 51 void OnMouseExited(const ui::MouseEvent& event) override; |
51 | 52 |
52 // Overridden from MessageView: | 53 // Overridden from MessageView: |
53 void UpdateWithNotification(const Notification& notification) override; | 54 void UpdateWithNotification(const Notification& notification) override; |
54 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 55 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
55 bool IsCloseButtonFocused() const override; | 56 bool IsCloseButtonFocused() const override; |
56 void RequestFocusOnCloseButton() override; | 57 void RequestFocusOnCloseButton() override; |
57 void UpdateControlButtonsVisibility() override; | 58 void UpdateControlButtonsVisibility() override; |
58 | 59 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 std::vector<views::View*> separators_; | 119 std::vector<views::View*> separators_; |
119 std::unique_ptr<views::ImageButton> close_button_ = nullptr; | 120 std::unique_ptr<views::ImageButton> close_button_ = nullptr; |
120 std::unique_ptr<views::ImageView> small_image_view_; | 121 std::unique_ptr<views::ImageView> small_image_view_; |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 123 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
123 }; | 124 }; |
124 | 125 |
125 } // namespace message_center | 126 } // namespace message_center |
126 | 127 |
127 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 128 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
OLD | NEW |