| 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 30 matching lines...) Expand all Loading... |
| 41 bool top_level); | 41 bool top_level); |
| 42 | 42 |
| 43 virtual ~NotificationView(); | 43 virtual ~NotificationView(); |
| 44 | 44 |
| 45 // Overridden from views::View: | 45 // Overridden from views::View: |
| 46 virtual gfx::Size GetPreferredSize() OVERRIDE; | 46 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 47 virtual int GetHeightForWidth(int width) OVERRIDE; | 47 virtual int GetHeightForWidth(int width) OVERRIDE; |
| 48 virtual void Layout() OVERRIDE; | 48 virtual void Layout() OVERRIDE; |
| 49 virtual void OnFocus() OVERRIDE; | 49 virtual void OnFocus() OVERRIDE; |
| 50 virtual void ScrollRectToVisible(const gfx::Rect& rect) OVERRIDE; | 50 virtual void ScrollRectToVisible(const gfx::Rect& rect) OVERRIDE; |
| 51 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE; | 51 virtual views::View* GetEventHandlerForRect(const gfx::RectF& rect) OVERRIDE; |
| 52 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; | 52 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; |
| 53 | 53 |
| 54 // Overridden from MessageView: | 54 // Overridden from MessageView: |
| 55 virtual void ButtonPressed(views::Button* sender, | 55 virtual void ButtonPressed(views::Button* sender, |
| 56 const ui::Event& event) OVERRIDE; | 56 const ui::Event& event) OVERRIDE; |
| 57 | 57 |
| 58 // Overridden from MessageViewController: | 58 // Overridden from MessageViewController: |
| 59 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE; | 59 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE; |
| 60 virtual void RemoveNotification(const std::string& notification_id, | 60 virtual void RemoveNotification(const std::string& notification_id, |
| 61 bool by_user) OVERRIDE; | 61 bool by_user) OVERRIDE; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 88 views::View* image_view_; | 88 views::View* image_view_; |
| 89 views::ProgressBar* progress_bar_view_; | 89 views::ProgressBar* progress_bar_view_; |
| 90 std::vector<views::View*> action_buttons_; | 90 std::vector<views::View*> action_buttons_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 92 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace message_center | 95 } // namespace message_center |
| 96 | 96 |
| 97 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 97 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| OLD | NEW |