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/frame/browser_frame_win.h" | 5 #include "chrome/browser/ui/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 "chrome/browser/ui/browser_list.h" | 12 #include "chrome/browser/ui/browser_list.h" |
13 #include "chrome/browser/ui/views/frame/browser_frame_views.h" | |
14 #include "chrome/browser/ui/views/frame/browser_view.h" | 13 #include "chrome/browser/ui/views/frame/browser_view.h" |
15 #include "content/browser/accessibility/browser_accessibility_state.h" | 14 #include "content/browser/accessibility/browser_accessibility_state.h" |
16 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
17 #include "ui/base/theme_provider.h" | 16 #include "ui/base/theme_provider.h" |
18 #include "ui/gfx/font.h" | 17 #include "ui/gfx/font.h" |
19 #include "ui/views/window/non_client_view.h" | 18 #include "ui/views/window/non_client_view.h" |
20 #include "views/views_delegate.h" | 19 #include "views/views_delegate.h" |
21 #include "views/widget/native_widget_win.h" | 20 #include "views/widget/native_widget_win.h" |
22 #include "views/widget/widget.h" | 21 #include "views/widget/widget.h" |
23 | 22 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 return *title_font; | 210 return *title_font; |
212 } | 211 } |
213 | 212 |
214 //////////////////////////////////////////////////////////////////////////////// | 213 //////////////////////////////////////////////////////////////////////////////// |
215 // NativeBrowserFrame, public: | 214 // NativeBrowserFrame, public: |
216 | 215 |
217 // static | 216 // static |
218 NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame( | 217 NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame( |
219 BrowserFrame* browser_frame, | 218 BrowserFrame* browser_frame, |
220 BrowserView* browser_view) { | 219 BrowserView* browser_view) { |
221 if (views::Widget::IsPureViews() && | |
222 views::ViewsDelegate::views_delegate->GetDefaultParentView()) | |
223 return new BrowserFrameViews(browser_frame, browser_view); | |
224 return new BrowserFrameWin(browser_frame, browser_view); | 220 return new BrowserFrameWin(browser_frame, browser_view); |
225 } | 221 } |
OLD | NEW |