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

Side by Side Diff: ash/frame/default_header_painter.h

Issue 916293002: Remove ash default frame highlighting for custom colored frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comment Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | ash/frame/default_header_painter.cc » ('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 #ifndef ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ 5 #ifndef ASH_FRAME_DEFAULT_HEADER_PAINTER_H_
6 #define ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ 6 #define ASH_FRAME_DEFAULT_HEADER_PAINTER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/frame/header_painter.h" 9 #include "ash/frame/header_painter.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void UpdateSizeButtonImages(); 78 void UpdateSizeButtonImages();
79 79
80 // Returns the header bounds in the coordinates of |view_|. The header is 80 // Returns the header bounds in the coordinates of |view_|. The header is
81 // assumed to be positioned at the top left corner of |view_| and to have the 81 // assumed to be positioned at the top left corner of |view_| and to have the
82 // same width as |view_|. 82 // same width as |view_|.
83 gfx::Rect GetLocalBounds() const; 83 gfx::Rect GetLocalBounds() const;
84 84
85 // Returns the bounds for the title. 85 // Returns the bounds for the title.
86 gfx::Rect GetTitleBounds() const; 86 gfx::Rect GetTitleBounds() const;
87 87
88 // Returns whether the frame uses custom frame coloring.
89 bool UsesCustomFrameColors() const;
90
88 // Returns the frame color to use when |frame_| is inactive. 91 // Returns the frame color to use when |frame_| is inactive.
89 SkColor GetInactiveFrameColor() const; 92 SkColor GetInactiveFrameColor() const;
90 93
91 views::Widget* frame_; 94 views::Widget* frame_;
92 views::View* view_; 95 views::View* view_;
93 views::View* left_header_view_; // May be NULL. 96 views::View* left_header_view_; // May be NULL.
94 int left_view_x_inset_; 97 int left_view_x_inset_;
95 SkColor active_frame_color_; 98 SkColor active_frame_color_;
96 SkColor inactive_frame_color_; 99 SkColor inactive_frame_color_;
97 FrameCaptionButtonContainerView* caption_button_container_; 100 FrameCaptionButtonContainerView* caption_button_container_;
98 101
99 // The height of the header including the header/content separator. 102 // The height of the header including the header/content separator.
100 int height_; 103 int height_;
101 104
102 // Whether the header should be painted as active. 105 // Whether the header should be painted as active.
103 Mode mode_; 106 Mode mode_;
104 107
105 // Whether the header is painted for the first time. 108 // Whether the header is painted for the first time.
106 bool initial_paint_; 109 bool initial_paint_;
107 110
108 scoped_ptr<gfx::SlideAnimation> activation_animation_; 111 scoped_ptr<gfx::SlideAnimation> activation_animation_;
109 112
110 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); 113 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter);
111 }; 114 };
112 115
113 } // namespace ash 116 } // namespace ash
114 117
115 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ 118 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/frame/default_header_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698