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

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

Issue 2935893004: Add unittest for ArcNotificationContentView (Closed)
Patch Set: . 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 gfx::Size CalculatePreferredSize() const override; 50 gfx::Size CalculatePreferredSize() const override;
51 void Layout() override; 51 void Layout() override;
52 bool HasFocus() const override; 52 bool HasFocus() const override;
53 void RequestFocus() override; 53 void RequestFocus() override;
54 void OnPaint(gfx::Canvas* canvas) override; 54 void OnPaint(gfx::Canvas* canvas) override;
55 bool OnKeyPressed(const ui::KeyEvent& event) override; 55 bool OnKeyPressed(const ui::KeyEvent& event) override;
56 void ChildPreferredSizeChanged(View* child) override; 56 void ChildPreferredSizeChanged(View* child) override;
57 bool HandleAccessibleAction(const ui::AXActionData& action) override; 57 bool HandleAccessibleAction(const ui::AXActionData& action) override;
58 58
59 private: 59 private:
60 friend class ArcNotificationContentViewTest;
60 friend class ArcNotificationViewTest; 61 friend class ArcNotificationViewTest;
61 62
62 // The view for the custom content. Owned by view hierarchy. 63 // The view for the custom content. Owned by view hierarchy.
63 views::View* contents_view_ = nullptr; 64 views::View* contents_view_ = nullptr;
64 std::unique_ptr<ArcNotificationContentViewDelegate> contents_view_delegate_; 65 std::unique_ptr<ArcNotificationContentViewDelegate> contents_view_delegate_;
65 66
66 std::unique_ptr<views::Painter> focus_painter_; 67 std::unique_ptr<views::Painter> focus_painter_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(ArcNotificationView); 69 DISALLOW_COPY_AND_ASSIGN(ArcNotificationView);
69 }; 70 };
70 71
71 } // namespace arc 72 } // namespace arc
72 73
73 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_VIEW_H_ 74 #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/arc/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698