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

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

Issue 2834173002: ui: remove dead NativeThemeMac code (Closed)
Patch Set: remove dead includes Created 3 years, 7 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 | ui/native_theme/native_theme_mac.mm » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_MAC_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/native_theme/native_theme_base.h" 9 #include "ui/native_theme/native_theme_base.h"
10 #include "ui/native_theme/native_theme_export.h" 10 #include "ui/native_theme/native_theme_export.h"
(...skipping 28 matching lines...) Expand all
39 void PaintMenuPopupBackground( 39 void PaintMenuPopupBackground(
40 cc::PaintCanvas* canvas, 40 cc::PaintCanvas* canvas,
41 const gfx::Size& size, 41 const gfx::Size& size,
42 const MenuBackgroundExtraParams& menu_background) const override; 42 const MenuBackgroundExtraParams& menu_background) const override;
43 void PaintMenuItemBackground( 43 void PaintMenuItemBackground(
44 cc::PaintCanvas* canvas, 44 cc::PaintCanvas* canvas,
45 State state, 45 State state,
46 const gfx::Rect& rect, 46 const gfx::Rect& rect,
47 const MenuItemExtraParams& menu_item) const override; 47 const MenuItemExtraParams& menu_item) const override;
48 48
49 // Creates a shader appropriate for painting the background of a button.
50 static sk_sp<SkShader> GetButtonBackgroundShader(ButtonBackgroundType type,
51 int height);
52
53 // Creates a shader for the button border. This should be painted over with
54 // the background after insetting the rounded rect.
55 static sk_sp<SkShader> GetButtonBorderShader(ButtonBackgroundType type,
56 int height);
57
58 // Paints the styled button shape used for default controls on Mac. The basic 49 // Paints the styled button shape used for default controls on Mac. The basic
59 // style is used for dialog buttons, comboboxes, and tabbed pane tabs. 50 // style is used for dialog buttons, comboboxes, and tabbed pane tabs.
60 // Depending on the control part being drawn, the left or the right side can 51 // Depending on the control part being drawn, the left or the right side can
61 // be given rounded corners. 52 // be given rounded corners.
62 static void PaintStyledGradientButton(cc::PaintCanvas* canvas, 53 static void PaintStyledGradientButton(cc::PaintCanvas* canvas,
63 const gfx::Rect& bounds, 54 const gfx::Rect& bounds,
64 ButtonBackgroundType type, 55 ButtonBackgroundType type,
65 bool round_left, 56 bool round_left,
66 bool round_right, 57 bool round_right,
67 bool focus); 58 bool focus);
68 59
69 protected: 60 protected:
70 friend class NativeTheme; 61 friend class NativeTheme;
71 static NativeThemeMac* instance(); 62 static NativeThemeMac* instance();
72 63
73 private: 64 private:
74 NativeThemeMac(); 65 NativeThemeMac();
75 ~NativeThemeMac() override; 66 ~NativeThemeMac() override;
76 67
77 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); 68 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac);
78 }; 69 };
79 70
80 } // namespace ui 71 } // namespace ui
81 72
82 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ 73 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698