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

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: Addressed comment Created 3 years, 9 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 static gfx::Insets GetShadowInsets(); 48 static gfx::Insets GetShadowInsets();
49 49
50 // Creates a shadow around the notification. 50 // Creates a shadow around the notification.
51 void CreateShadowBorder(); 51 void CreateShadowBorder();
52 52
53 virtual bool IsCloseButtonFocused() const = 0; 53 virtual bool IsCloseButtonFocused() const = 0;
54 virtual void RequestFocusOnCloseButton() = 0; 54 virtual void RequestFocusOnCloseButton() = 0;
55 virtual bool IsPinned() const = 0; 55 virtual bool IsPinned() const = 0;
56 virtual void UpdateControlButtonsVisibility() = 0; 56 virtual void UpdateControlButtonsVisibility() = 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 base::string16 display_source_; 108 base::string16 display_source_;
107 109
108 std::unique_ptr<views::Painter> focus_painter_; 110 std::unique_ptr<views::Painter> focus_painter_;
109 111
110 DISALLOW_COPY_AND_ASSIGN(MessageView); 112 DISALLOW_COPY_AND_ASSIGN(MessageView);
111 }; 113 };
112 114
113 } // namespace message_center 115 } // namespace message_center
114 116
115 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ 117 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/custom_notification_view.cc ('k') | ui/message_center/views/message_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698