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 "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/tab_contents/tab_contents.h" | |
12 #include "chrome/browser/tab_contents/tab_contents_view.h" | |
13 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 11 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
14 #include "chrome/browser/ui/views/frame/browser_view.h" | 12 #include "chrome/browser/ui/views/frame/browser_view.h" |
15 #include "chrome/browser/ui/window_sizer.h" | 13 #include "chrome/browser/ui/window_sizer.h" |
16 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
17 #include "chrome/common/notification_service.h" | 15 #include "chrome/common/notification_service.h" |
| 16 #include "content/browser/tab_contents/tab_contents.h" |
| 17 #include "content/browser/tab_contents/tab_contents_view.h" |
18 #include "grit/app_resources.h" | 18 #include "grit/app_resources.h" |
19 #include "grit/chromium_strings.h" | 19 #include "grit/chromium_strings.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
22 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
23 #include "ui/base/resource/resource_bundle.h" | 23 #include "ui/base/resource/resource_bundle.h" |
24 #include "ui/gfx/canvas.h" | 24 #include "ui/gfx/canvas.h" |
25 #include "ui/gfx/font.h" | 25 #include "ui/gfx/font.h" |
26 #include "ui/gfx/path.h" | 26 #include "ui/gfx/path.h" |
27 #include "ui/gfx/rect.h" | 27 #include "ui/gfx/rect.h" |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 | 672 |
673 | 673 |
674 // static | 674 // static |
675 ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog( | 675 ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog( |
676 TabContents* parent, | 676 TabContents* parent, |
677 views::WindowDelegate* window_delegate) { | 677 views::WindowDelegate* window_delegate) { |
678 ConstrainedWindowWin* window = new ConstrainedWindowWin(parent, | 678 ConstrainedWindowWin* window = new ConstrainedWindowWin(parent, |
679 window_delegate); | 679 window_delegate); |
680 return window; | 680 return window; |
681 } | 681 } |
OLD | NEW |