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

Unified Diff: ui/native_theme/native_theme_aura_overlay.h

Issue 2480063002: Split NativeThemeAura into Overlay and NonOverlay versions. (Closed)
Patch Set: Fix Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/native_theme/native_theme_aura.cc ('k') | ui/native_theme/native_theme_aura_overlay.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_aura_overlay.h
diff --git a/ui/native_theme/native_theme_aura.h b/ui/native_theme/native_theme_aura_overlay.h
similarity index 52%
copy from ui/native_theme/native_theme_aura.h
copy to ui/native_theme/native_theme_aura_overlay.h
index e2fbfc4e741f42ac764795f448c36849b3579edd..c1e3def0994aae3bb399c5473b56c8f75074c4ee 100644
--- a/ui/native_theme/native_theme_aura.h
+++ b/ui/native_theme/native_theme_aura_overlay.h
@@ -1,39 +1,26 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_NATIVE_THEME_NATIVE_THEME_AURA_H_
-#define UI_NATIVE_THEME_NATIVE_THEME_AURA_H_
+#ifndef UI_NATIVE_THEME_NATIVE_THEME_AURA_OVERLAY_H_
+#define UI_NATIVE_THEME_NATIVE_THEME_AURA_OVERLAY_H_
#include "base/macros.h"
+#include "ui/native_theme/native_theme_aura.h"
#include "ui/native_theme/native_theme_base.h"
namespace ui {
// Aura implementation of native theme support.
-class NATIVE_THEME_EXPORT NativeThemeAura : public NativeThemeBase {
+class NATIVE_THEME_EXPORT NativeThemeAuraOverlay : public NativeThemeAura {
public:
- static NativeThemeAura* instance();
+ static NativeThemeAuraOverlay* instance();
protected:
- NativeThemeAura();
- ~NativeThemeAura() override;
-
- // Overridden from NativeThemeBase:
- SkColor GetSystemColor(ColorId color_id) const override;
- void PaintMenuPopupBackground(
- SkCanvas* canvas,
- const gfx::Size& size,
- const MenuBackgroundExtraParams& menu_background) const override;
- void PaintMenuItemBackground(
- SkCanvas* canvas,
- State state,
- const gfx::Rect& rect,
- const MenuItemExtraParams& menu_item) const override;
- void PaintArrowButton(SkCanvas* gc,
- const gfx::Rect& rect,
- Part direction,
- State state) const override;
+ NativeThemeAuraOverlay();
+ ~NativeThemeAuraOverlay() override;
+
+ // Overridden from NativeThemeAura:
void PaintScrollbarTrack(SkCanvas* canvas,
Part part,
State state,
@@ -52,9 +39,10 @@ class NATIVE_THEME_EXPORT NativeThemeAura : public NativeThemeBase {
const ExtraParams& extra) const override;
private:
- DISALLOW_COPY_AND_ASSIGN(NativeThemeAura);
+ DISALLOW_COPY_AND_ASSIGN(NativeThemeAuraOverlay);
};
} // namespace ui
-#endif // UI_NATIVE_THEME_NATIVE_THEME_AURA_H_
+#endif // UI_NATIVE_THEME_NATIVE_THEME_AURA_OVERLAY_H_
+
« no previous file with comments | « ui/native_theme/native_theme_aura.cc ('k') | ui/native_theme/native_theme_aura_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698