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

Side by Side Diff: ui/native_theme/native_theme_android.h

Issue 1550483002: Switch to standard integer types in ui/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-ui-events
Patch Set: Created 4 years, 12 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 | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_android.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 (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_NATIVE_THEME_NATIVE_THEME_ANDROID_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_
7 7
8 #include "base/macros.h"
8 #include "ui/native_theme/native_theme_base.h" 9 #include "ui/native_theme/native_theme_base.h"
9 10
10 namespace ui { 11 namespace ui {
11 12
12 // Android implementation of native theme support. 13 // Android implementation of native theme support.
13 class NativeThemeAndroid : public NativeThemeBase { 14 class NativeThemeAndroid : public NativeThemeBase {
14 public: 15 public:
15 static NativeThemeAndroid* instance(); 16 static NativeThemeAndroid* instance();
16 17
17 // NativeThemeBase: 18 // NativeThemeBase:
18 gfx::Size GetPartSize(Part part, 19 gfx::Size GetPartSize(Part part,
19 State state, 20 State state,
20 const ExtraParams& extra) const override; 21 const ExtraParams& extra) const override;
21 SkColor GetSystemColor(ColorId color_id) const override; 22 SkColor GetSystemColor(ColorId color_id) const override;
22 23
23 protected: 24 protected:
24 // NativeThemeBase: 25 // NativeThemeBase:
25 void AdjustCheckboxRadioRectForPadding(SkRect* rect) const override; 26 void AdjustCheckboxRadioRectForPadding(SkRect* rect) const override;
26 27
27 private: 28 private:
28 NativeThemeAndroid(); 29 NativeThemeAndroid();
29 ~NativeThemeAndroid() override; 30 ~NativeThemeAndroid() override;
30 31
31 DISALLOW_COPY_AND_ASSIGN(NativeThemeAndroid); 32 DISALLOW_COPY_AND_ASSIGN(NativeThemeAndroid);
32 }; 33 };
33 34
34 } // namespace ui 35 } // namespace ui
35 36
36 #endif // UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_ 37 #endif // UI_NATIVE_THEME_NATIVE_THEME_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698