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

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

Issue 279004: Made sync code build and pass unit tests on OS X. (Closed)
Patch Set: Fixed uninitialized var error. Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef VIEWS_WINDOW_WINDOW_H_ 5 #ifndef VIEWS_WINDOW_WINDOW_H_
6 #define VIEWS_WINDOW_WINDOW_H_ 6 #define VIEWS_WINDOW_WINDOW_H_
7 7
8 #include "app/gfx/native_widget_types.h" 8 #include "app/gfx/native_widget_types.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 25 matching lines...) Expand all
36 // Returns the preferred size of the contents view of this window based on 36 // Returns the preferred size of the contents view of this window based on
37 // its localized size data. The width in cols is held in a localized string 37 // its localized size data. The width in cols is held in a localized string
38 // resource identified by |col_resource_id|, the height in the same fashion. 38 // resource identified by |col_resource_id|, the height in the same fashion.
39 // TODO(beng): This should eventually live somewhere else, probably closer to 39 // TODO(beng): This should eventually live somewhere else, probably closer to
40 // ClientView. 40 // ClientView.
41 static int GetLocalizedContentsWidth(int col_resource_id); 41 static int GetLocalizedContentsWidth(int col_resource_id);
42 static int GetLocalizedContentsHeight(int row_resource_id); 42 static int GetLocalizedContentsHeight(int row_resource_id);
43 static gfx::Size GetLocalizedContentsSize(int col_resource_id, 43 static gfx::Size GetLocalizedContentsSize(int col_resource_id,
44 int row_resource_id); 44 int row_resource_id);
45 45
46 // These versions of GetLocalizedContents allow a font to be specified
47 // other than the default UI font.
48 static int GetLocalizedContentsWidthForFont(int col_resource_id,
49 const gfx::Font& font);
50 static int GetLocalizedContentsHeightForFont(int row_resource_id,
51 const gfx::Font& font);
52 static gfx::Size GetLocalizedContentsSizeForFont(int col_resource_id,
53 int row_resource_id,
54 const gfx::Font& font);
55
56 // Closes all windows that aren't identified as "app windows" via 46 // Closes all windows that aren't identified as "app windows" via
57 // IsAppWindow. Called during application shutdown when the last "app window" 47 // IsAppWindow. Called during application shutdown when the last "app window"
58 // is closed. 48 // is closed.
59 static void CloseAllSecondaryWindows(); 49 static void CloseAllSecondaryWindows();
60 50
61 // Used by |CloseAllSecondaryWindows|. If |widget|'s window is a secondary 51 // Used by |CloseAllSecondaryWindows|. If |widget|'s window is a secondary
62 // window, the window is closed. If |widget| has no window, it is closed. 52 // window, the window is closed. If |widget| has no window, it is closed.
63 // Does nothing if |widget| is null. 53 // Does nothing if |widget| is null.
64 static void CloseSecondaryWidget(Widget* widget); 54 static void CloseSecondaryWidget(Widget* widget);
65 55
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Whether we should be using a native frame. 159 // Whether we should be using a native frame.
170 virtual bool ShouldUseNativeFrame() const = 0; 160 virtual bool ShouldUseNativeFrame() const = 0;
171 161
172 // Tell the window that something caused the frame type to change. 162 // Tell the window that something caused the frame type to change.
173 virtual void FrameTypeChanged() = 0; 163 virtual void FrameTypeChanged() = 0;
174 }; 164 };
175 165
176 } // namespace views 166 } // namespace views
177 167
178 #endif // #ifndef VIEWS_WINDOW_WINDOW_H_ 168 #endif // #ifndef VIEWS_WINDOW_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698