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

Side by Side Diff: ui/views/style/platform_style.cc

Issue 2050813002: MacViews: support backgrounds for selected rows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2015 The Chromium Authors. All rights reserved. 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 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 #include "ui/views/style/platform_style.h" 5 #include "ui/views/style/platform_style.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ui/base/material_design/material_design_controller.h" 9 #include "ui/base/material_design/material_design_controller.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
(...skipping 20 matching lines...) Expand all
31 #endif 31 #endif
32 32
33 } // namespace 33 } // namespace
34 34
35 #if !defined(OS_MACOSX) 35 #if !defined(OS_MACOSX)
36 36
37 const int PlatformStyle::kMinLabelButtonWidth = 70; 37 const int PlatformStyle::kMinLabelButtonWidth = 70;
38 const int PlatformStyle::kMinLabelButtonHeight = 33; 38 const int PlatformStyle::kMinLabelButtonHeight = 33;
39 const bool PlatformStyle::kDefaultLabelButtonHasBoldFont = true; 39 const bool PlatformStyle::kDefaultLabelButtonHasBoldFont = true;
40 const bool PlatformStyle::kTextfieldDragVerticallyDragsToEnd = false; 40 const bool PlatformStyle::kTextfieldDragVerticallyDragsToEnd = false;
41 const bool PlatformStyle::kTreeViewSelectsEntireRow = false;
41 42
42 // static 43 // static
43 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled, 44 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled,
44 Combobox::Style style) { 45 Combobox::Style style) {
45 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 46 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
46 return *rb.GetImageSkiaNamed(IDR_MENU_DROPARROW); 47 return *rb.GetImageSkiaNamed(IDR_MENU_DROPARROW);
47 } 48 }
48 49
49 // static 50 // static
50 std::unique_ptr<FocusableBorder> PlatformStyle::CreateComboboxBorder() { 51 std::unique_ptr<FocusableBorder> PlatformStyle::CreateComboboxBorder() {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 107
107 #if !defined(DESKTOP_LINUX) 108 #if !defined(DESKTOP_LINUX)
108 // static 109 // static
109 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( 110 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder(
110 LabelButton* button) { 111 LabelButton* button) {
111 return button->CreateDefaultBorder(); 112 return button->CreateDefaultBorder();
112 } 113 }
113 #endif 114 #endif
114 115
115 } // namespace views 116 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698