Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

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: More compile fix for ToT Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/window/native_frame_view.cc ('k') | ui/views/window/non_client_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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...) Expand 10 before | Expand all | Expand 10 after
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...) Expand all
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
« no previous file with comments | « ui/views/window/native_frame_view.cc ('k') | ui/views/window/non_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698