| OLD | NEW |
| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 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(); | 44 aura::Window* GetWidgetWindow(); |
| 45 | 45 |
| 46 // Height from top of window to top of client area. | 46 // Height from top of window to top of client area. |
| 47 int NonClientTopBorderHeight() const; | 47 int NonClientTopBorderHeight() const; |
| 48 | 48 |
| 49 // views::NonClientFrameView: | 49 // views::NonClientFrameView: |
| 50 gfx::Rect GetBoundsForClientView() const override; | 50 gfx::Rect GetBoundsForClientView() const override; |
| 51 gfx::Rect GetWindowBoundsForClientBounds( | 51 gfx::Rect GetWindowBoundsForClientBounds( |
| 52 const gfx::Rect& client_bounds) const override; | 52 const gfx::Rect& client_bounds) const override; |
| 53 int NonClientHitTest(const gfx::Point& point) override; | 53 int NonClientHitTest(const gfx::Point& point) override; |
| 54 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override; | 54 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 74 gfx::Rect client_view_bounds_; | 74 gfx::Rect client_view_bounds_; |
| 75 | 75 |
| 76 // Helper class for painting the header. | 76 // Helper class for painting the header. |
| 77 std::unique_ptr<DefaultHeaderPainter> header_painter_; | 77 std::unique_ptr<DefaultHeaderPainter> header_painter_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); | 79 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); |
| 80 }; | 80 }; |
| 81 } | 81 } |
| 82 | 82 |
| 83 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ | 83 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ |
| OLD | NEW |