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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 OnMouseEntered(const ui::MouseEvent& event) override; | 49 void OnMouseEntered(const ui::MouseEvent& event) override; |
50 void OnMouseExited(const ui::MouseEvent& event) override; | 50 void OnMouseExited(const ui::MouseEvent& event) override; |
51 | 51 |
52 // Overridden from MessageView: | 52 // Overridden from MessageView: |
53 void UpdateWithNotification(const Notification& notification) override; | 53 void UpdateWithNotification(const Notification& notification) override; |
54 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 54 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
55 bool IsCloseButtonFocused() const override; | 55 bool IsCloseButtonFocused() const override; |
56 void RequestFocusOnCloseButton() override; | 56 void RequestFocusOnCloseButton() override; |
57 bool IsPinned() const override; | |
58 void UpdateControlButtonsVisibility() override; | 57 void UpdateControlButtonsVisibility() override; |
59 | 58 |
60 protected: | 59 protected: |
61 views::ImageButton* close_button() { return close_button_.get(); } | 60 views::ImageButton* close_button() { return close_button_.get(); } |
62 | 61 |
63 private: | 62 private: |
64 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, CreateOrUpdateTest); | 63 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, CreateOrUpdateTest); |
65 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, | 64 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, |
66 CreateOrUpdateTestSettingsButton); | 65 CreateOrUpdateTestSettingsButton); |
67 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, FormatContextMessageTest); | 66 FRIEND_TEST_ALL_PREFIXES(NotificationViewTest, FormatContextMessageTest); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 std::vector<views::View*> separators_; | 118 std::vector<views::View*> separators_; |
120 std::unique_ptr<views::ImageButton> close_button_ = nullptr; | 119 std::unique_ptr<views::ImageButton> close_button_ = nullptr; |
121 std::unique_ptr<views::ImageView> small_image_view_; | 120 std::unique_ptr<views::ImageView> small_image_view_; |
122 | 121 |
123 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 122 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
124 }; | 123 }; |
125 | 124 |
126 } // namespace message_center | 125 } // namespace message_center |
127 | 126 |
128 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 127 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
OLD | NEW |