OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/views/frame/contents_container.h" | 5 #include "chrome/browser/ui/views/frame/contents_container.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
9 #include "ui/base/animation/slide_animation.h" | 9 #include "ui/base/animation/slide_animation.h" |
10 #include "views/background.h" | 10 #include "views/background.h" |
11 #include "views/widget/root_view.h" | 11 #include "views/widget/root_view.h" |
12 #include "views/widget/widget.h" | 12 #include "views/widget/widget.h" |
13 | 13 |
14 // Min/max opacity of the overlay. | 14 // Min/max opacity of the overlay. |
15 static const int kMinOpacity = 0; | 15 static const int kMinOpacity = 0; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 views::Background::CreateSolidBackground(SK_ColorWHITE)); | 165 views::Background::CreateSolidBackground(SK_ColorWHITE)); |
166 active_overlay_->SetContentsView(overlay_view_); | 166 active_overlay_->SetContentsView(overlay_view_); |
167 active_overlay_->Show(); | 167 active_overlay_->Show(); |
168 active_overlay_->MoveAbove(active_->GetWidget()); | 168 active_overlay_->MoveAbove(active_->GetWidget()); |
169 } | 169 } |
170 | 170 |
171 void ContentsContainer::OverlayViewDestroyed() { | 171 void ContentsContainer::OverlayViewDestroyed() { |
172 active_overlay_ = NULL; | 172 active_overlay_ = NULL; |
173 overlay_view_ = NULL; | 173 overlay_view_ = NULL; |
174 } | 174 } |
OLD | NEW |