| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_MESSAGE_CENTER_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "ui/gfx/animation/animation_delegate.h" | 9 #include "ui/gfx/animation/animation_delegate.h" |
| 10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void SetSettingsVisible(bool visible); | 61 void SetSettingsVisible(bool visible); |
| 62 void OnSettingsChanged(); | 62 void OnSettingsChanged(); |
| 63 bool settings_visible() const { return settings_visible_; } | 63 bool settings_visible() const { return settings_visible_; } |
| 64 MessageCenterTray* tray() { return tray_; } | 64 MessageCenterTray* tray() { return tray_; } |
| 65 | 65 |
| 66 void SetIsClosing(bool is_closing); | 66 void SetIsClosing(bool is_closing); |
| 67 | 67 |
| 68 protected: | 68 protected: |
| 69 // Overridden from views::View: | 69 // Overridden from views::View: |
| 70 virtual void Layout() OVERRIDE; | 70 virtual void Layout() OVERRIDE; |
| 71 virtual gfx::Size GetPreferredSize() OVERRIDE; | 71 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 72 virtual int GetHeightForWidth(int width) OVERRIDE; | 72 virtual int GetHeightForWidth(int width) const OVERRIDE; |
| 73 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; | 73 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; |
| 74 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 74 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
| 75 | 75 |
| 76 // Overridden from MessageCenterObserver: | 76 // Overridden from MessageCenterObserver: |
| 77 virtual void OnNotificationAdded(const std::string& id) OVERRIDE; | 77 virtual void OnNotificationAdded(const std::string& id) OVERRIDE; |
| 78 virtual void OnNotificationRemoved(const std::string& id, | 78 virtual void OnNotificationRemoved(const std::string& id, |
| 79 bool by_user) OVERRIDE; | 79 bool by_user) OVERRIDE; |
| 80 virtual void OnNotificationUpdated(const std::string& id) OVERRIDE; | 80 virtual void OnNotificationUpdated(const std::string& id) OVERRIDE; |
| 81 | 81 |
| 82 // Overridden from MessageCenterController: | 82 // Overridden from MessageCenterController: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 bool is_closing_; | 137 bool is_closing_; |
| 138 | 138 |
| 139 scoped_ptr<MessageViewContextMenuController> context_menu_controller_; | 139 scoped_ptr<MessageViewContextMenuController> context_menu_controller_; |
| 140 | 140 |
| 141 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); | 141 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace message_center | 144 } // namespace message_center |
| 145 | 145 |
| 146 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ | 146 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
| OLD | NEW |