OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_WINDOW_H__ | 5 #ifndef CHROME_VIEWS_WINDOW_H__ |
6 #define CHROME_VIEWS_WINDOW_H__ | 6 #define CHROME_VIEWS_WINDOW_H__ |
7 | 7 |
8 #include "chrome/views/widget_win.h" | 8 #include "chrome/views/widget_win.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void ExecuteSystemMenuCommand(int command); | 109 void ExecuteSystemMenuCommand(int command); |
110 | 110 |
111 // The parent of this window. | 111 // The parent of this window. |
112 HWND owning_window() const { return owning_hwnd_; } | 112 HWND owning_window() const { return owning_hwnd_; } |
113 | 113 |
114 // Returns the preferred size of the contents view of this window based on | 114 // Returns the preferred size of the contents view of this window based on |
115 // its localized size data. The width in cols is held in a localized string | 115 // its localized size data. The width in cols is held in a localized string |
116 // resource identified by |col_resource_id|, the height in the same fashion. | 116 // resource identified by |col_resource_id|, the height in the same fashion. |
117 // TODO(beng): This should eventually live somewhere else, probably closer to | 117 // TODO(beng): This should eventually live somewhere else, probably closer to |
118 // ClientView. | 118 // ClientView. |
| 119 static int GetLocalizedContentsWidth(int col_resource_id); |
| 120 static int GetLocalizedContentsHeight(int row_resource_id); |
119 static gfx::Size GetLocalizedContentsSize(int col_resource_id, | 121 static gfx::Size GetLocalizedContentsSize(int col_resource_id, |
120 int row_resource_id); | 122 int row_resource_id); |
121 | 123 |
122 protected: | 124 protected: |
123 // Constructs the Window. |window_delegate| cannot be NULL. | 125 // Constructs the Window. |window_delegate| cannot be NULL. |
124 explicit Window(WindowDelegate* window_delegate); | 126 explicit Window(WindowDelegate* window_delegate); |
125 | 127 |
126 // Create the Window. | 128 // Create the Window. |
127 // If parent is NULL, this Window is top level on the desktop. | 129 // If parent is NULL, this Window is top level on the desktop. |
128 // If |bounds| is empty, the view is queried for its preferred size and | 130 // If |bounds| is empty, the view is queried for its preferred size and |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // that explains why we save this. | 255 // that explains why we save this. |
254 bool saved_maximized_state_; | 256 bool saved_maximized_state_; |
255 | 257 |
256 DISALLOW_EVIL_CONSTRUCTORS(Window); | 258 DISALLOW_EVIL_CONSTRUCTORS(Window); |
257 }; | 259 }; |
258 | 260 |
259 } // namespace views | 261 } // namespace views |
260 | 262 |
261 #endif // CHROME_VIEWS_WINDOW_H__ | 263 #endif // CHROME_VIEWS_WINDOW_H__ |
262 | 264 |
OLD | NEW |