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" | 9 #include "app/resource_bundle.h" |
10 #include "app/win/hwnd_util.h" | 10 #include "app/win/hwnd_util.h" |
11 #include "app/win/win_util.h" | 11 #include "app/win/win_util.h" |
12 #include "chrome/app/chrome_command_ids.h" | 12 #include "chrome/app/chrome_command_ids.h" |
13 #include "chrome/browser/prefs/pref_service.h" | |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
16 #include "chrome/browser/tab_contents/tab_contents_view.h" | 15 #include "chrome/browser/tab_contents/tab_contents_view.h" |
17 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 16 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
18 #include "chrome/browser/ui/views/frame/browser_view.h" | 17 #include "chrome/browser/ui/views/frame/browser_view.h" |
19 #include "chrome/browser/ui/window_sizer.h" | 18 #include "chrome/browser/ui/window_sizer.h" |
20 #include "chrome/common/chrome_constants.h" | 19 #include "chrome/common/chrome_constants.h" |
21 #include "chrome/common/notification_service.h" | 20 #include "chrome/common/notification_service.h" |
22 #include "gfx/canvas.h" | 21 #include "gfx/canvas.h" |
23 #include "gfx/font.h" | 22 #include "gfx/font.h" |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 | 664 |
666 | 665 |
667 // static | 666 // static |
668 ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog( | 667 ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog( |
669 TabContents* parent, | 668 TabContents* parent, |
670 views::WindowDelegate* window_delegate) { | 669 views::WindowDelegate* window_delegate) { |
671 ConstrainedWindowWin* window = new ConstrainedWindowWin(parent, | 670 ConstrainedWindowWin* window = new ConstrainedWindowWin(parent, |
672 window_delegate); | 671 window_delegate); |
673 return window; | 672 return window; |
674 } | 673 } |
OLD | NEW |