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

Unified Diff: ui/native_theme/native_theme_base.h

Issue 1911973002: Fix scrollbar buttons at hidpi when enable-use-zoom-for-dsf is on. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test edits Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ui/native_theme/native_theme_base.h
diff --git a/ui/native_theme/native_theme_base.h b/ui/native_theme/native_theme_base.h
index 0f6e81f914e06bb6927ccbea603c918806136904..68277f0bd263194ef2368dce8dc6117557c8dbc7 100644
--- a/ui/native_theme/native_theme_base.h
+++ b/ui/native_theme/native_theme_base.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/compiler_specific.h"
+#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "skia/ext/platform_canvas.h"
#include "ui/native_theme/native_theme.h"
@@ -179,6 +180,11 @@ class NATIVE_THEME_EXPORT NativeThemeBase : public NativeTheme {
SkColor GetArrowColor(State state) const;
private:
+ FRIEND_TEST_ALL_PREFIXES(NativeThemeAuraTest, VerticalArrows);
+ FRIEND_TEST_ALL_PREFIXES(NativeThemeAuraTest, HorizontalArrows);
+
+ SkPath PathForArrow(const gfx::Rect& rect, Part direction) const;
+
void DrawVertLine(SkCanvas* canvas,
int x,
int y1,

Powered by Google App Engine
This is Rietveld 408576698