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/views/window/non_client_view.h" | 10 #include "ui/views/window/non_client_view.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual gfx::Rect GetWindowBoundsForClientBounds( | 45 virtual gfx::Rect GetWindowBoundsForClientBounds( |
46 const gfx::Rect& client_bounds) const OVERRIDE; | 46 const gfx::Rect& client_bounds) const OVERRIDE; |
47 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 47 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
48 virtual void GetWindowMask(const gfx::Size& size, | 48 virtual void GetWindowMask(const gfx::Size& size, |
49 gfx::Path* window_mask) OVERRIDE; | 49 gfx::Path* window_mask) OVERRIDE; |
50 virtual void ResetWindowControls() OVERRIDE; | 50 virtual void ResetWindowControls() OVERRIDE; |
51 virtual void UpdateWindowIcon() OVERRIDE; | 51 virtual void UpdateWindowIcon() OVERRIDE; |
52 virtual void UpdateWindowTitle() OVERRIDE; | 52 virtual void UpdateWindowTitle() OVERRIDE; |
53 | 53 |
54 // Overridden from views::View: | 54 // Overridden from views::View: |
55 virtual gfx::Size GetMinimumSize() OVERRIDE; | 55 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
56 virtual void Layout() OVERRIDE; | 56 virtual void Layout() OVERRIDE; |
57 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 57 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
58 | 58 |
59 // Child View class describing the panel's title bar behavior | 59 // Child View class describing the panel's title bar behavior |
60 // and buttons, owned by the view hierarchy | 60 // and buttons, owned by the view hierarchy |
61 views::Widget* frame_; | 61 views::Widget* frame_; |
62 FrameCaptionButtonContainerView* caption_button_container_; | 62 FrameCaptionButtonContainerView* caption_button_container_; |
63 views::ImageView* window_icon_; | 63 views::ImageView* window_icon_; |
64 gfx::Rect client_view_bounds_; | 64 gfx::Rect client_view_bounds_; |
65 | 65 |
66 // Helper class for painting the header. | 66 // Helper class for painting the header. |
67 scoped_ptr<DefaultHeaderPainter> header_painter_; | 67 scoped_ptr<DefaultHeaderPainter> header_painter_; |
68 | 68 |
69 // Updates the hittest bounds overrides based on the window state type. | 69 // Updates the hittest bounds overrides based on the window state type. |
70 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_; | 70 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); | 72 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); |
73 }; | 73 }; |
74 | 74 |
75 } | 75 } |
76 | 76 |
77 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ | 77 #endif // ASH_WM_PANELS_PANEL_FRAME_VIEW_H_ |
OLD | NEW |