OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/views/constrained_window_win.h" | 5 #include "chrome/browser/ui/views/constrained_window_win.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/resource_bundle.h" | |
10 #include "app/win/win_util.h" | 9 #include "app/win/win_util.h" |
11 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
14 #include "chrome/browser/tab_contents/tab_contents_view.h" | 13 #include "chrome/browser/tab_contents/tab_contents_view.h" |
15 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 14 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
16 #include "chrome/browser/ui/views/frame/browser_view.h" | 15 #include "chrome/browser/ui/views/frame/browser_view.h" |
17 #include "chrome/browser/ui/window_sizer.h" | 16 #include "chrome/browser/ui/window_sizer.h" |
18 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
20 #include "gfx/canvas.h" | 19 #include "gfx/canvas.h" |
21 #include "gfx/font.h" | 20 #include "gfx/font.h" |
22 #include "gfx/path.h" | 21 #include "gfx/path.h" |
23 #include "gfx/rect.h" | 22 #include "gfx/rect.h" |
24 #include "grit/app_resources.h" | 23 #include "grit/app_resources.h" |
25 #include "grit/chromium_strings.h" | 24 #include "grit/chromium_strings.h" |
26 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
27 #include "grit/theme_resources.h" | 26 #include "grit/theme_resources.h" |
28 #include "net/base/net_util.h" | 27 #include "net/base/net_util.h" |
| 28 #include "ui/base/resource/resource_bundle.h" |
29 #include "ui/base/win/hwnd_util.h" | 29 #include "ui/base/win/hwnd_util.h" |
30 #include "views/controls/button/image_button.h" | 30 #include "views/controls/button/image_button.h" |
31 #include "views/focus/focus_manager.h" | 31 #include "views/focus/focus_manager.h" |
32 #include "views/window/client_view.h" | 32 #include "views/window/client_view.h" |
33 #include "views/window/non_client_view.h" | 33 #include "views/window/non_client_view.h" |
34 #include "views/window/window_resources.h" | 34 #include "views/window/window_resources.h" |
35 #include "views/window/window_shape.h" | 35 #include "views/window/window_shape.h" |
36 | 36 |
37 using base::TimeDelta; | 37 using base::TimeDelta; |
38 | 38 |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 | 671 |
672 | 672 |
673 // static | 673 // static |
674 ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog( | 674 ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog( |
675 TabContents* parent, | 675 TabContents* parent, |
676 views::WindowDelegate* window_delegate) { | 676 views::WindowDelegate* window_delegate) { |
677 ConstrainedWindowWin* window = new ConstrainedWindowWin(parent, | 677 ConstrainedWindowWin* window = new ConstrainedWindowWin(parent, |
678 window_delegate); | 678 window_delegate); |
679 return window; | 679 return window; |
680 } | 680 } |
OLD | NEW |