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

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h

Issue 1431303002: Make windows caption buttons look natural on windows 10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h b/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h
index e4e9c393cdc8dd32c277457f2099262f4be93d01..6f05cd67d5b36ef2064a3a8ef8db8c65d2ee3aef 100644
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h
@@ -15,7 +15,7 @@ class NewAvatarButton;
class OpaqueBrowserFrameViewLayoutDelegate;
namespace views {
-class ImageButton;
+class CustomButton;
class Label;
}
@@ -144,7 +144,7 @@ class OpaqueBrowserFrameViewLayout : public views::LayoutManager {
// Adds a window caption button to either the leading or trailing side.
void SetBoundsForButton(views::View* host,
- views::ImageButton* button,
+ views::CustomButton* button,
ButtonAlignment align,
int caption_y);
@@ -187,10 +187,10 @@ class OpaqueBrowserFrameViewLayout : public views::LayoutManager {
int window_caption_spacing_;
// Window controls.
- views::ImageButton* minimize_button_;
- views::ImageButton* maximize_button_;
- views::ImageButton* restore_button_;
- views::ImageButton* close_button_;
+ views::CustomButton* minimize_button_;
+ views::CustomButton* maximize_button_;
+ views::CustomButton* restore_button_;
+ views::CustomButton* close_button_;
views::View* window_icon_;
views::Label* window_title_;

Powered by Google App Engine
This is Rietveld 408576698