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

Side by Side Diff: ui/views/window/native_frame_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/dialog_delegate_unittest.cc ('k') | ui/views/window/native_frame_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) 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_NATIVE_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
6 #define UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ 6 #define UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
7 7
8 #include "ui/views/window/non_client_view.h" 8 #include "ui/views/window/non_client_view.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 12 matching lines...) Expand all
23 virtual gfx::Rect GetWindowBoundsForClientBounds( 23 virtual gfx::Rect GetWindowBoundsForClientBounds(
24 const gfx::Rect& client_bounds) const OVERRIDE; 24 const gfx::Rect& client_bounds) const OVERRIDE;
25 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 25 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
26 virtual void GetWindowMask(const gfx::Size& size, 26 virtual void GetWindowMask(const gfx::Size& size,
27 gfx::Path* window_mask) OVERRIDE; 27 gfx::Path* window_mask) OVERRIDE;
28 virtual void ResetWindowControls() OVERRIDE; 28 virtual void ResetWindowControls() OVERRIDE;
29 virtual void UpdateWindowIcon() OVERRIDE; 29 virtual void UpdateWindowIcon() OVERRIDE;
30 virtual void UpdateWindowTitle() OVERRIDE; 30 virtual void UpdateWindowTitle() OVERRIDE;
31 31
32 // View overrides: 32 // View overrides:
33 virtual gfx::Size GetPreferredSize() OVERRIDE; 33 virtual gfx::Size GetPreferredSize() const OVERRIDE;
34 virtual gfx::Size GetMinimumSize() OVERRIDE; 34 virtual gfx::Size GetMinimumSize() const OVERRIDE;
35 virtual gfx::Size GetMaximumSize() OVERRIDE; 35 virtual gfx::Size GetMaximumSize() OVERRIDE;
36 virtual const char* GetClassName() const OVERRIDE; 36 virtual const char* GetClassName() const OVERRIDE;
37 37
38 private: 38 private:
39 // Our containing frame. 39 // Our containing frame.
40 Widget* frame_; 40 Widget* frame_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(NativeFrameView); 42 DISALLOW_COPY_AND_ASSIGN(NativeFrameView);
43 }; 43 };
44 44
45 } // namespace views 45 } // namespace views
46 46
47 #endif // UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ 47 #endif // UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/window/dialog_delegate_unittest.cc ('k') | ui/views/window/native_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698