OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 5 #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
6 #define VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 6 #define VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/task.h" | 9 #include "base/task.h" |
10 #include "views/view.h" | 10 #include "views/view.h" |
11 #include "views/window/client_view.h" | 11 #include "views/window/client_view.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Path; | 14 class Path; |
15 } | 15 } |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 | 18 |
19 //////////////////////////////////////////////////////////////////////////////// | 19 //////////////////////////////////////////////////////////////////////////////// |
20 // NonClientFrameView | 20 // NonClientFrameView |
21 // | 21 // |
22 // An object that subclasses NonClientFrameView is a View that renders and | 22 // An object that subclasses NonClientFrameView is a View that renders and |
23 // responds to events within the frame portions of the non-client area of a | 23 // responds to events within the frame portions of the non-client area of a |
24 // window. This view does _not_ contain the ClientView, but rather is a sibling | 24 // window. This view does _not_ contain the ClientView, but rather is a sibling |
25 // of it. | 25 // of it. |
26 class VIEWS_API NonClientFrameView : public View { | 26 class VIEWS_EXPORT NonClientFrameView : public View { |
27 public: | 27 public: |
28 // Internal class name. | 28 // Internal class name. |
29 static const char kViewClassName[]; | 29 static const char kViewClassName[]; |
30 // Various edges of the frame border have a 1 px shadow along their edges; in | 30 // Various edges of the frame border have a 1 px shadow along their edges; in |
31 // a few cases we shift elements based on this amount for visual appeal. | 31 // a few cases we shift elements based on this amount for visual appeal. |
32 static const int kFrameShadowThickness; | 32 static const int kFrameShadowThickness; |
33 // In restored mode, we draw a 1 px edge around the content area inside the | 33 // In restored mode, we draw a 1 px edge around the content area inside the |
34 // frame border. | 34 // frame border. |
35 static const int kClientEdgeThickness; | 35 static const int kClientEdgeThickness; |
36 | 36 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // | | | +----------------------------------------+ | | | | 124 // | | | +----------------------------------------+ | | | |
125 // | | +--------------------------------------------+ | | | 125 // | | +--------------------------------------------+ | | |
126 // | +------------------------------------------------+ | | 126 // | +------------------------------------------------+ | |
127 // +----------------------------------------------------+ | 127 // +----------------------------------------------------+ |
128 // | 128 // |
129 // The NonClientFrameView and ClientView are siblings because due to theme | 129 // The NonClientFrameView and ClientView are siblings because due to theme |
130 // changes the NonClientFrameView may be replaced with different | 130 // changes the NonClientFrameView may be replaced with different |
131 // implementations (e.g. during the switch from DWM/Aero-Glass to Vista Basic/ | 131 // implementations (e.g. during the switch from DWM/Aero-Glass to Vista Basic/ |
132 // Classic rendering). | 132 // Classic rendering). |
133 // | 133 // |
134 class VIEWS_API NonClientView : public View { | 134 class VIEWS_EXPORT NonClientView : public View { |
135 public: | 135 public: |
136 // Internal class name. | 136 // Internal class name. |
137 static const char kViewClassName[]; | 137 static const char kViewClassName[]; |
138 | 138 |
139 NonClientView(); | 139 NonClientView(); |
140 virtual ~NonClientView(); | 140 virtual ~NonClientView(); |
141 | 141 |
142 // Returns the current NonClientFrameView instance, or NULL if | 142 // Returns the current NonClientFrameView instance, or NULL if |
143 // it does not exist. | 143 // it does not exist. |
144 NonClientFrameView* frame_view() const { return frame_view_.get(); } | 144 NonClientFrameView* frame_view() const { return frame_view_.get(); } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 // The accessible name of this view. | 233 // The accessible name of this view. |
234 string16 accessible_name_; | 234 string16 accessible_name_; |
235 | 235 |
236 DISALLOW_COPY_AND_ASSIGN(NonClientView); | 236 DISALLOW_COPY_AND_ASSIGN(NonClientView); |
237 }; | 237 }; |
238 | 238 |
239 } // namespace views | 239 } // namespace views |
240 | 240 |
241 #endif // #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 241 #endif // #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
OLD | NEW |