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

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

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