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/frame/browser_frame.h" | 5 #include "chrome/browser/views/frame/browser_frame.h" |
6 | 6 |
7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 | 9 |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| 11 #include "app/win_util.h" |
11 #include "chrome/browser/browser_list.h" | 12 #include "chrome/browser/browser_list.h" |
12 #include "chrome/browser/views/frame/browser_root_view.h" | 13 #include "chrome/browser/views/frame/browser_root_view.h" |
13 #include "chrome/browser/views/frame/browser_view.h" | 14 #include "chrome/browser/views/frame/browser_view.h" |
14 #include "chrome/browser/views/frame/glass_browser_frame_view.h" | 15 #include "chrome/browser/views/frame/glass_browser_frame_view.h" |
15 #include "chrome/browser/views/frame/opaque_browser_frame_view.h" | 16 #include "chrome/browser/views/frame/opaque_browser_frame_view.h" |
16 #include "chrome/common/win_util.h" | |
17 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" |
18 #include "views/window/window_delegate.h" | 18 #include "views/window/window_delegate.h" |
19 | 19 |
20 // static | 20 // static |
21 static const int kClientEdgeThickness = 3; | 21 static const int kClientEdgeThickness = 3; |
22 | 22 |
23 /////////////////////////////////////////////////////////////////////////////// | 23 /////////////////////////////////////////////////////////////////////////////// |
24 // BrowserFrame, public: | 24 // BrowserFrame, public: |
25 | 25 |
26 BrowserFrame::BrowserFrame(BrowserView* browser_view) | 26 BrowserFrame::BrowserFrame(BrowserView* browser_view) |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 margins.cyBottomHeight = kClientEdgeThickness + 1; | 244 margins.cyBottomHeight = kClientEdgeThickness + 1; |
245 } | 245 } |
246 // In maximized mode, we only have a titlebar strip of glass, no side/bottom | 246 // In maximized mode, we only have a titlebar strip of glass, no side/bottom |
247 // borders. | 247 // borders. |
248 if (!browser_view_->IsFullscreen()) { | 248 if (!browser_view_->IsFullscreen()) { |
249 margins.cyTopHeight = | 249 margins.cyTopHeight = |
250 GetBoundsForTabStrip(browser_view_->tabstrip()).bottom(); | 250 GetBoundsForTabStrip(browser_view_->tabstrip()).bottom(); |
251 } | 251 } |
252 DwmExtendFrameIntoClientArea(GetNativeView(), &margins); | 252 DwmExtendFrameIntoClientArea(GetNativeView(), &margins); |
253 } | 253 } |
OLD | NEW |