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

Unified Diff: ui/views/style/mac/dialog_button_border_mac.h

Issue 2358913006: views: remove PlatformStyle::CreateLabelButtonBorder (Closed)
Patch Set: remove DialogButtonBorderMac too Created 4 years, 3 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
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/style/mac/dialog_button_border_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/mac/dialog_button_border_mac.h
diff --git a/ui/views/style/mac/dialog_button_border_mac.h b/ui/views/style/mac/dialog_button_border_mac.h
deleted file mode 100644
index b10b09a9b7ee76a5a8db1186e46c4aa4ad0638ff..0000000000000000000000000000000000000000
--- a/ui/views/style/mac/dialog_button_border_mac.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2015 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_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
-#define UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
-
-#include "base/macros.h"
-#include "ui/views/controls/button/label_button_border.h"
-#include "ui/views/views_export.h"
-
-namespace views {
-
-class LabelButton;
-
-// Skia port of the default button style used for dialogs on Chrome Mac.
-// Originally provided by ConstrainedWindowButton, which used Quartz-backed
-// Cocoa drawing routines.
-class VIEWS_EXPORT DialogButtonBorderMac : public LabelButtonBorder {
- public:
- DialogButtonBorderMac();
- ~DialogButtonBorderMac() override;
-
- // Whether the given |button| should get a highlighted background.
- static bool ShouldRenderDefault(const LabelButton& button);
-
- // views::Border:
- void Paint(const View& view, gfx::Canvas* canvas) override;
- gfx::Size GetMinimumSize() const override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(DialogButtonBorderMac);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_STYLE_MAC_DIALOG_BUTTON_BORDER_MAC_H_
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/style/mac/dialog_button_border_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698