OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/frame/browser_frame_win.h" | 5 #include "chrome/browser/views/frame/browser_frame_win.h" |
6 | 6 |
7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "app/win_util.h" | 12 #include "app/win_util.h" |
13 #include "base/win_util.h" | 13 #include "base/win_util.h" |
14 #include "chrome/browser/accessibility/browser_accessibility_state.h" | 14 #include "chrome/browser/accessibility/browser_accessibility_state.h" |
15 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/browser_list.h" | 16 #include "chrome/browser/browser_list.h" |
17 #include "chrome/browser/themes/browser_theme_provider.h" | 17 #include "chrome/browser/themes/browser_theme_provider.h" |
18 #include "chrome/browser/views/frame/app_panel_browser_frame_view.h" | 18 #include "chrome/browser/views/frame/app_panel_browser_frame_view.h" |
19 #include "chrome/browser/views/frame/browser_non_client_frame_view.h" | 19 #include "chrome/browser/views/frame/browser_non_client_frame_view.h" |
20 #include "chrome/browser/views/frame/browser_root_view.h" | 20 #include "chrome/browser/views/frame/browser_root_view.h" |
21 #include "chrome/browser/views/frame/browser_view.h" | 21 #include "chrome/browser/views/frame/browser_view.h" |
22 #include "chrome/browser/views/frame/glass_browser_frame_view.h" | 22 #include "chrome/browser/views/frame/glass_browser_frame_view.h" |
23 #include "chrome/browser/views/frame/opaque_browser_frame_view.h" | 23 #include "chrome/browser/views/frame/opaque_browser_frame_view.h" |
24 #include "grit/theme_resources.h" | 24 #include "grit/theme_resources.h" |
25 #include "views/screen.h" | 25 #include "views/screen.h" |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 gfx::Rect tabstrip_bounds( | 310 gfx::Rect tabstrip_bounds( |
311 GetBoundsForTabStrip(browser_view_->tabstrip())); | 311 GetBoundsForTabStrip(browser_view_->tabstrip())); |
312 margins.cyTopHeight = (browser_view_->UseVerticalTabs() ? | 312 margins.cyTopHeight = (browser_view_->UseVerticalTabs() ? |
313 tabstrip_bounds.y() : tabstrip_bounds.bottom()) + kDWMFrameTopOffset; | 313 tabstrip_bounds.y() : tabstrip_bounds.bottom()) + kDWMFrameTopOffset; |
314 } | 314 } |
315 } else { | 315 } else { |
316 // For popup and app windows we want to use the default margins. | 316 // For popup and app windows we want to use the default margins. |
317 } | 317 } |
318 DwmExtendFrameIntoClientArea(GetNativeView(), &margins); | 318 DwmExtendFrameIntoClientArea(GetNativeView(), &margins); |
319 } | 319 } |
OLD | NEW |