| 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_MESSAGE_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "third_party/skia/include/core/SkBitmap.h" | 12 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
| 14 #include "ui/gfx/geometry/insets.h" | 14 #include "ui/gfx/geometry/insets.h" |
| 15 #include "ui/gfx/image/image.h" | 15 #include "ui/gfx/image/image.h" |
| 16 #include "ui/gfx/image/image_skia.h" | 16 #include "ui/gfx/image/image_skia.h" |
| 17 #include "ui/message_center/message_center_export.h" | 17 #include "ui/message_center/message_center_export.h" |
| 18 #include "ui/message_center/notification.h" | 18 #include "ui/message_center/notification.h" |
| 19 #include "ui/message_center/notification_delegate.h" |
| 19 #include "ui/message_center/views/slide_out_controller.h" | 20 #include "ui/message_center/views/slide_out_controller.h" |
| 20 #include "ui/views/view.h" | 21 #include "ui/views/view.h" |
| 21 | 22 |
| 22 namespace views { | 23 namespace views { |
| 23 class Painter; | 24 class Painter; |
| 24 class ScrollView; | 25 class ScrollView; |
| 25 } | 26 } |
| 26 | 27 |
| 27 namespace message_center { | 28 namespace message_center { |
| 28 | 29 |
| 30 class Notification; |
| 29 class MessageCenterController; | 31 class MessageCenterController; |
| 30 | 32 |
| 31 // Individual notifications constants. | 33 // Individual notifications constants. |
| 32 const int kPaddingBetweenItems = 10; | 34 const int kPaddingBetweenItems = 10; |
| 33 const int kPaddingHorizontal = 18; | 35 const int kPaddingHorizontal = 18; |
| 34 const int kWebNotificationButtonWidth = 32; | 36 const int kWebNotificationButtonWidth = 32; |
| 35 const int kWebNotificationIconSize = 40; | 37 const int kWebNotificationIconSize = 40; |
| 36 | 38 |
| 37 // An base class for a notification entry. Contains background and other | 39 // An base class for a notification entry. Contains background and other |
| 38 // elements shared by derived notification views. | 40 // elements shared by derived notification views. |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // True if |this| is embedded in another view. Equivalent to |!top_level| in | 120 // True if |this| is embedded in another view. Equivalent to |!top_level| in |
| 119 // MessageViewFactory parlance. | 121 // MessageViewFactory parlance. |
| 120 bool is_nested_ = false; | 122 bool is_nested_ = false; |
| 121 | 123 |
| 122 DISALLOW_COPY_AND_ASSIGN(MessageView); | 124 DISALLOW_COPY_AND_ASSIGN(MessageView); |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 } // namespace message_center | 127 } // namespace message_center |
| 126 | 128 |
| 127 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ | 129 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ |
| OLD | NEW |