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

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

Issue 115729: Really theme the find bar. We were previously getting the DefaultThemeProvide... (Closed) Base URL: svn://svn.chromium.org/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/frame/browser_frame_win.h ('k') | views/widget/widget.h » ('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_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 "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 ThemeProvider* BrowserFrameWin::GetThemeProviderForFrame() const { 83 ThemeProvider* BrowserFrameWin::GetThemeProviderForFrame() const {
84 // This is implemented for a different interface than GetThemeProvider is, 84 // This is implemented for a different interface than GetThemeProvider is,
85 // but they mean the same things. 85 // but they mean the same things.
86 return GetThemeProvider(); 86 return GetThemeProvider();
87 } 87 }
88 88
89 ThemeProvider* BrowserFrameWin::GetThemeProvider() const { 89 ThemeProvider* BrowserFrameWin::GetThemeProvider() const {
90 return profile_->GetThemeProvider(); 90 return profile_->GetThemeProvider();
91 } 91 }
92 92
93 ThemeProvider* BrowserFrameWin::GetDialogThemeProvider() const { 93 ThemeProvider* BrowserFrameWin::GetDefaultThemeProvider() const {
94 return profile_->GetThemeProvider(); 94 return profile_->GetThemeProvider();
95 } 95 }
96 96
97 /////////////////////////////////////////////////////////////////////////////// 97 ///////////////////////////////////////////////////////////////////////////////
98 // BrowserFrame, views::WidgetWin overrides: 98 // BrowserFrame, views::WidgetWin overrides:
99 99
100 bool BrowserFrameWin::AcceleratorPressed(views::Accelerator* accelerator) { 100 bool BrowserFrameWin::AcceleratorPressed(views::Accelerator* accelerator) {
101 return browser_view_->AcceleratorPressed(*accelerator); 101 return browser_view_->AcceleratorPressed(*accelerator);
102 } 102 }
103 103
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 margins.cyBottomHeight = kClientEdgeThickness + 1; 270 margins.cyBottomHeight = kClientEdgeThickness + 1;
271 } 271 }
272 // In maximized mode, we only have a titlebar strip of glass, no side/bottom 272 // In maximized mode, we only have a titlebar strip of glass, no side/bottom
273 // borders. 273 // borders.
274 if (!browser_view_->IsFullscreen()) { 274 if (!browser_view_->IsFullscreen()) {
275 margins.cyTopHeight = 275 margins.cyTopHeight =
276 GetBoundsForTabStrip(browser_view_->tabstrip()).bottom(); 276 GetBoundsForTabStrip(browser_view_->tabstrip()).bottom();
277 } 277 }
278 DwmExtendFrameIntoClientArea(GetNativeView(), &margins); 278 DwmExtendFrameIntoClientArea(GetNativeView(), &margins);
279 } 279 }
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_frame_win.h ('k') | views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698