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 UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 5 #ifndef UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
6 #define UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 6 #define UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
7 | 7 |
8 #include "ui/views/view.h" | 8 #include "ui/views/view.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 void set_client_view(ClientView* client_view) { | 201 void set_client_view(ClientView* client_view) { |
202 client_view_ = client_view; | 202 client_view_ = client_view; |
203 } | 203 } |
204 | 204 |
205 // Layout just the frame view. This is necessary on Windows when non-client | 205 // Layout just the frame view. This is necessary on Windows when non-client |
206 // metrics such as the position of the window controls changes independently | 206 // metrics such as the position of the window controls changes independently |
207 // of a window resize message. | 207 // of a window resize message. |
208 void LayoutFrameView(); | 208 void LayoutFrameView(); |
209 | 209 |
210 // Set the accessible name of this view. | 210 // Set the accessible name of this view. |
211 void SetAccessibleName(const string16& name); | 211 void SetAccessibleName(const base::string16& name); |
212 | 212 |
213 // NonClientView, View overrides: | 213 // NonClientView, View overrides: |
214 virtual gfx::Size GetPreferredSize() OVERRIDE; | 214 virtual gfx::Size GetPreferredSize() OVERRIDE; |
215 virtual gfx::Size GetMinimumSize() OVERRIDE; | 215 virtual gfx::Size GetMinimumSize() OVERRIDE; |
216 virtual gfx::Size GetMaximumSize() OVERRIDE; | 216 virtual gfx::Size GetMaximumSize() OVERRIDE; |
217 virtual void Layout() OVERRIDE; | 217 virtual void Layout() OVERRIDE; |
218 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 218 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
219 virtual const char* GetClassName() const OVERRIDE; | 219 virtual const char* GetClassName() const OVERRIDE; |
220 | 220 |
221 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE; | 221 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE; |
(...skipping 14 matching lines...) Expand all Loading... |
236 // The NonClientFrameView that renders the non-client portions of the window. | 236 // The NonClientFrameView that renders the non-client portions of the window. |
237 // This object is not owned by the view hierarchy because it can be replaced | 237 // This object is not owned by the view hierarchy because it can be replaced |
238 // dynamically as the system settings change. | 238 // dynamically as the system settings change. |
239 scoped_ptr<NonClientFrameView> frame_view_; | 239 scoped_ptr<NonClientFrameView> frame_view_; |
240 | 240 |
241 // The overlay view, when non-NULL and visible, takes up the entire widget and | 241 // The overlay view, when non-NULL and visible, takes up the entire widget and |
242 // is placed on top of the ClientView and NonClientFrameView. | 242 // is placed on top of the ClientView and NonClientFrameView. |
243 View* overlay_view_; | 243 View* overlay_view_; |
244 | 244 |
245 // The accessible name of this view. | 245 // The accessible name of this view. |
246 string16 accessible_name_; | 246 base::string16 accessible_name_; |
247 | 247 |
248 DISALLOW_COPY_AND_ASSIGN(NonClientView); | 248 DISALLOW_COPY_AND_ASSIGN(NonClientView); |
249 }; | 249 }; |
250 | 250 |
251 } // namespace views | 251 } // namespace views |
252 | 252 |
253 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 253 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
OLD | NEW |