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" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "build/build_config.h" |
13 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
15 #include "chrome/browser/ui/browser_window_state.h" | 16 #include "chrome/browser/ui/browser_window_state.h" |
16 #include "components/version_info/version_info.h" | 17 #include "components/version_info/version_info.h" |
17 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/context_factory.h" | 19 #include "content/public/browser/context_factory.h" |
19 #include "grit/chrome_unscaled_resources.h" | 20 #include "grit/chrome_unscaled_resources.h" |
20 #include "ui/base/resource/resource_bundle.h" | 21 #include "ui/base/resource/resource_bundle.h" |
21 #include "ui/base/ui_base_switches.h" | 22 #include "ui/base/ui_base_switches.h" |
22 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 return content::BrowserThread::GetBlockingPool(); | 505 return content::BrowserThread::GetBlockingPool(); |
505 } | 506 } |
506 | 507 |
507 #if !defined(USE_ASH) | 508 #if !defined(USE_ASH) |
508 views::Widget::InitParams::WindowOpacity | 509 views::Widget::InitParams::WindowOpacity |
509 ChromeViewsDelegate::GetOpacityForInitParams( | 510 ChromeViewsDelegate::GetOpacityForInitParams( |
510 const views::Widget::InitParams& params) { | 511 const views::Widget::InitParams& params) { |
511 return views::Widget::InitParams::OPAQUE_WINDOW; | 512 return views::Widget::InitParams::OPAQUE_WINDOW; |
512 } | 513 } |
513 #endif | 514 #endif |
OLD | NEW |