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

Side by Side Diff: sky/engine/testing/platform/webthemeengine_impl.cc

Issue 689283003: Remove scroll corners and resizers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/public/web/WebSettings.h ('k') | sky/engine/web/WebSettingsImpl.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "sky/engine/testing/platform/webthemeengine_impl.h" 5 #include "sky/engine/testing/platform/webthemeengine_impl.h"
6 6
7 #include "skia/ext/platform_canvas.h" 7 #include "skia/ext/platform_canvas.h"
8 #include "sky/engine/public/platform/WebRect.h" 8 #include "sky/engine/public/platform/WebRect.h"
9 #include "sky/engine/public/platform/WebSize.h" 9 #include "sky/engine/public/platform/WebSize.h"
10 #include "ui/native_theme/native_theme.h" 10 #include "ui/native_theme/native_theme.h"
(...skipping 17 matching lines...) Expand all
28 case WebThemeEngine::PartScrollbarUpArrow: 28 case WebThemeEngine::PartScrollbarUpArrow:
29 return ui::NativeTheme::kScrollbarUpArrow; 29 return ui::NativeTheme::kScrollbarUpArrow;
30 case WebThemeEngine::PartScrollbarHorizontalThumb: 30 case WebThemeEngine::PartScrollbarHorizontalThumb:
31 return ui::NativeTheme::kScrollbarHorizontalThumb; 31 return ui::NativeTheme::kScrollbarHorizontalThumb;
32 case WebThemeEngine::PartScrollbarVerticalThumb: 32 case WebThemeEngine::PartScrollbarVerticalThumb:
33 return ui::NativeTheme::kScrollbarVerticalThumb; 33 return ui::NativeTheme::kScrollbarVerticalThumb;
34 case WebThemeEngine::PartScrollbarHorizontalTrack: 34 case WebThemeEngine::PartScrollbarHorizontalTrack:
35 return ui::NativeTheme::kScrollbarHorizontalTrack; 35 return ui::NativeTheme::kScrollbarHorizontalTrack;
36 case WebThemeEngine::PartScrollbarVerticalTrack: 36 case WebThemeEngine::PartScrollbarVerticalTrack:
37 return ui::NativeTheme::kScrollbarVerticalTrack; 37 return ui::NativeTheme::kScrollbarVerticalTrack;
38 case WebThemeEngine::PartScrollbarCorner:
39 return ui::NativeTheme::kScrollbarCorner;
40 case WebThemeEngine::PartCheckbox: 38 case WebThemeEngine::PartCheckbox:
41 return ui::NativeTheme::kCheckbox; 39 return ui::NativeTheme::kCheckbox;
42 case WebThemeEngine::PartRadio: 40 case WebThemeEngine::PartRadio:
43 return ui::NativeTheme::kRadio; 41 return ui::NativeTheme::kRadio;
44 case WebThemeEngine::PartButton: 42 case WebThemeEngine::PartButton:
45 return ui::NativeTheme::kPushButton; 43 return ui::NativeTheme::kPushButton;
46 case WebThemeEngine::PartMenuList: 44 case WebThemeEngine::PartMenuList:
47 return ui::NativeTheme::kMenuList; 45 return ui::NativeTheme::kMenuList;
48 case WebThemeEngine::PartSliderTrack: 46 case WebThemeEngine::PartSliderTrack:
49 return ui::NativeTheme::kSliderTrack; 47 return ui::NativeTheme::kSliderTrack;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 ui::NativeTheme::instance()->PaintStateTransition( 181 ui::NativeTheme::instance()->PaintStateTransition(
184 canvas, 182 canvas,
185 NativeThemePart(part), 183 NativeThemePart(part),
186 NativeThemeState(startState), 184 NativeThemeState(startState),
187 NativeThemeState(endState), 185 NativeThemeState(endState),
188 progress, 186 progress,
189 gfx::Rect(rect)); 187 gfx::Rect(rect));
190 } 188 }
191 189
192 } // namespace sky 190 } // namespace sky
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebSettings.h ('k') | sky/engine/web/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698