| 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" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 bool OnKeyPressed(const ui::KeyEvent& event) override; | 66 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 67 bool OnKeyReleased(const ui::KeyEvent& event) override; | 67 bool OnKeyReleased(const ui::KeyEvent& event) override; |
| 68 void OnPaint(gfx::Canvas* canvas) override; | 68 void OnPaint(gfx::Canvas* canvas) override; |
| 69 void OnFocus() override; | 69 void OnFocus() override; |
| 70 void OnBlur() override; | 70 void OnBlur() override; |
| 71 void Layout() override; | 71 void Layout() override; |
| 72 void OnGestureEvent(ui::GestureEvent* event) override; | 72 void OnGestureEvent(ui::GestureEvent* event) override; |
| 73 | 73 |
| 74 // views::SlideOutController::Delegate | 74 // views::SlideOutController::Delegate |
| 75 ui::Layer* GetSlideOutLayer() override; | 75 ui::Layer* GetSlideOutLayer() override; |
| 76 void OnSlideChanged() override; |
| 76 void OnSlideOut() override; | 77 void OnSlideOut() override; |
| 77 | 78 |
| 78 void set_scroller(views::ScrollView* scroller) { scroller_ = scroller; } | 79 void set_scroller(views::ScrollView* scroller) { scroller_ = scroller; } |
| 79 std::string notification_id() { return notification_id_; } | 80 std::string notification_id() { return notification_id_; } |
| 80 NotifierId notifier_id() { return notifier_id_; } | 81 NotifierId notifier_id() { return notifier_id_; } |
| 81 const base::string16& display_source() const { return display_source_; } | 82 const base::string16& display_source() const { return display_source_; } |
| 82 | 83 |
| 83 void set_controller(MessageCenterController* controller) { | 84 void set_controller(MessageCenterController* controller) { |
| 84 controller_ = controller; | 85 controller_ = controller; |
| 85 } | 86 } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 116 // True if |this| is embedded in another view. Equivalent to |!top_level| in | 117 // True if |this| is embedded in another view. Equivalent to |!top_level| in |
| 117 // MessageViewFactory parlance. | 118 // MessageViewFactory parlance. |
| 118 bool is_nested_ = false; | 119 bool is_nested_ = false; |
| 119 | 120 |
| 120 DISALLOW_COPY_AND_ASSIGN(MessageView); | 121 DISALLOW_COPY_AND_ASSIGN(MessageView); |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace message_center | 124 } // namespace message_center |
| 124 | 125 |
| 125 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ | 126 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ |
| OLD | NEW |