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

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

Issue 2591863003: Use nine-patch resource for drawing Aura overlay scrollbar thumb. (Closed)
Patch Set: Address aelias@'s review Created 3 years, 9 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 (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_AURA_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_AURA_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_AURA_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_AURA_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 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 Part part, 46 Part part,
47 State state, 47 State state,
48 const gfx::Rect& rect, 48 const gfx::Rect& rect,
49 ScrollbarOverlayColorTheme theme) const override; 49 ScrollbarOverlayColorTheme theme) const override;
50 void PaintScrollbarCorner(cc::PaintCanvas* canvas, 50 void PaintScrollbarCorner(cc::PaintCanvas* canvas,
51 State state, 51 State state,
52 const gfx::Rect& rect) const override; 52 const gfx::Rect& rect) const override;
53 gfx::Size GetPartSize(Part part, 53 gfx::Size GetPartSize(Part part,
54 State state, 54 State state,
55 const ExtraParams& extra) const override; 55 const ExtraParams& extra) const override;
56 bool SupportsNinePatch(Part part) const override;
57 gfx::Size GetNinePatchCanvasSize(Part part) const override;
58 gfx::Rect GetNinePatchAperture(Part part) const override;
56 59
57 private: 60 private:
58 bool use_overlay_scrollbars_; 61 bool use_overlay_scrollbars_;
59 62
60 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura); 63 DISALLOW_COPY_AND_ASSIGN(NativeThemeAura);
61 }; 64 };
62 65
63 } // namespace ui 66 } // namespace ui
64 67
65 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURA_H_ 68 #endif // UI_NATIVE_THEME_NATIVE_THEME_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698