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