Chromium Code Reviews

Side by Side Diff: ui/views/window/non_client_view.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
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 187 matching lines...)
198 198
199 // Layout just the frame view. This is necessary on Windows when non-client 199 // Layout just the frame view. This is necessary on Windows when non-client
200 // metrics such as the position of the window controls changes independently 200 // metrics such as the position of the window controls changes independently
201 // of a window resize message. 201 // of a window resize message.
202 void LayoutFrameView(); 202 void LayoutFrameView();
203 203
204 // Set the accessible name of this view. 204 // Set the accessible name of this view.
205 void SetAccessibleName(const base::string16& name); 205 void SetAccessibleName(const base::string16& name);
206 206
207 // NonClientView, View overrides: 207 // NonClientView, View overrides:
208 virtual gfx::Size GetPreferredSize() OVERRIDE; 208 virtual gfx::Size GetPreferredSize() const OVERRIDE;
209 virtual gfx::Size GetMinimumSize() OVERRIDE; 209 virtual gfx::Size GetMinimumSize() const OVERRIDE;
210 virtual gfx::Size GetMaximumSize() OVERRIDE; 210 virtual gfx::Size GetMaximumSize() OVERRIDE;
211 virtual void Layout() OVERRIDE; 211 virtual void Layout() OVERRIDE;
212 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 212 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
213 virtual const char* GetClassName() const OVERRIDE; 213 virtual const char* GetClassName() const OVERRIDE;
214 214
215 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE; 215 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE;
216 virtual views::View* GetTooltipHandlerForPoint( 216 virtual views::View* GetTooltipHandlerForPoint(
217 const gfx::Point& point) OVERRIDE; 217 const gfx::Point& point) OVERRIDE;
218 218
219 protected: 219 protected:
(...skipping 18 matching lines...)
238 238
239 // The accessible name of this view. 239 // The accessible name of this view.
240 base::string16 accessible_name_; 240 base::string16 accessible_name_;
241 241
242 DISALLOW_COPY_AND_ASSIGN(NonClientView); 242 DISALLOW_COPY_AND_ASSIGN(NonClientView);
243 }; 243 };
244 244
245 } // namespace views 245 } // namespace views
246 246
247 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ 247 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_
OLDNEW

Powered by Google App Engine