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

Side by Side Diff: ui/arc/notification/arc_notification_view.h

Issue 2723143002: Add unittests of ArcCustomNotificationView (Closed)
Patch Set: wip Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ 5 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_
6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ 6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/message_center/views/message_view.h" 9 #include "ui/message_center/views/message_view.h"
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 gfx::Size CalculatePreferredSize() const override; 49 gfx::Size CalculatePreferredSize() const override;
50 void Layout() override; 50 void Layout() override;
51 bool HasFocus() const override; 51 bool HasFocus() const override;
52 void RequestFocus() override; 52 void RequestFocus() override;
53 void OnPaint(gfx::Canvas* canvas) override; 53 void OnPaint(gfx::Canvas* canvas) override;
54 bool OnKeyPressed(const ui::KeyEvent& event) override; 54 bool OnKeyPressed(const ui::KeyEvent& event) override;
55 void ChildPreferredSizeChanged(View* child) override; 55 void ChildPreferredSizeChanged(View* child) override;
56 bool HandleAccessibleAction(const ui::AXActionData& action) override; 56 bool HandleAccessibleAction(const ui::AXActionData& action) override;
57 57
58 private: 58 private:
59 friend class ArcNotificationContentViewTest;
59 friend class ArcNotificationViewTest; 60 friend class ArcNotificationViewTest;
60 61
61 // The view for the custom content. Owned by view hierarchy. 62 // The view for the custom content. Owned by view hierarchy.
62 views::View* contents_view_ = nullptr; 63 views::View* contents_view_ = nullptr;
63 std::unique_ptr<ArcNotificationContentViewDelegate> contents_view_delegate_; 64 std::unique_ptr<ArcNotificationContentViewDelegate> contents_view_delegate_;
64 65
65 std::unique_ptr<views::Painter> focus_painter_; 66 std::unique_ptr<views::Painter> focus_painter_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(ArcNotificationView); 68 DISALLOW_COPY_AND_ASSIGN(ArcNotificationView);
68 }; 69 };
69 70
70 } // namespace arc 71 } // namespace arc
71 72
72 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ 73 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_
OLDNEW
« no previous file with comments | « ui/arc/notification/arc_notification_surface_manager_impl.cc ('k') | ui/message_center/views/custom_notification_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698