| 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/chrome_views_delegate.h" | 5 #include "chrome/browser/ui/views/chrome_views_delegate.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/prefs/scoped_user_pref_update.h" | 9 #include "base/prefs/scoped_user_pref_update.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "ui/views/widget/widget.h" | 23 #include "ui/views/widget/widget.h" |
| 24 | 24 |
| 25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
| 26 #include <dwmapi.h> | 26 #include <dwmapi.h> |
| 27 #include "base/win/windows_version.h" | 27 #include "base/win/windows_version.h" |
| 28 #include "chrome/browser/app_icon_win.h" | 28 #include "chrome/browser/app_icon_win.h" |
| 29 #include "ui/base/win/shell.h" | 29 #include "ui/base/win/shell.h" |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 #if defined(USE_AURA) | 32 #if defined(USE_AURA) |
| 33 #include "ui/aura/root_window.h" | 33 #include "ui/aura/window_event_dispatcher.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 #if defined(USE_AURA) && !defined(OS_CHROMEOS) | 36 #if defined(USE_AURA) && !defined(OS_CHROMEOS) |
| 37 #include "chrome/browser/ui/host_desktop.h" | 37 #include "chrome/browser/ui/host_desktop.h" |
| 38 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" | 38 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
| 39 #include "ui/views/widget/native_widget_aura.h" | 39 #include "ui/views/widget/native_widget_aura.h" |
| 40 #endif | 40 #endif |
| 41 | 41 |
| 42 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 42 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 43 #include "ui/views/linux_ui/linux_ui.h" | 43 #include "ui/views/linux_ui/linux_ui.h" |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 return false; | 317 return false; |
| 318 } | 318 } |
| 319 | 319 |
| 320 #if !defined(USE_AURA) && !defined(USE_CHROMEOS) | 320 #if !defined(USE_AURA) && !defined(USE_CHROMEOS) |
| 321 views::Widget::InitParams::WindowOpacity | 321 views::Widget::InitParams::WindowOpacity |
| 322 ChromeViewsDelegate::GetOpacityForInitParams( | 322 ChromeViewsDelegate::GetOpacityForInitParams( |
| 323 const views::Widget::InitParams& params) { | 323 const views::Widget::InitParams& params) { |
| 324 return views::Widget::InitParams::OPAQUE_WINDOW; | 324 return views::Widget::InitParams::OPAQUE_WINDOW; |
| 325 } | 325 } |
| 326 #endif | 326 #endif |
| OLD | NEW |