| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_desktop_root_window_host_win.h" | 5 #include "chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h" |
| 6 | 6 |
| 7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
| 8 | 8 |
| 9 #include "chrome/browser/lifetime/application_lifetime.h" | 9 #include "chrome/browser/lifetime/application_lifetime.h" |
| 10 #include "chrome/browser/themes/theme_service.h" | 10 #include "chrome/browser/themes/theme_service.h" |
| 11 #include "chrome/browser/themes/theme_service_factory.h" | 11 #include "chrome/browser/themes/theme_service_factory.h" |
| 12 #include "chrome/browser/ui/views/frame/browser_frame.h" | 12 #include "chrome/browser/ui/views/frame/browser_frame.h" |
| 13 #include "chrome/browser/ui/views/frame/browser_frame_common_win.h" | 13 #include "chrome/browser/ui/views/frame/browser_frame_common_win.h" |
| 14 #include "chrome/browser/ui/views/frame/browser_view.h" | 14 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 15 #include "chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.h" | 15 #include "chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.h" |
| 16 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 16 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
| 17 #include "chrome/browser/ui/views/theme_image_mapper.h" | 17 #include "chrome/browser/ui/views/theme_image_mapper.h" |
| 18 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.h" |
| 19 #include "ui/base/theme_provider.h" | 19 #include "ui/base/theme_provider.h" |
| 20 #include "ui/gfx/dpi_win.h" | 20 #include "ui/gfx/win/dpi.h" |
| 21 #include "ui/views/controls/menu/native_menu_win.h" | 21 #include "ui/views/controls/menu/native_menu_win.h" |
| 22 | 22 |
| 23 #pragma comment(lib, "dwmapi.lib") | 23 #pragma comment(lib, "dwmapi.lib") |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 const int kClientEdgeThickness = 3; | 27 const int kClientEdgeThickness = 3; |
| 28 // We need to offset the DWMFrame into the toolbar so that the blackness | 28 // We need to offset the DWMFrame into the toolbar so that the blackness |
| 29 // doesn't show up on our rounded corners. | 29 // doesn't show up on our rounded corners. |
| 30 const int kDWMFrameTopOffset = 3; | 30 const int kDWMFrameTopOffset = 3; |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 views::DesktopNativeWidgetAura* desktop_native_widget_aura, | 290 views::DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 291 const gfx::Rect& initial_bounds, | 291 const gfx::Rect& initial_bounds, |
| 292 BrowserView* browser_view, | 292 BrowserView* browser_view, |
| 293 BrowserFrame* browser_frame) { | 293 BrowserFrame* browser_frame) { |
| 294 return new BrowserDesktopRootWindowHostWin(native_widget_delegate, | 294 return new BrowserDesktopRootWindowHostWin(native_widget_delegate, |
| 295 desktop_native_widget_aura, | 295 desktop_native_widget_aura, |
| 296 initial_bounds, | 296 initial_bounds, |
| 297 browser_view, | 297 browser_view, |
| 298 browser_frame); | 298 browser_frame); |
| 299 } | 299 } |
| OLD | NEW |