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 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
10 #include "ui/views/window/client_view.h" | 10 #include "ui/views/window/client_view.h" |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // metrics such as the position of the window controls changes independently | 194 // metrics such as the position of the window controls changes independently |
195 // of a window resize message. | 195 // of a window resize message. |
196 void LayoutFrameView(); | 196 void LayoutFrameView(); |
197 | 197 |
198 // Set the accessible name of this view. | 198 // Set the accessible name of this view. |
199 void SetAccessibleName(const string16& name); | 199 void SetAccessibleName(const string16& name); |
200 | 200 |
201 // NonClientView, View overrides: | 201 // NonClientView, View overrides: |
202 virtual gfx::Size GetPreferredSize() OVERRIDE; | 202 virtual gfx::Size GetPreferredSize() OVERRIDE; |
203 virtual gfx::Size GetMinimumSize() OVERRIDE; | 203 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 204 virtual gfx::Size GetMaximumSize() OVERRIDE; |
204 virtual void Layout() OVERRIDE; | 205 virtual void Layout() OVERRIDE; |
205 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 206 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
206 virtual std::string GetClassName() const OVERRIDE; | 207 virtual std::string GetClassName() const OVERRIDE; |
207 | 208 |
208 virtual views::View* GetEventHandlerForPoint(const gfx::Point& point) | 209 virtual views::View* GetEventHandlerForPoint(const gfx::Point& point) |
209 OVERRIDE; | 210 OVERRIDE; |
210 | 211 |
211 protected: | 212 protected: |
212 // NonClientView, View overrides: | 213 // NonClientView, View overrides: |
213 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child) | 214 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child) |
(...skipping 12 matching lines...) Expand all Loading... |
226 | 227 |
227 // The accessible name of this view. | 228 // The accessible name of this view. |
228 string16 accessible_name_; | 229 string16 accessible_name_; |
229 | 230 |
230 DISALLOW_COPY_AND_ASSIGN(NonClientView); | 231 DISALLOW_COPY_AND_ASSIGN(NonClientView); |
231 }; | 232 }; |
232 | 233 |
233 } // namespace views | 234 } // namespace views |
234 | 235 |
235 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 236 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
OLD | NEW |