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

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

Issue 2668583005: Not Remove Non-Closable Arc Popup When Close Button is Pressed (Closed)
Patch Set: Created 3 years, 10 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Returns the insets for the shadow it will have for rich notification. 48 // Returns the insets for the shadow it will have for rich notification.
49 static gfx::Insets GetShadowInsets(); 49 static gfx::Insets GetShadowInsets();
50 50
51 // Creates a shadow around the notification. 51 // Creates a shadow around the notification.
52 void CreateShadowBorder(); 52 void CreateShadowBorder();
53 53
54 virtual bool IsCloseButtonFocused() const = 0; 54 virtual bool IsCloseButtonFocused() const = 0;
55 virtual void RequestFocusOnCloseButton() = 0; 55 virtual void RequestFocusOnCloseButton() = 0;
56 virtual bool IsPinned() const = 0; 56 virtual bool IsPinned() const = 0;
57 57
58 void OnCloseButtonPressed();
59
58 // Overridden from views::View: 60 // Overridden from views::View:
59 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; 61 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
60 bool OnMousePressed(const ui::MouseEvent& event) override; 62 bool OnMousePressed(const ui::MouseEvent& event) override;
61 bool OnKeyPressed(const ui::KeyEvent& event) override; 63 bool OnKeyPressed(const ui::KeyEvent& event) override;
62 bool OnKeyReleased(const ui::KeyEvent& event) override; 64 bool OnKeyReleased(const ui::KeyEvent& event) override;
63 void OnPaint(gfx::Canvas* canvas) override; 65 void OnPaint(gfx::Canvas* canvas) override;
64 void OnFocus() override; 66 void OnFocus() override;
65 void OnBlur() override; 67 void OnBlur() override;
66 void Layout() override; 68 void Layout() override;
67 69
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 base::string16 display_source_; 110 base::string16 display_source_;
109 111
110 std::unique_ptr<views::Painter> focus_painter_; 112 std::unique_ptr<views::Painter> focus_painter_;
111 113
112 DISALLOW_COPY_AND_ASSIGN(MessageView); 114 DISALLOW_COPY_AND_ASSIGN(MessageView);
113 }; 115 };
114 116
115 } // namespace message_center 117 } // namespace message_center
116 118
117 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ 119 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698