| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 } | 119 } |
| 120 #endif | 120 #endif |
| 121 | 121 |
| 122 } // namespace | 122 } // namespace |
| 123 | 123 |
| 124 | 124 |
| 125 // ChromeViewsDelegate -------------------------------------------------------- | 125 // ChromeViewsDelegate -------------------------------------------------------- |
| 126 | 126 |
| 127 #if defined(OS_WIN) | 127 #if defined(OS_WIN) |
| 128 ChromeViewsDelegate::ChromeViewsDelegate() | 128 ChromeViewsDelegate::ChromeViewsDelegate() |
| 129 : weak_factory_(this), | 129 : in_autohide_edges_callback_(false), |
| 130 in_autohide_edges_callback_(false) { | 130 weak_factory_(this) { |
| 131 #else | 131 #else |
| 132 ChromeViewsDelegate::ChromeViewsDelegate() { | 132 ChromeViewsDelegate::ChromeViewsDelegate() { |
| 133 #endif | 133 #endif |
| 134 } | 134 } |
| 135 | 135 |
| 136 ChromeViewsDelegate::~ChromeViewsDelegate() { | 136 ChromeViewsDelegate::~ChromeViewsDelegate() { |
| 137 } | 137 } |
| 138 | 138 |
| 139 void ChromeViewsDelegate::SaveWindowPlacement(const views::Widget* window, | 139 void ChromeViewsDelegate::SaveWindowPlacement(const views::Widget* window, |
| 140 const std::string& window_name, | 140 const std::string& window_name, |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 } | 429 } |
| 430 #endif | 430 #endif |
| 431 | 431 |
| 432 #if !defined(USE_AURA) && !defined(USE_CHROMEOS) | 432 #if !defined(USE_AURA) && !defined(USE_CHROMEOS) |
| 433 views::Widget::InitParams::WindowOpacity | 433 views::Widget::InitParams::WindowOpacity |
| 434 ChromeViewsDelegate::GetOpacityForInitParams( | 434 ChromeViewsDelegate::GetOpacityForInitParams( |
| 435 const views::Widget::InitParams& params) { | 435 const views::Widget::InitParams& params) { |
| 436 return views::Widget::InitParams::OPAQUE_WINDOW; | 436 return views::Widget::InitParams::OPAQUE_WINDOW; |
| 437 } | 437 } |
| 438 #endif | 438 #endif |
| OLD | NEW |