| 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 "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "ui/gfx/font_list.h" | |
| 11 #include "ui/views/window/non_client_view.h" | 10 #include "ui/views/window/non_client_view.h" |
| 12 | 11 |
| 13 namespace views { | 12 namespace views { |
| 14 class ImageView; | 13 class ImageView; |
| 15 } | 14 } |
| 16 | 15 |
| 17 namespace ash { | 16 namespace ash { |
| 18 | 17 class DefaultHeaderPainter; |
| 19 class FrameCaptionButtonContainerView; | 18 class FrameCaptionButtonContainerView; |
| 20 class FrameBorderHitTestController; | 19 class FrameBorderHitTestController; |
| 21 class HeaderPainter; | |
| 22 | 20 |
| 23 class ASH_EXPORT PanelFrameView : public views::NonClientFrameView { | 21 class ASH_EXPORT PanelFrameView : public views::NonClientFrameView { |
| 24 public: | 22 public: |
| 25 // Internal class name. | 23 // Internal class name. |
| 26 static const char kViewClassName[]; | 24 static const char kViewClassName[]; |
| 27 | 25 |
| 28 enum FrameType { | 26 enum FrameType { |
| 29 FRAME_NONE, | 27 FRAME_NONE, |
| 30 FRAME_ASH | 28 FRAME_ASH |
| 31 }; | 29 }; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 57 virtual gfx::Size GetMinimumSize() OVERRIDE; | 55 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 58 virtual void Layout() OVERRIDE; | 56 virtual void Layout() OVERRIDE; |
| 59 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 57 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 60 | 58 |
| 61 // Child View class describing the panel's title bar behavior | 59 // Child View class describing the panel's title bar behavior |
| 62 // and buttons, owned by the view hierarchy | 60 // and buttons, owned by the view hierarchy |
| 63 views::Widget* frame_; | 61 views::Widget* frame_; |
| 64 FrameCaptionButtonContainerView* caption_button_container_; | 62 FrameCaptionButtonContainerView* caption_button_container_; |
| 65 views::ImageView* window_icon_; | 63 views::ImageView* window_icon_; |
| 66 gfx::Rect client_view_bounds_; | 64 gfx::Rect client_view_bounds_; |
| 67 const gfx::FontList title_font_list_; | |
| 68 | 65 |
| 69 // Helper class for painting the header. | 66 // Helper class for painting the header. |
| 70 scoped_ptr<HeaderPainter> header_painter_; | 67 scoped_ptr<DefaultHeaderPainter> header_painter_; |
| 71 | 68 |
| 72 // Updates the hittest bounds overrides based on the window state type. | 69 // Updates the hittest bounds overrides based on the window state type. |
| 73 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_; | 70 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_; |
| 74 | 71 |
| 75 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); | 72 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); |
| 76 }; | 73 }; |
| 77 | 74 |
| 78 } | 75 } |
| 79 | 76 |
| 80 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ | 77 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ |
| OLD | NEW |