OLD | NEW |
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 CHROME_BROWSER_UI_VIEWS_ELEVATION_ICON_SETTER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ELEVATION_ICON_SETTER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_ELEVATION_ICON_SETTER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ELEVATION_ICON_SETTER_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
11 | 12 |
12 class SkBitmap; | 13 class SkBitmap; |
13 | 14 |
14 namespace views { | 15 namespace views { |
15 class LabelButton; | 16 class LabelButton; |
16 } | 17 } |
17 | 18 |
18 // On Windows, badges a button with a "UAC shield" icon to indicate that | 19 // On Windows, badges a button with a "UAC shield" icon to indicate that |
(...skipping 12 matching lines...) Expand all Loading... |
31 private: | 32 private: |
32 void SetButtonIcon(const base::Closure& callback, scoped_ptr<SkBitmap> icon); | 33 void SetButtonIcon(const base::Closure& callback, scoped_ptr<SkBitmap> icon); |
33 | 34 |
34 views::LabelButton* button_; | 35 views::LabelButton* button_; |
35 base::WeakPtrFactory<ElevationIconSetter> weak_factory_; | 36 base::WeakPtrFactory<ElevationIconSetter> weak_factory_; |
36 | 37 |
37 DISALLOW_COPY_AND_ASSIGN(ElevationIconSetter); | 38 DISALLOW_COPY_AND_ASSIGN(ElevationIconSetter); |
38 }; | 39 }; |
39 | 40 |
40 #endif // CHROME_BROWSER_UI_VIEWS_ELEVATION_ICON_SETTER_H_ | 41 #endif // CHROME_BROWSER_UI_VIEWS_ELEVATION_ICON_SETTER_H_ |
OLD | NEW |