OLD | NEW |
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 #ifndef CONTENT_SHELL_SHELL_H_ | 4 #ifndef CONTENT_SHELL_SHELL_H_ |
5 #define CONTENT_SHELL_SHELL_H_ | 5 #define CONTENT_SHELL_SHELL_H_ |
6 | 6 |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 GtkToolItem* back_button_; | 236 GtkToolItem* back_button_; |
237 GtkToolItem* forward_button_; | 237 GtkToolItem* forward_button_; |
238 GtkToolItem* reload_button_; | 238 GtkToolItem* reload_button_; |
239 GtkToolItem* stop_button_; | 239 GtkToolItem* stop_button_; |
240 | 240 |
241 GtkWidget* spinner_; | 241 GtkWidget* spinner_; |
242 GtkToolItem* spinner_item_; | 242 GtkToolItem* spinner_item_; |
243 | 243 |
244 int content_width_; | 244 int content_width_; |
245 int content_height_; | 245 int content_height_; |
| 246 int ui_elements_height_; // height of menubar, toolbar, etc. |
246 #elif defined(OS_ANDROID) | 247 #elif defined(OS_ANDROID) |
247 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 248 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
248 #elif defined(USE_AURA) | 249 #elif defined(USE_AURA) |
249 #if defined(OS_CHROMEOS) | 250 #if defined(OS_CHROMEOS) |
250 static content::MinimalAsh* minimal_ash_; | 251 static content::MinimalAsh* minimal_ash_; |
251 #endif | 252 #endif |
252 static views::ViewsDelegate* views_delegate_; | 253 static views::ViewsDelegate* views_delegate_; |
253 | 254 |
254 views::Widget* window_widget_; | 255 views::Widget* window_widget_; |
255 #endif | 256 #endif |
256 | 257 |
257 bool headless_; | 258 bool headless_; |
258 | 259 |
259 // A container of all the open windows. We use a vector so we can keep track | 260 // A container of all the open windows. We use a vector so we can keep track |
260 // of ordering. | 261 // of ordering. |
261 static std::vector<Shell*> windows_; | 262 static std::vector<Shell*> windows_; |
262 | 263 |
263 static base::Callback<void(Shell*)> shell_created_callback_; | 264 static base::Callback<void(Shell*)> shell_created_callback_; |
264 | 265 |
265 // True if the destructur of Shell should post a quit closure on the current | 266 // True if the destructur of Shell should post a quit closure on the current |
266 // message loop if the destructed Shell object was the last one. | 267 // message loop if the destructed Shell object was the last one. |
267 static bool quit_message_loop_; | 268 static bool quit_message_loop_; |
268 }; | 269 }; |
269 | 270 |
270 } // namespace content | 271 } // namespace content |
271 | 272 |
272 #endif // CONTENT_SHELL_SHELL_H_ | 273 #endif // CONTENT_SHELL_SHELL_H_ |
OLD | NEW |