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

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

Issue 2532613002: MacViews: fix bubble direction in RTL. (Closed)
Patch Set: Use the advice in buildflag.h? Created 4 years 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 27 matching lines...) Expand all
38 const int PlatformStyle::kMinLabelButtonWidth = 70; 38 const int PlatformStyle::kMinLabelButtonWidth = 70;
39 const int PlatformStyle::kMinLabelButtonHeight = 33; 39 const int PlatformStyle::kMinLabelButtonHeight = 33;
40 const bool PlatformStyle::kDefaultLabelButtonHasBoldFont = true; 40 const bool PlatformStyle::kDefaultLabelButtonHasBoldFont = true;
41 const bool PlatformStyle::kDialogDefaultButtonCanBeCancel = true; 41 const bool PlatformStyle::kDialogDefaultButtonCanBeCancel = true;
42 const bool PlatformStyle::kTextDragVerticallyDragsToEnd = false; 42 const bool PlatformStyle::kTextDragVerticallyDragsToEnd = false;
43 const CustomButton::NotifyAction PlatformStyle::kMenuNotifyActivationAction = 43 const CustomButton::NotifyAction PlatformStyle::kMenuNotifyActivationAction =
44 CustomButton::NOTIFY_ON_RELEASE; 44 CustomButton::NOTIFY_ON_RELEASE;
45 const bool PlatformStyle::kTreeViewHasFocusRing = false; 45 const bool PlatformStyle::kTreeViewHasFocusRing = false;
46 const bool PlatformStyle::kTreeViewSelectionPaintsEntireRow = false; 46 const bool PlatformStyle::kTreeViewSelectionPaintsEntireRow = false;
47 const bool PlatformStyle::kUseRipples = true; 47 const bool PlatformStyle::kUseRipples = true;
48 const bool PlatformStyle::kMirrorBubbleArrowInRTLByDefault = true;
48 49
49 // static 50 // static
50 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled, 51 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled,
51 Combobox::Style style) { 52 Combobox::Style style) {
52 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 53 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
53 return *rb.GetImageSkiaNamed(IDR_MENU_DROPARROW); 54 return *rb.GetImageSkiaNamed(IDR_MENU_DROPARROW);
54 } 55 }
55 56
56 // static 57 // static
57 std::unique_ptr<ScrollBar> PlatformStyle::CreateScrollBar(bool is_horizontal) { 58 std::unique_ptr<ScrollBar> PlatformStyle::CreateScrollBar(bool is_horizontal) {
(...skipping 29 matching lines...) Expand all
87 88
88 #if !defined(DESKTOP_LINUX) 89 #if !defined(DESKTOP_LINUX)
89 // static 90 // static
90 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( 91 std::unique_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder(
91 LabelButton* button) { 92 LabelButton* button) {
92 return button->CreateDefaultBorder(); 93 return button->CreateDefaultBorder();
93 } 94 }
94 #endif 95 #endif
95 96
96 } // namespace views 97 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698