| 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_CUSTOM_FRAME_VIEW_ASH_H_ | 5 #ifndef ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ |
| 6 #define ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ | 6 #define ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "ui/views/controls/button/button.h" // ButtonListener | 11 #include "ui/views/controls/button/button.h" // ButtonListener |
| 12 #include "ui/views/window/non_client_view.h" | 12 #include "ui/views/window/non_client_view.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 class FramePainter; | 15 class FramePainter; |
| 16 } | 16 } |
| 17 namespace gfx { | 17 namespace gfx { |
| 18 class Font; | 18 class Font; |
| 19 } | 19 } |
| 20 namespace views { | 20 namespace views { |
| 21 class ImageButton; | 21 class ImageButton; |
| 22 class Widget; | 22 class Widget; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace ash { | 25 namespace ash { |
| 26 | 26 |
| 27 // A NonClientFrameView used for dialogs and other non-browser windows. | 27 // A NonClientFrameView used for dialogs and other non-browser windows. |
| 28 // See also views::CustomFrameView and BrowserNonClientFrameViewAura. | 28 // See also views::CustomFrameView and BrowserNonClientFrameViewAsh. |
| 29 class ASH_EXPORT CustomFrameViewAsh : public views::NonClientFrameView, | 29 class ASH_EXPORT CustomFrameViewAsh : public views::NonClientFrameView, |
| 30 public views::ButtonListener { | 30 public views::ButtonListener { |
| 31 public: | 31 public: |
| 32 // Internal class name. | 32 // Internal class name. |
| 33 static const char kViewClassName[]; | 33 static const char kViewClassName[]; |
| 34 | 34 |
| 35 CustomFrameViewAsh(); | 35 CustomFrameViewAsh(); |
| 36 virtual ~CustomFrameViewAsh(); | 36 virtual ~CustomFrameViewAsh(); |
| 37 | 37 |
| 38 void Init(views::Widget* frame); | 38 void Init(views::Widget* frame); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 views::ImageButton* window_icon_; | 72 views::ImageButton* window_icon_; |
| 73 | 73 |
| 74 scoped_ptr<FramePainter> frame_painter_; | 74 scoped_ptr<FramePainter> frame_painter_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh); | 76 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace ash | 79 } // namespace ash |
| 80 | 80 |
| 81 #endif // ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ | 81 #endif // ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ |
| OLD | NEW |