| 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 "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 bool top_level); | 38 bool top_level); |
| 39 | 39 |
| 40 virtual ~NotificationView(); | 40 virtual ~NotificationView(); |
| 41 | 41 |
| 42 // Overridden from views::View: | 42 // Overridden from views::View: |
| 43 virtual gfx::Size GetPreferredSize() OVERRIDE; | 43 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 44 virtual int GetHeightForWidth(int width) OVERRIDE; | 44 virtual int GetHeightForWidth(int width) OVERRIDE; |
| 45 virtual void Layout() OVERRIDE; | 45 virtual void Layout() OVERRIDE; |
| 46 virtual void OnFocus() OVERRIDE; | 46 virtual void OnFocus() OVERRIDE; |
| 47 virtual void ScrollRectToVisible(const gfx::Rect& rect) OVERRIDE; | 47 virtual void ScrollRectToVisible(const gfx::Rect& rect) OVERRIDE; |
| 48 virtual views::View* GetEventHandlerForPoint( | 48 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE; |
| 49 const gfx::Point& point) OVERRIDE; | |
| 50 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; | 49 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; |
| 51 | 50 |
| 52 // Overridden from MessageView: | 51 // Overridden from MessageView: |
| 53 virtual void ButtonPressed(views::Button* sender, | 52 virtual void ButtonPressed(views::Button* sender, |
| 54 const ui::Event& event) OVERRIDE; | 53 const ui::Event& event) OVERRIDE; |
| 55 | 54 |
| 56 protected: | 55 protected: |
| 57 NotificationView(const Notification& notification, | 56 NotificationView(const Notification& notification, |
| 58 MessageCenter* message_center, | 57 MessageCenter* message_center, |
| 59 MessageCenterTray* tray, | 58 MessageCenterTray* tray, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 78 views::View* image_view_; | 77 views::View* image_view_; |
| 79 views::ProgressBar* progress_bar_view_; | 78 views::ProgressBar* progress_bar_view_; |
| 80 std::vector<views::View*> action_buttons_; | 79 std::vector<views::View*> action_buttons_; |
| 81 | 80 |
| 82 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 81 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 } // namespace message_center | 84 } // namespace message_center |
| 86 | 85 |
| 87 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 86 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| OLD | NEW |