Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Side by Side Diff: ui/message_center/views/message_view.h

Issue 2897903002: [Notifications] Fix swipe to close for ARC notifications. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/message_center/views/custom_notification_view_unittest.cc ('k') | ui/message_center/views/message_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698