| 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" |
| 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; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace ash { | 19 namespace ash { |
| 20 class DefaultHeaderPainter; | 20 class DefaultHeaderPainter; |
| 21 class FrameCaptionButtonContainerView; | 21 class FrameCaptionButtonContainerView; |
| 22 class FrameBorderHitTestController; | |
| 23 | 22 |
| 24 class ASH_EXPORT PanelFrameView : public views::NonClientFrameView, | 23 class ASH_EXPORT PanelFrameView : public views::NonClientFrameView, |
| 25 public ShellObserver { | 24 public ShellObserver { |
| 26 public: | 25 public: |
| 27 // Internal class name. | 26 // Internal class name. |
| 28 static const char kViewClassName[]; | 27 static const char kViewClassName[]; |
| 29 | 28 |
| 30 enum FrameType { FRAME_NONE, FRAME_ASH }; | 29 enum FrameType { FRAME_NONE, FRAME_ASH }; |
| 31 | 30 |
| 32 PanelFrameView(views::Widget* frame, FrameType frame_type); | 31 PanelFrameView(views::Widget* frame, FrameType frame_type); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Child View class describing the panel's title bar behavior | 67 // Child View class describing the panel's title bar behavior |
| 69 // and buttons, owned by the view hierarchy | 68 // and buttons, owned by the view hierarchy |
| 70 views::Widget* frame_; | 69 views::Widget* frame_; |
| 71 FrameCaptionButtonContainerView* caption_button_container_; | 70 FrameCaptionButtonContainerView* caption_button_container_; |
| 72 views::ImageView* window_icon_; | 71 views::ImageView* window_icon_; |
| 73 gfx::Rect client_view_bounds_; | 72 gfx::Rect client_view_bounds_; |
| 74 | 73 |
| 75 // Helper class for painting the header. | 74 // Helper class for painting the header. |
| 76 std::unique_ptr<DefaultHeaderPainter> header_painter_; | 75 std::unique_ptr<DefaultHeaderPainter> header_painter_; |
| 77 | 76 |
| 78 // Updates the hittest bounds overrides based on the window state type. | |
| 79 std::unique_ptr<FrameBorderHitTestController> | |
| 80 frame_border_hit_test_controller_; | |
| 81 | |
| 82 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); | 77 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); |
| 83 }; | 78 }; |
| 84 } | 79 } |
| 85 | 80 |
| 86 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ | 81 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ |
| OLD | NEW |