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_DIALOG_FRAME_VIEW_H_ | 5 #ifndef ASH_WM_DIALOG_FRAME_VIEW_H_ |
6 #define ASH_WM_DIALOG_FRAME_VIEW_H_ | 6 #define ASH_WM_DIALOG_FRAME_VIEW_H_ |
7 | 7 |
8 #include "ui/views/controls/button/button.h" | 8 #include "ui/views/controls/button/button.h" |
9 #include "ui/views/window/non_client_view.h" | 9 #include "ui/views/window/non_client_view.h" |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 virtual void ResetWindowControls() OVERRIDE; | 39 virtual void ResetWindowControls() OVERRIDE; |
40 virtual void UpdateWindowIcon() OVERRIDE; | 40 virtual void UpdateWindowIcon() OVERRIDE; |
41 | 41 |
42 // Overridden from View: | 42 // Overridden from View: |
43 virtual std::string GetClassName() const OVERRIDE; | 43 virtual std::string GetClassName() const OVERRIDE; |
44 virtual void Layout() OVERRIDE; | 44 virtual void Layout() OVERRIDE; |
45 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 45 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
46 | 46 |
47 // Overridden from views::ButtonListener: | 47 // Overridden from views::ButtonListener: |
48 virtual void ButtonPressed(views::Button* sender, | 48 virtual void ButtonPressed(views::Button* sender, |
49 const views::Event& event) OVERRIDE; | 49 const ui::Event& event) OVERRIDE; |
50 | 50 |
51 private: | 51 private: |
52 gfx::Insets GetPaddingInsets() const; | 52 gfx::Insets GetPaddingInsets() const; |
53 gfx::Insets GetClientInsets() const; | 53 gfx::Insets GetClientInsets() const; |
54 | 54 |
55 gfx::Rect title_display_rect_; | 55 gfx::Rect title_display_rect_; |
56 | 56 |
57 views::ImageButton* close_button_; | 57 views::ImageButton* close_button_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(DialogFrameView); | 59 DISALLOW_COPY_AND_ASSIGN(DialogFrameView); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace internal | 62 } // namespace internal |
63 } // namespace views | 63 } // namespace views |
64 | 64 |
65 #endif // ASH_WM_DIALOG_FRAME_VIEW_H_ | 65 #endif // ASH_WM_DIALOG_FRAME_VIEW_H_ |
OLD | NEW |