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

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

Issue 1875003002: Using ui::test::EventGenerator Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Track window offset correctly - expect regressions on mac Created 4 years, 8 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 | « ui/views/style/platform_style.h ('k') | ui/views/style/platform_style_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 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 "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ui/base/material_design/material_design_controller.h" 8 #include "ui/base/material_design/material_design_controller.h"
9 #include "ui/base/resource/resource_bundle.h" 9 #include "ui/base/resource/resource_bundle.h"
10 #include "ui/gfx/shadow_value.h" 10 #include "ui/gfx/shadow_value.h"
(...skipping 27 matching lines...) Expand all
38 const bool PlatformStyle::kDefaultLabelButtonHasBoldFont = true; 38 const bool PlatformStyle::kDefaultLabelButtonHasBoldFont = true;
39 39
40 // static 40 // static
41 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled, 41 gfx::ImageSkia PlatformStyle::CreateComboboxArrow(bool is_enabled,
42 Combobox::Style style) { 42 Combobox::Style style) {
43 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 43 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
44 return *rb.GetImageSkiaNamed(IDR_MENU_DROPARROW); 44 return *rb.GetImageSkiaNamed(IDR_MENU_DROPARROW);
45 } 45 }
46 46
47 // static 47 // static
48 const bool PlatformStyle::kTextfieldDragVerticallyDragsToEnd = false;
49
50 // static
48 scoped_ptr<FocusableBorder> PlatformStyle::CreateComboboxBorder() { 51 scoped_ptr<FocusableBorder> PlatformStyle::CreateComboboxBorder() {
49 return make_scoped_ptr(new FocusableBorder()); 52 return make_scoped_ptr(new FocusableBorder());
50 } 53 }
51 54
52 // static 55 // static
53 scoped_ptr<Background> PlatformStyle::CreateComboboxBackground() { 56 scoped_ptr<Background> PlatformStyle::CreateComboboxBackground() {
54 return nullptr; 57 return nullptr;
55 } 58 }
56 59
57 // static 60 // static
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 106
104 #if !defined(DESKTOP_LINUX) 107 #if !defined(DESKTOP_LINUX)
105 // static 108 // static
106 scoped_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder( 109 scoped_ptr<Border> PlatformStyle::CreateThemedLabelButtonBorder(
107 LabelButton* button) { 110 LabelButton* button) {
108 return button->CreateDefaultBorder(); 111 return button->CreateDefaultBorder();
109 } 112 }
110 #endif 113 #endif
111 114
112 } // namespace views 115 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/style/platform_style.h ('k') | ui/views/style/platform_style_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698