Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / views / style / platform_style.h
blobe56fe0e30ba41263550095c37f381c195b0cf850
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_VIEWS_STYLE_PLATFORM_STYLE_H_
6 #define UI_VIEWS_STYLE_PLATFORM_STYLE_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/controls/button/button.h"
12 namespace views {
14 class Border;
15 class LabelButton;
16 class LabelButtonBorder;
18 // Cross-platform API for providing platform-specific styling for toolkit-views.
19 class PlatformStyle {
20 public:
21 // Creates the default label button border for the given |style|. Used when a
22 // custom default border is not provided for a particular LabelButton class.
23 static scoped_ptr<LabelButtonBorder> CreateLabelButtonBorder(
24 Button::ButtonStyle style);
26 // Applies the current system theme to the default border created by |button|.
27 static scoped_ptr<Border> CreateThemedLabelButtonBorder(LabelButton* button);
29 private:
30 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
33 } // namespace views
35 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_