| 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 bool IsPinned() const override; | 58 bool IsPinned() const override; |
| 58 void UpdateControlButtonsVisibility() override; | 59 void UpdateControlButtonsVisibility() override; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 std::vector<views::View*> separators_; | 120 std::vector<views::View*> separators_; |
| 120 std::unique_ptr<views::ImageButton> close_button_ = nullptr; | 121 std::unique_ptr<views::ImageButton> close_button_ = nullptr; |
| 121 std::unique_ptr<views::ImageView> small_image_view_; | 122 std::unique_ptr<views::ImageView> small_image_view_; |
| 122 | 123 |
| 123 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 124 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace message_center | 127 } // namespace message_center |
| 127 | 128 |
| 128 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 129 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| OLD | NEW |