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 #include "chrome/browser/views/constrained_window_impl.h" | 5 #include "chrome/browser/views/constrained_window_impl.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
8 #include "base/gfx/rect.h" | 9 #include "base/gfx/rect.h" |
9 #include "chrome/app/chrome_dll_resource.h" | 10 #include "chrome/app/chrome_dll_resource.h" |
10 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
12 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
13 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
14 #include "chrome/browser/tab_contents/tab_contents_view.h" | 15 #include "chrome/browser/tab_contents/tab_contents_view.h" |
15 #include "chrome/browser/toolbar_model.h" | 16 #include "chrome/browser/toolbar_model.h" |
16 #include "chrome/browser/views/frame/browser_view.h" | 17 #include "chrome/browser/views/frame/browser_view.h" |
17 #include "chrome/browser/window_sizer.h" | 18 #include "chrome/browser/window_sizer.h" |
18 #include "chrome/common/chrome_constants.h" | 19 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/common/gfx/chrome_canvas.h" | 20 #include "chrome/common/gfx/chrome_canvas.h" |
20 #include "chrome/common/gfx/chrome_font.h" | 21 #include "chrome/common/gfx/chrome_font.h" |
21 #include "chrome/common/gfx/path.h" | 22 #include "chrome/common/gfx/path.h" |
22 #include "chrome/common/gfx/text_elider.h" | 23 #include "chrome/common/gfx/text_elider.h" |
23 #include "chrome/common/l10n_util.h" | |
24 #include "chrome/common/notification_service.h" | 24 #include "chrome/common/notification_service.h" |
25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
26 #include "chrome/common/pref_service.h" | 26 #include "chrome/common/pref_service.h" |
27 #include "chrome/common/win_util.h" | 27 #include "chrome/common/win_util.h" |
28 #include "chrome/views/controls/button/image_button.h" | 28 #include "chrome/views/controls/button/image_button.h" |
29 #include "chrome/views/controls/hwnd_view.h" | 29 #include "chrome/views/controls/hwnd_view.h" |
30 #include "chrome/views/focus/focus_manager.h" | 30 #include "chrome/views/focus/focus_manager.h" |
31 #include "chrome/views/window/client_view.h" | 31 #include "chrome/views/window/client_view.h" |
32 #include "chrome/views/window/non_client_view.h" | 32 #include "chrome/views/window/non_client_view.h" |
33 #include "chrome/views/window/window_resources.h" | 33 #include "chrome/views/window/window_resources.h" |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog( | 752 ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog( |
753 TabContents* parent, | 753 TabContents* parent, |
754 const gfx::Rect& initial_bounds, | 754 const gfx::Rect& initial_bounds, |
755 views::View* contents_view, | 755 views::View* contents_view, |
756 views::WindowDelegate* window_delegate) { | 756 views::WindowDelegate* window_delegate) { |
757 ConstrainedWindowImpl* window = new ConstrainedWindowImpl(parent, | 757 ConstrainedWindowImpl* window = new ConstrainedWindowImpl(parent, |
758 window_delegate); | 758 window_delegate); |
759 window->InitAsDialog(initial_bounds); | 759 window->InitAsDialog(initial_bounds); |
760 return window; | 760 return window; |
761 } | 761 } |
OLD | NEW |