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

Side by Side Diff: ash/system/date/date_default_view.h

Issue 1837093003: NOSUBMIT: Demonstrate accelerated layer painting problem in mus/mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | ash/system/date/date_default_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ 5 #ifndef ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_
6 #define ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ 6 #define ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/system/chromeos/shutdown_policy_observer.h" 9 #include "ash/system/chromeos/shutdown_policy_observer.h"
10 #include "ash/system/user/login_status.h" 10 #include "ash/system/user/login_status.h"
(...skipping 16 matching lines...) Expand all
27 explicit DateDefaultView(ash::user::LoginStatus login); 27 explicit DateDefaultView(ash::user::LoginStatus login);
28 28
29 ~DateDefaultView() override; 29 ~DateDefaultView() override;
30 30
31 views::View* GetHelpButtonView(); 31 views::View* GetHelpButtonView();
32 const views::View* GetShutdownButtonViewForTest() const; 32 const views::View* GetShutdownButtonViewForTest() const;
33 33
34 tray::DateView* GetDateView(); 34 tray::DateView* GetDateView();
35 const tray::DateView* GetDateView() const; 35 const tray::DateView* GetDateView() const;
36 36
37 void OnPaint(gfx::Canvas* canvas) override;
38
37 // ash::ShutdownPolicyObserver: 39 // ash::ShutdownPolicyObserver:
38 void OnShutdownPolicyChanged(bool reboot_on_shutdown) override; 40 void OnShutdownPolicyChanged(bool reboot_on_shutdown) override;
39 41
40 private: 42 private:
41 // Overridden from views::ButtonListener. 43 // Overridden from views::ButtonListener.
42 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 44 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
43 45
44 TrayPopupHeaderButton* help_button_; 46 TrayPopupHeaderButton* help_button_;
45 TrayPopupHeaderButton* shutdown_button_; 47 TrayPopupHeaderButton* shutdown_button_;
46 TrayPopupHeaderButton* lock_button_; 48 TrayPopupHeaderButton* lock_button_;
47 tray::DateView* date_view_; 49 tray::DateView* date_view_;
48 50
49 base::WeakPtrFactory<DateDefaultView> weak_factory_; 51 base::WeakPtrFactory<DateDefaultView> weak_factory_;
50 52
51 DISALLOW_COPY_AND_ASSIGN(DateDefaultView); 53 DISALLOW_COPY_AND_ASSIGN(DateDefaultView);
52 }; 54 };
53 55
54 } // namespace ash 56 } // namespace ash
55 57
56 #endif // ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ 58 #endif // ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/date/date_default_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698