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

Side by Side Diff: ash/wm/panels/panel_frame_view.h

Issue 1429793002: Make panel window's header color customizable in Ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | ash/wm/panels/panel_frame_view.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WM_PANELS_PANEL_FRAME_VIEW_H_ 5 #ifndef ASH_WM_PANELS_PANEL_FRAME_VIEW_H_
6 #define ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ 6 #define ASH_WM_PANELS_PANEL_FRAME_VIEW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "ui/views/window/non_client_view.h" 10 #include "ui/views/window/non_client_view.h"
(...skipping 13 matching lines...) Expand all
24 static const char kViewClassName[]; 24 static const char kViewClassName[];
25 25
26 enum FrameType { 26 enum FrameType {
27 FRAME_NONE, 27 FRAME_NONE,
28 FRAME_ASH 28 FRAME_ASH
29 }; 29 };
30 30
31 PanelFrameView(views::Widget* frame, FrameType frame_type); 31 PanelFrameView(views::Widget* frame, FrameType frame_type);
32 ~PanelFrameView() override; 32 ~PanelFrameView() override;
33 33
34 // Sets the active and inactive frame colors. Note the inactive frame color
35 // will have some transparency added when the frame is drawn.
36 void SetFrameColors(SkColor active_frame_color, SkColor inactive_frame_color);
37
34 // Overridden from views::View: 38 // Overridden from views::View:
35 const char* GetClassName() const override; 39 const char* GetClassName() const override;
36 40
37 private: 41 private:
38 void InitHeaderPainter(); 42 void InitHeaderPainter();
39 43
40 // Height from top of window to top of client area. 44 // Height from top of window to top of client area.
41 int NonClientTopBorderHeight() const; 45 int NonClientTopBorderHeight() const;
42 46
43 // Overridden from views::NonClientFrameView: 47 // Overridden from views::NonClientFrameView:
(...skipping 24 matching lines...) Expand all
68 72
69 // Updates the hittest bounds overrides based on the window state type. 73 // Updates the hittest bounds overrides based on the window state type.
70 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_; 74 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_;
71 75
72 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); 76 DISALLOW_COPY_AND_ASSIGN(PanelFrameView);
73 }; 77 };
74 78
75 } 79 }
76 80
77 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ 81 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/panels/panel_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698