Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/browser/views/frame/browser_frame.cc

Issue 113169: Move win_util.h from common to app. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/download_item_view.cc ('k') | chrome/browser/views/frame/browser_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/views/download_item_view.cc ('k') | chrome/browser/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698