OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/immersive_mode_controller.h" | 5 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" |
6 | 6 |
7 #include "chrome/browser/ui/views/frame/browser_view.h" | 7 #include "chrome/browser/ui/views/frame/browser_view.h" |
8 #include "chrome/browser/ui/views/frame/top_container_view.h" | 8 #include "chrome/browser/ui/views/frame/top_container_view.h" |
9 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 9 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
11 #include "ui/compositor/layer_animation_observer.h" | 11 #include "ui/compositor/layer_animation_observer.h" |
12 #include "ui/compositor/scoped_layer_animation_settings.h" | 12 #include "ui/compositor/scoped_layer_animation_settings.h" |
13 #include "ui/gfx/transform.h" | 13 #include "ui/gfx/transform.h" |
14 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 if (reveal_state_ == SLIDING_CLOSED) { | 413 if (reveal_state_ == SLIDING_CLOSED) { |
414 reveal_state_ = CLOSED; | 414 reveal_state_ = CLOSED; |
415 TopContainerView* top_container = browser_view_->top_container(); | 415 TopContainerView* top_container = browser_view_->top_container(); |
416 // Layer isn't needed after animation completes. | 416 // Layer isn't needed after animation completes. |
417 top_container->SetFillsBoundsOpaquely(false); | 417 top_container->SetFillsBoundsOpaquely(false); |
418 top_container->SetPaintToLayer(false); | 418 top_container->SetPaintToLayer(false); |
419 // Update tabstrip for closed state. | 419 // Update tabstrip for closed state. |
420 LayoutBrowserView(true); | 420 LayoutBrowserView(true); |
421 } | 421 } |
422 } | 422 } |
OLD | NEW |