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 CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
10 #include "ui/views/window/non_client_view.h" | 10 #include "ui/views/window/non_client_view.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual gfx::Size GetPreferredSize() OVERRIDE; | 58 virtual gfx::Size GetPreferredSize() OVERRIDE; |
59 | 59 |
60 // Overridden from ButtonListener | 60 // Overridden from ButtonListener |
61 virtual void ButtonPressed(views::Button* sender, | 61 virtual void ButtonPressed(views::Button* sender, |
62 const ui::Event& event) OVERRIDE; | 62 const ui::Event& event) OVERRIDE; |
63 | 63 |
64 HeaderViews* CreateDefaultHeaderView(); | 64 HeaderViews* CreateDefaultHeaderView(); |
65 | 65 |
66 views::ImageButton* CreateCloseButton(); | 66 views::ImageButton* CreateCloseButton(); |
67 | 67 |
| 68 // Add padding to the given View object. |
| 69 views::View* AddPadding( |
| 70 views::View* viewToPad, |
| 71 int top, |
| 72 int left, |
| 73 int bottom, |
| 74 int right); |
| 75 |
68 ConstrainedWindowViews* container_; | 76 ConstrainedWindowViews* container_; |
69 | 77 |
70 views::LayoutManager* layout_; | 78 views::LayoutManager* layout_; |
71 | 79 |
72 scoped_ptr<HeaderViews> header_views_; | 80 scoped_ptr<HeaderViews> header_views_; |
73 | 81 |
74 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowFrameSimple); | 82 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowFrameSimple); |
75 }; | 83 }; |
76 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_ | 84 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_ |
OLD | NEW |