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

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

Issue 2318463002: arc: Make ChromeVox read an ARC custom notification (Closed)
Patch Set: rebase Created 4 years, 3 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Returns the insets for the shadow it will have for rich notification. 55 // Returns the insets for the shadow it will have for rich notification.
56 static gfx::Insets GetShadowInsets(); 56 static gfx::Insets GetShadowInsets();
57 57
58 // Creates a shadow around the notification. 58 // Creates a shadow around the notification.
59 void CreateShadowBorder(); 59 void CreateShadowBorder();
60 60
61 bool IsCloseButtonFocused(); 61 bool IsCloseButtonFocused();
62 void RequestFocusOnCloseButton(); 62 void RequestFocusOnCloseButton();
63 bool IsPinned(); 63 bool IsPinned();
64 64
65 void set_accessible_name(const base::string16& accessible_name) {
66 accessible_name_ = accessible_name;
67 }
68
69 // Overridden from views::View: 65 // Overridden from views::View:
70 void GetAccessibleState(ui::AXViewState* state) override; 66 void GetAccessibleState(ui::AXViewState* state) override;
71 bool OnMousePressed(const ui::MouseEvent& event) override; 67 bool OnMousePressed(const ui::MouseEvent& event) override;
72 bool OnKeyPressed(const ui::KeyEvent& event) override; 68 bool OnKeyPressed(const ui::KeyEvent& event) override;
73 bool OnKeyReleased(const ui::KeyEvent& event) override; 69 bool OnKeyReleased(const ui::KeyEvent& event) override;
74 void OnPaint(gfx::Canvas* canvas) override; 70 void OnPaint(gfx::Canvas* canvas) override;
75 void OnFocus() override; 71 void OnFocus() override;
76 void OnBlur() override; 72 void OnBlur() override;
77 void Layout() override; 73 void Layout() override;
78 74
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 base::string16 display_source_; 120 base::string16 display_source_;
125 121
126 std::unique_ptr<views::Painter> focus_painter_; 122 std::unique_ptr<views::Painter> focus_painter_;
127 123
128 DISALLOW_COPY_AND_ASSIGN(MessageView); 124 DISALLOW_COPY_AND_ASSIGN(MessageView);
129 }; 125 };
130 126
131 } // namespace message_center 127 } // namespace message_center
132 128
133 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ 129 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698