| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/event_disposition.h" | 12 #include "chrome/browser/event_disposition.h" |
| 13 #include "chrome/browser/prefs/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
| 14 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 14 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
| 15 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
| 16 #include "chrome/browser/ui/views/accessibility/accessibility_event_router_views
.h" | 16 #include "chrome/browser/ui/views/accessibility/accessibility_event_router_views
.h" |
| 17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
| 19 #include "ui/gfx/screen.h" | 19 #include "ui/gfx/screen.h" |
| 20 #include "ui/views/widget/native_widget.h" | 20 #include "ui/views/widget/native_widget.h" |
| 21 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
| 22 | 22 |
| 23 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
| 24 #include "chrome/browser/app_icon_win.h" | 24 #include "chrome/browser/app_icon_win.h" |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 #if defined(USE_AURA) && !defined(OS_CHROMEOS) | 27 #if defined(USE_AURA) && !defined(OS_CHROMEOS) |
| 28 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
| 28 #include "ui/views/widget/native_widget_aura.h" | 29 #include "ui/views/widget/native_widget_aura.h" |
| 29 #include "ui/views/widget/desktop_native_widget_aura.h" | |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 #if defined(USE_ASH) | 32 #if defined(USE_ASH) |
| 33 #include "ash/shell.h" | 33 #include "ash/shell.h" |
| 34 #include "chrome/browser/ui/ash/ash_init.h" | 34 #include "chrome/browser/ui/ash/ash_init.h" |
| 35 #include "chrome/browser/ui/ash/ash_util.h" | 35 #include "chrome/browser/ui/ash/ash_util.h" |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 | 39 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 gfx::NativeView parent) { | 179 gfx::NativeView parent) { |
| 180 #if defined(USE_AURA) && !defined(OS_CHROMEOS) | 180 #if defined(USE_AURA) && !defined(OS_CHROMEOS) |
| 181 if (parent && type != views::Widget::InitParams::TYPE_MENU) | 181 if (parent && type != views::Widget::InitParams::TYPE_MENU) |
| 182 return new views::NativeWidgetAura(delegate); | 182 return new views::NativeWidgetAura(delegate); |
| 183 if (chrome::GetHostDesktopTypeForNativeView(parent) == | 183 if (chrome::GetHostDesktopTypeForNativeView(parent) == |
| 184 chrome::HOST_DESKTOP_TYPE_NATIVE) | 184 chrome::HOST_DESKTOP_TYPE_NATIVE) |
| 185 return new views::DesktopNativeWidgetAura(delegate); | 185 return new views::DesktopNativeWidgetAura(delegate); |
| 186 #endif | 186 #endif |
| 187 return NULL; | 187 return NULL; |
| 188 } | 188 } |
| OLD | NEW |