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

Side by Side Diff: apps/ui/views/app_window_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 | « no previous file | apps/ui/views/app_window_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 APPS_UI_VIEWS_APP_WINDOW_FRAME_VIEW_H_ 5 #ifndef APPS_UI_VIEWS_APP_WINDOW_FRAME_VIEW_H_
6 #define APPS_UI_VIEWS_APP_WINDOW_FRAME_VIEW_H_ 6 #define APPS_UI_VIEWS_APP_WINDOW_FRAME_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual gfx::Rect GetWindowBoundsForClientBounds( 70 virtual gfx::Rect GetWindowBoundsForClientBounds(
71 const gfx::Rect& client_bounds) const OVERRIDE; 71 const gfx::Rect& client_bounds) const OVERRIDE;
72 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 72 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
73 virtual void GetWindowMask(const gfx::Size& size, 73 virtual void GetWindowMask(const gfx::Size& size,
74 gfx::Path* window_mask) OVERRIDE; 74 gfx::Path* window_mask) OVERRIDE;
75 virtual void ResetWindowControls() OVERRIDE {} 75 virtual void ResetWindowControls() OVERRIDE {}
76 virtual void UpdateWindowIcon() OVERRIDE {} 76 virtual void UpdateWindowIcon() OVERRIDE {}
77 virtual void UpdateWindowTitle() OVERRIDE {} 77 virtual void UpdateWindowTitle() OVERRIDE {}
78 78
79 // views::View implementation. 79 // views::View implementation.
80 virtual gfx::Size GetPreferredSize() OVERRIDE; 80 virtual gfx::Size GetPreferredSize() const OVERRIDE;
81 virtual void Layout() OVERRIDE; 81 virtual void Layout() OVERRIDE;
82 virtual const char* GetClassName() const OVERRIDE; 82 virtual const char* GetClassName() const OVERRIDE;
83 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 83 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
84 virtual gfx::Size GetMinimumSize() OVERRIDE; 84 virtual gfx::Size GetMinimumSize() const OVERRIDE;
85 virtual gfx::Size GetMaximumSize() OVERRIDE; 85 virtual gfx::Size GetMaximumSize() OVERRIDE;
86 86
87 // views::ButtonListener implementation. 87 // views::ButtonListener implementation.
88 virtual void ButtonPressed(views::Button* sender, 88 virtual void ButtonPressed(views::Button* sender,
89 const ui::Event& event) OVERRIDE; 89 const ui::Event& event) OVERRIDE;
90 90
91 // Some button images we use depend on the color of the frame. This 91 // Some button images we use depend on the color of the frame. This
92 // will set these images based on the color of the frame. 92 // will set these images based on the color of the frame.
93 void SetButtonImagesForFrame(); 93 void SetButtonImagesForFrame();
94 94
(...skipping 18 matching lines...) Expand all
113 113
114 // Size in pixels of the lower-right corner resize handle. 114 // Size in pixels of the lower-right corner resize handle.
115 int resize_area_corner_size_; 115 int resize_area_corner_size_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(AppWindowFrameView); 117 DISALLOW_COPY_AND_ASSIGN(AppWindowFrameView);
118 }; 118 };
119 119
120 } // namespace apps 120 } // namespace apps
121 121
122 #endif // APPS_UI_VIEWS_APP_WINDOW_FRAME_VIEW_H_ 122 #endif // APPS_UI_VIEWS_APP_WINDOW_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | apps/ui/views/app_window_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698