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

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

Issue 2410633002: Moves PanelFrameView to common (Closed)
Patch Set: Created 4 years, 2 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 | « ash/BUILD.gn ('k') | ash/common/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_COMMON_WM_PANELS_PANEL_FRAME_VIEW_H_
6 #define ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ 6 #define ASH_COMMON_WM_PANELS_PANEL_FRAME_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/common/shell_observer.h" 11 #include "ash/common/shell_observer.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "ui/views/window/non_client_view.h" 13 #include "ui/views/window/non_client_view.h"
14 14
15 namespace views { 15 namespace views {
16 class ImageView; 16 class ImageView;
(...skipping 17 matching lines...) Expand all
34 // Sets the active and inactive frame colors. Note the inactive frame color 34 // Sets the active and inactive frame colors. Note the inactive frame color
35 // will have some transparency added when the frame is drawn. 35 // will have some transparency added when the frame is drawn.
36 void SetFrameColors(SkColor active_frame_color, SkColor inactive_frame_color); 36 void SetFrameColors(SkColor active_frame_color, SkColor inactive_frame_color);
37 37
38 // views::View: 38 // views::View:
39 const char* GetClassName() const override; 39 const char* GetClassName() const override;
40 40
41 private: 41 private:
42 void InitHeaderPainter(); 42 void InitHeaderPainter();
43 43
44 WmWindow* GetWidgetWindow();
45
44 // Height from top of window to top of client area. 46 // Height from top of window to top of client area.
45 int NonClientTopBorderHeight() const; 47 int NonClientTopBorderHeight() const;
46 48
47 // views::NonClientFrameView: 49 // views::NonClientFrameView:
48 gfx::Rect GetBoundsForClientView() const override; 50 gfx::Rect GetBoundsForClientView() const override;
49 gfx::Rect GetWindowBoundsForClientBounds( 51 gfx::Rect GetWindowBoundsForClientBounds(
50 const gfx::Rect& client_bounds) const override; 52 const gfx::Rect& client_bounds) const override;
51 int NonClientHitTest(const gfx::Point& point) override; 53 int NonClientHitTest(const gfx::Point& point) override;
52 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override; 54 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override;
53 void ResetWindowControls() override; 55 void ResetWindowControls() override;
(...skipping 17 matching lines...) Expand all
71 views::ImageView* window_icon_; 73 views::ImageView* window_icon_;
72 gfx::Rect client_view_bounds_; 74 gfx::Rect client_view_bounds_;
73 75
74 // Helper class for painting the header. 76 // Helper class for painting the header.
75 std::unique_ptr<DefaultHeaderPainter> header_painter_; 77 std::unique_ptr<DefaultHeaderPainter> header_painter_;
76 78
77 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); 79 DISALLOW_COPY_AND_ASSIGN(PanelFrameView);
78 }; 80 };
79 } 81 }
80 82
81 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ 83 #endif // ASH_COMMON_WM_PANELS_PANEL_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/wm/panels/panel_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698